|
virtual result | do_in (_Statype &_State, const _Byte *_First1, const _Byte *_Last1, const _Byte *&_Mid1, _Elem *_First2, _Elem *_Last2, _Elem *&_Mid2) const |
|
virtual result | do_out (_Statype &_State, const _Elem *_First1, const _Elem *_Last1, const _Elem *&_Mid1, _Byte *_First2, _Byte *_Last2, _Byte *&_Mid2) const |
|
virtual result | do_unshift (_Statype &_State, _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: jis_0208:30
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>
51 char *_Pstate = (
char *)&
_State;
52 result _Ans = _Mybase::partial;
56 for (; _Mid1 != _Last1 && _Mid2 != _Last2; )
58 unsigned char _By = (
unsigned char)*_Mid1;
63 else if (_Last1 - _Mid1 < 4)
65 else if (_Mid1[1] ==
'('
66 && (_Mid1[2] ==
'B' || _Mid1[2] ==
'J')
73 else if (_Mid1[1] ==
'$'
74 && (_Mid1[2] ==
'B' || _Mid1[2] ==
'@'))
75 if (_Last1 - _Mid1 < 5)
84 return (_Mybase::error);
89 else if (_By < 0x21 || 0x7e < _By)
90 return (_Mybase::error);
91 else if (_Last1 - _Mid1 < 2)
93 else if ((_By = *++_Mid1) < 0x21 || 0x7e < _By)
94 return (_Mybase::error);
96 _Ch = (
unsigned short)(_Ch << 8 | _By);
99 return (_Mybase::error);
101 *_Mid2++ = (_Elem)_Ch;
_Mybase::result result
Definition: jis_0208:31
_Check_return_ _In_ wchar_t _Ch
Definition: vcruntime_string.h:89
_In_ size_t _Deref_pre_opt_z_ char const _In_ size_t _Inout_ mbstate_t * _State
Definition: wchar.h:78
unsigned char
Definition: mbstring.h:107
#define _ESC_CODE
Definition: jis_0208:21
template<class _Elem , unsigned long _Maxcode = 0x7e7e>
207 for (; _Wchars <
_Count && _First1 != _Last1; )
213 switch (
do_in(_Mystate, _First1, _Last1, _Mid1,
214 &_Ch, &_Ch + 1, _Mid2))
216 case _Mybase::noconv:
217 return ((
int)(_Wchars + (_Last1 - _First1)));
220 if (_Mid2 == &_Ch + 1)
226 return ((
int)_Wchars);
230 return ((
int)_Wchars);
char _Byte
Definition: jis_0208:32
_Check_return_ _In_ wchar_t _Ch
Definition: vcruntime_string.h:89
_In_ size_t _Deref_pre_opt_z_ char const _In_ size_t _Inout_ mbstate_t * _State
Definition: wchar.h:78
virtual result do_in(_Statype &_State, const _Byte *_First1, const _Byte *_Last1, const _Byte *&_Mid1, _Elem *_First2, _Elem *_Last2, _Elem *&_Mid2) const
Definition: jis_0208:47
_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>
112 char *_Pstate = (
char *)&
_State;
116 for (; _Mid1 != _Last1 && _Mid2 != _Last2; )
118 unsigned long _Ch = (
unsigned long)*_Mid1;
121 return (_Mybase::error);
126 return (_Mybase::error);
127 else if (*_Pstate == 0)
129 else if (_Last2 - _Mid2 < 4)
138 *_Mid2++ = (
_Byte)_Ch;
144 if (_Last2 - _Mid2 < 2)
147 else if (_Last2 - _Mid2 < 5)
157 unsigned char _By = (
unsigned char)(_Ch >> 8);
159 if (_By < 0x21 || 0x7e < _By)
160 return (_Mybase::error);
161 *_Mid2++ = (
_Byte)_By;
163 _By = (
unsigned char)_Ch;
164 if (_By < 0x21 || 0x7e < _By)
165 return (_Mybase::error);
166 *_Mid2++ = (
_Byte)_By;
170 return (_First1 == _Mid1 ? _Mybase::partial : _Mybase::ok);
char _Byte
Definition: jis_0208:32
_In_ long
Definition: corecrt_wstdlib.h:88
_Check_return_ _In_ wchar_t _Ch
Definition: vcruntime_string.h:89
_In_ size_t _Deref_pre_opt_z_ char const _In_ size_t _Inout_ mbstate_t * _State
Definition: wchar.h:78
unsigned char
Definition: mbstring.h:107
#define _ESC_CODE
Definition: jis_0208:21
template<class _Elem , unsigned long _Maxcode = 0x7e7e>
176 char *_Pstate = (
char *)&
_State;
196 return (_Mybase::ok);
198 return (_Mybase::partial);
_In_ size_t _Deref_pre_opt_z_ char const _In_ size_t _Inout_ mbstate_t * _State
Definition: wchar.h:78
#define _ESC_CODE
Definition: jis_0208:21
The documentation for this class was generated from the following file: