|
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: sjis_0208:29
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>
50 unsigned long _Maxc = _Maxcode;
51 static unsigned char _Xff = 0xff;
55 for (; _Mid1 != _Last1 && _Mid2 != _Last2; )
57 unsigned char _By = (
unsigned char)*_Mid1;
58 unsigned short _Ch = _By;
61 || (0xa0 <= _By && _By <= 0xdf)
62 || (0xf0 <= _By && _By <= _Xff))
64 else if (_Last1 - _Mid1 < 2)
68 unsigned char _By2 = *++_Mid1;
70 if ((_By2 < 0x40 || 0x7e < _By2)
71 && (_By2 < 0x80 && 0xfc < _By2))
72 return (_Mybase::error);
81 _Ch = (
unsigned short)(_Ch
83 else if (_By2 <= 0x7e)
84 _Ch = (
unsigned short)(_Ch
87 _Ch = (
unsigned short)(_Ch
92 return (_Mybase::error);
94 *_Mid2++ = (_Elem)_Ch;
97 return (_First1 == _Mid1 ? _Mybase::partial : _Mybase::ok);
_Check_return_ _In_ wchar_t _Ch
Definition: vcruntime_string.h:89
template<class _Elem , unsigned long _Maxcode = 0x7e7e>
157 for (; _Wchars <
_Count && _First1 != _Last1; )
163 switch (
do_in(_Mystate, _First1, _Last1, _Mid1,
164 &_Ch, &_Ch + 1, _Mid2))
166 case _Mybase::noconv:
167 return ((
int)(_Wchars + (_Last1 - _First1)));
170 if (_Mid2 == &_Ch + 1)
176 return ((
int)_Wchars);
180 return ((
int)_Wchars);
unsigned int _Count
Definition: xcomplex:668
_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: sjis_0208:46
char _Byte
Definition: sjis_0208:31
_CSTD mbstate_t _Statype
Definition: codecvt:26
template<class _Elem , unsigned long _Maxcode = 0x7e7e>
template<class _Elem , unsigned long _Maxcode = 0x7e7e>
104 unsigned long _Maxc = _Maxcode;
108 for (; _Mid1 != _Last1 && _Mid2 != _Last2; )
110 unsigned long _Ch = (
unsigned long)*_Mid1;
111 static unsigned char _Xff = 0xff;
114 return (_Mybase::error);
117 || (0xa0 <= _Ch && _Ch <= 0xdf)
118 || (0xf0 <= _Ch && _Ch <= _Xff))
119 *_Mid2++ = (
_Byte)_Ch;
120 else if (_Last2 - _Mid2 < 2)
124 unsigned char _By0 = (
unsigned char)(_Ch >> 8);
125 unsigned char _By1 = (
unsigned char)_Ch;
126 if (_By0 < 0x21 || 0x7e < _By0
127 || _By1 < 0x21 || 0x7e < _By1)
128 return (_Mybase::error);
130 *_Mid2++ = (
_Byte)((_By0 + 1) / 2
131 + (_By0 < 0x5f ? 0x70 : 0xb0));
133 *_Mid2++ = (
_Byte)(_By1 + (0x5f <= _By1 ? 0x20 : 0x1f));
135 *_Mid2++ = (
_Byte)(_By1 + 0x7e);
140 return (_First1 == _Mid1 ? _Mybase::partial : _Mybase::ok);
_Check_return_ _In_ wchar_t _Ch
Definition: vcruntime_string.h:89
char _Byte
Definition: sjis_0208:31
template<class _Elem , unsigned long _Maxcode = 0x7e7e>
148 return (_Mybase::ok);
The documentation for this class was generated from the following file: