57 char *_Pstate = (
char *)&
_State;
62 for (; _Bytes_per_word <= _Last1 - _Mid1 && _Mid2 != _Last2; )
64 unsigned char *_Ptr = (
unsigned char *)_Mid1;
65 unsigned long _Ch = 0;
68 for (_Count = _Bytes_per_word; 0 <
_Count; )
69 _Ch = _Ch << 8 | _Ptr[--_Count];
71 for (_Count = 0; _Count < _Bytes_per_word; ++
_Count)
72 _Ch = _Ch << 8 | _Ptr[_Count];
75 unsigned char _Default_endian =
80 for (_Count = _Bytes_per_word; 0 <
_Count; )
81 _Ch = _Ch << 8 | _Ptr[--_Count];
83 for (_Count = 0; _Count < _Bytes_per_word; ++
_Count)
84 _Ch = _Ch << 8 | _Ptr[_Count];
87 && _Ch != (0xfffe0000 >> 8 * (4 - _Bytes_per_word))))
88 *_Pstate = _Default_endian;
91 _Mid1 += _Bytes_per_word;
92 *_Pstate = (
char)(_Ch == 0xfeff
94 : (
unsigned char)(3 - _Default_endian));
96 _First2, _Last2, _Mid2);
98 if (_Ans == _Mybase::partial)
107 _Mid1 += _Bytes_per_word;
109 return (_Mybase::error);
110 *_Mid2++ = (_Elem)_Ch;
113 return (_First1 == _Mid1 ? _Mybase::partial : _Mybase::ok);
virtual result do_in(_Statype &_State, const _Byte *_First1, const _Byte *_Last1, const _Byte *&_Mid1, _Elem *_First2, _Elem *_Last2, _Elem *&_Mid2) const
Definition: one_one:53
#define _BIG_FIRST
Definition: codecvt:20
_Check_return_ _In_ wchar_t _Ch
Definition: vcruntime_string.h:89
_Mybase::result result
Definition: one_one:37
_In_ size_t _Deref_pre_opt_z_ char const _In_ size_t _Inout_ mbstate_t * _State
Definition: wchar.h:78
_Check_return_ _In_z_ wchar_t const * _Mode
Definition: corecrt_wstdio.h:133
unsigned char
Definition: mbstring.h:107
_Diff _Count
Definition: algorithm:1941
#define _LITTLE_FIRST
Definition: codecvt:19