|
virtual result | do_in (_Statype &, const _Byte *_First1, const _Byte *_Last1, const _Byte *&_Mid1, _Elem *_First2, _Elem *_Last2, _Elem *&_Mid2) const |
|
virtual result | do_out (_Statype &, const _Elem *_First1, const _Elem *_Last1, const _Elem *&_Mid1, _Byte *_First2, _Byte *_Last2, _Byte *&_Mid2) const |
|
virtual result | do_unshift (_Statype &, _Byte *_First2, _Byte *, _Byte *&_Mid2) const |
|
virtual int | do_length (_Statype &_State, const _Byte *_First1, const _Byte *_Last1, size_t _Count) const _THROW0() |
|
virtual bool | do_always_noconv () const _THROW0() |
|
virtual int | do_max_length () const _THROW0() |
|
virtual int | do_encoding () const _THROW0() |
|
template<class _Elem , unsigned long _Maxcode = 0x7e7e>
template<class _Elem , unsigned long _Maxcode = 0x7e7e>
template<class _Elem , unsigned long _Maxcode = 0x7e7e>
template<class _Elem , unsigned long _Maxcode = 0x7e7e>
template<class _Elem , unsigned long _Maxcode = 0x7e7e>
template<class _Elem , unsigned long _Maxcode = 0x7e7e>
template<class _Elem , unsigned long _Maxcode = 0x7e7e>
_STD codecvt< _Elem, char, _Statype > _Mybase
Definition: euc_0208:28
template<class _Elem , unsigned long _Maxcode = 0x7e7e>
template<class _Elem , unsigned long _Maxcode = 0x7e7e>
template<class _Elem , unsigned long _Maxcode = 0x7e7e>
template<class _Elem , unsigned long _Maxcode = 0x7e7e>
52 for (; _Mid1 != _Last1 && _Mid2 != _Last2; )
54 unsigned char _By = (
unsigned char)*_Mid1;
59 _Ch = 0, _Extra =
true;
60 else if (0xa1 <= _By && _By <= 0xfe)
61 _Ch = (
unsigned short)((_By << 8) - 0x8080), _Extra =
true;
63 _Ch = _By, _Extra =
false;
67 else if (_Last1 - _Mid1 < 2)
69 else if ((_By = (
unsigned char)*++_Mid1) < 0xa1 || 0xfe < _By)
70 return (_Mybase::error);
72 _Ch = (
unsigned short)(_Ch + _By);
75 return (_Mybase::error);
77 *_Mid2++ = (_Elem)_Ch;
80 return (_First1 == _Mid1 ? _Mybase::partial : _Mybase::ok);
_Check_return_ _In_ wchar_t _Ch
Definition: vcruntime_string.h:89
unsigned char
Definition: mbstring.h:107
template<class _Elem , unsigned long _Maxcode = 0x7e7e>
144 for (; _Wchars <
_Count && _First1 != _Last1; )
150 switch (
do_in(_Mystate, _First1, _Last1, _Mid1,
151 &_Ch, &_Ch + 1, _Mid2))
153 case _Mybase::noconv:
154 return ((
int)(_Wchars + (_Last1 - _First1)));
157 if (_Mid2 == &_Ch + 1)
163 return ((
int)_Wchars);
167 return ((
int)_Wchars);
_Check_return_ _In_ wchar_t _Ch
Definition: vcruntime_string.h:89
virtual result do_in(_Statype &, const _Byte *_First1, const _Byte *_Last1, const _Byte *&_Mid1, _Elem *_First2, _Elem *_Last2, _Elem *&_Mid2) const
Definition: euc_0208:45
_In_ size_t _Deref_pre_opt_z_ char const _In_ size_t _Inout_ mbstate_t * _State
Definition: wchar.h:78
char _Byte
Definition: euc_0208:30
_Diff _Count
Definition: algorithm:1941
_CSTD mbstate_t _Statype
Definition: codecvt:28
template<class _Elem , unsigned long _Maxcode = 0x7e7e>
template<class _Elem , unsigned long _Maxcode = 0x7e7e>
90 for (; _Mid1 != _Last1 && _Mid2 != _Last2; )
92 unsigned long _Ch = (
unsigned long)*_Mid1;
95 return (_Mybase::error);
97 if (0xa1 <= _Ch && _Ch <= 0xfe)
98 if (_Last2 - _Mid2 < 2)
102 *_Mid2++ = (
_Byte)(
unsigned short)0x8e;
103 *_Mid2++ = (
_Byte)_Ch;
105 else if (_Ch == 0x8e)
106 return (_Mybase::error);
107 else if (_Ch <= 0xff)
108 *_Mid2++ = (
_Byte)_Ch;
110 if (_Last2 - _Mid2 < 2)
114 unsigned char _By = (
unsigned char)((_Ch >> 8) + 0x80);
116 if (_By < 0xa1 || 0xfe < _By)
117 return (_Mybase::error);
118 *_Mid2++ = (
_Byte)_By;
120 _By = (
unsigned char)(_Ch + 0x80);
121 if (_By < 0xa1 || 0xfe < _By)
122 return (_Mybase::error);
123 *_Mid2++ = (
_Byte)_By;
127 return (_First1 == _Mid1 ? _Mybase::partial : _Mybase::ok);
_In_ long
Definition: corecrt_wstdlib.h:88
_Check_return_ _In_ wchar_t _Ch
Definition: vcruntime_string.h:89
unsigned char
Definition: mbstring.h:107
char _Byte
Definition: euc_0208:30
template<class _Elem , unsigned long _Maxcode = 0x7e7e>
135 return (_Mybase::ok);
The documentation for this class was generated from the following file: