|
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 _By = *++_Mid1;
70 if ((_By < 0x40 || 0x7e < _By) && (_By < 0x80 && 0xfc < _By))
71 return (_Mybase::error);
80 _Ch = (
unsigned short)(_Ch
83 _Ch = (
unsigned short)(_Ch
86 _Ch = (
unsigned short)(_Ch
91 return (_Mybase::error);
93 *_Mid2++ = (_Elem)_Ch;
96 return (_First1 == _Mid1 ? _Mybase::partial : _Mybase::ok);
_In_ size_t _In_ unsigned int _Ch
Definition: mbstring.h:161
template<class _Elem , unsigned long _Maxcode = 0x7e7e>
156 for (; _Wchars <
_Count && _First1 != _Last1; )
162 switch (
do_in(_Mystate, _First1, _Last1, _Mid1,
163 &_Ch, &_Ch + 1, _Mid2))
165 case _Mybase::noconv:
166 return ((
int)(_Wchars + (_Last1 - _First1)));
169 if (_Mid2 == &_Ch + 1)
175 return ((
int)_Wchars);
179 return ((
int)_Wchars);
_In_ size_t _In_ unsigned int _Ch
Definition: mbstring.h:161
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
_Diff _Count
Definition: algorithm:1941
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>
103 unsigned long _Maxc = _Maxcode;
107 for (; _Mid1 != _Last1 && _Mid2 != _Last2; )
109 unsigned long _Ch = (
unsigned long)*_Mid1;
110 static unsigned char _Xff = 0xff;
113 return (_Mybase::error);
116 || (0xa0 <= _Ch && _Ch <= 0xdf)
117 || (0xf0 <= _Ch && _Ch <= _Xff))
118 *_Mid2++ = (
_Byte)_Ch;
119 else if (_Last2 - _Mid2 < 2)
123 unsigned char _By0 = (
unsigned char)(_Ch >> 8);
124 unsigned char _By1 = (
unsigned char)_Ch;
125 if (_By0 < 0x21 || 0x7e < _By0
126 || _By1 < 0x21 || 0x7e < _By1)
127 return (_Mybase::error);
129 *_Mid2++ = (
_Byte)((_By0 + 1) / 2
130 + (_By0 < 0x5f ? 0x70 : 0xb0));
132 *_Mid2++ = (
_Byte)(_By1 + (0x5f <= _By1 ? 0x20 : 0x1f));
134 *_Mid2++ = (
_Byte)(_By1 + 0x7e);
139 return (_First1 == _Mid1 ? _Mybase::partial : _Mybase::ok);
_In_ size_t _In_ unsigned int _Ch
Definition: mbstring.h:161
char _Byte
Definition: sjis_0208:31
template<class _Elem , unsigned long _Maxcode = 0x7e7e>
147 return (_Mybase::ok);
The documentation for this class was generated from the following file: