|
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 = 0xffff>
template<class _Elem , unsigned long _Maxcode = 0xffff>
template<class _Elem , unsigned long _Maxcode = 0xffff>
template<class _Elem , unsigned long _Maxcode = 0xffff>
template<class _Elem , unsigned long _Maxcode = 0xffff>
template<class _Elem , unsigned long _Maxcode = 0xffff>
template<class _Elem , unsigned long _Maxcode = 0xffff>
template<class _Elem , unsigned long _Maxcode = 0xffff>
_STD codecvt< _Elem, char, _Statype > _Mybase
Definition: xjis:98
template<class _Elem , unsigned long _Maxcode = 0xffff>
template<class _Elem , unsigned long _Maxcode = 0xffff>
44 unsigned long _Lo = 0;
50 unsigned long _Mid = (_Hi + _Lo) / 2;
static const unsigned short _Dbvalid[0x1adf]
Definition: jis:150
static const unsigned short _Dbtw[0x1adf]
Definition: jis:151
static const unsigned short _Btw[0xa4]
Definition: jis:149
_In_ size_t _In_ unsigned int _Ch
Definition: mbstring.h:161
template<class _Elem , unsigned long _Maxcode = 0xffff>
74 unsigned long _Lo = 0;
80 unsigned long _Mid = (_Hi + _Lo) / 2;
static const unsigned short _Wvalid[0x1b20]
Definition: jis:152
static const unsigned short _Btw[0xa4]
Definition: jis:149
_In_ size_t _In_ unsigned int _Ch
Definition: mbstring.h:161
static const unsigned short _Wtb[0x1b20]
Definition: jis:153
template<class _Elem , unsigned long _Maxcode = 0xffff>
template<class _Elem , unsigned long _Maxcode = 0xffff>
template<class _Elem , unsigned long _Maxcode = 0xffff>
119 unsigned long _Maxc = _Maxcode;
120 char *_Pstate = (
char *)&_State;
121 result _Ans = _Mybase::partial;
125 for (; _Mid1 != _Last1 && _Mid2 != _Last2; )
127 unsigned char _By = (
unsigned char)*_Mid1;
132 else if (_Last1 - _Mid1 < 4)
134 else if (_Mid1[1] ==
'('
135 && (_Mid1[2] ==
'B' || _Mid1[2] ==
'J')
142 else if (_Mid1[1] ==
'$'
143 && (_Mid1[2] ==
'B' || _Mid1[2] ==
'@'))
144 if (_Last1 - _Mid1 < 5)
153 return (_Mybase::error);
158 else if (_By < 0x21 || 0x7e < _By)
159 return (_Mybase::error);
160 else if (_Last1 - _Mid1 < 2)
162 else if ((_By = *++_Mid1) < 0x21 || 0x7e < _By)
163 return (_Mybase::error);
165 _Ch = (
unsigned short)(_Ch << 8 | _By);
168 return (_Mybase::error);
170 *_Mid2++ = (_Elem)_Ch;
_Mybase::result result
Definition: xjis:99
_In_ size_t _In_ unsigned int _Ch
Definition: mbstring.h:161
bool _Jis_to_ucs(unsigned short &_Ch) const
Definition: xjis:33
#define _ESC_CODE
Definition: xjis:23
template<class _Elem , unsigned long _Maxcode = 0xffff>
278 for (; _Wchars <
_Count && _First1 != _Last1; )
284 switch (
do_in(_Mystate, _First1, _Last1, _Mid1,
285 &_Ch, &_Ch + 1, _Mid2))
287 case _Mybase::noconv:
288 return ((
int)(_Wchars + (_Last1 - _First1)));
291 if (_Mid2 == &_Ch + 1)
297 return ((
int)_Wchars);
301 return ((
int)_Wchars);
char _Byte
Definition: xjis:100
_In_ size_t _In_ unsigned int _Ch
Definition: mbstring.h:161
_Diff _Count
Definition: algorithm:1941
virtual result do_in(_Statype &_State, const _Byte *_First1, const _Byte *_Last1, const _Byte *&_Mid1, _Elem *_First2, _Elem *_Last2, _Elem *&_Mid2) const
Definition: xjis:115
_CSTD mbstate_t _Statype
Definition: codecvt:26
template<class _Elem , unsigned long _Maxcode = 0xffff>
template<class _Elem , unsigned long _Maxcode = 0xffff>
181 unsigned long _Maxc = _Maxcode;
182 char *_Pstate = (
char *)&_State;
186 for (; _Mid1 != _Last1 && _Mid2 != _Last2; )
188 unsigned long _Uch = (
unsigned long)*_Mid1;
189 unsigned short _Ch = (
unsigned short)_Uch;
192 return (_Mybase::error);
197 return (_Mybase::error);
198 else if (*_Pstate == 0)
200 else if (_Last2 - _Mid2 < 4)
209 *_Mid2++ = (
_Byte)_Ch;
215 if (_Last2 - _Mid2 < 2)
218 else if (_Last2 - _Mid2 < 5)
228 unsigned char _By = (
unsigned char)(_Ch >> 8);
230 if (_By < 0x21 || 0x7e < _By)
231 return (_Mybase::error);
232 *_Mid2++ = (
_Byte)_By;
234 _By = (
unsigned char)_Ch;
235 if (_By < 0x21 || 0x7e < _By)
236 return (_Mybase::error);
237 *_Mid2++ = (
_Byte)_By;
241 return (_First1 == _Mid1 ? _Mybase::partial : _Mybase::ok);
char _Byte
Definition: xjis:100
bool _Ucs_to_jis(unsigned short &_Ch) const
Definition: xjis:67
_In_ size_t _In_ unsigned int _Ch
Definition: mbstring.h:161
#define _ESC_CODE
Definition: xjis:23
template<class _Elem , unsigned long _Maxcode = 0xffff>
247 char *_Pstate = (
char *)&_State;
267 return (_Mybase::ok);
269 return (_Mybase::partial);
#define _ESC_CODE
Definition: xjis:23
The documentation for this class was generated from the following file: