|
| codecvt_utf8 (size_t _Refs=0) |
|
virtual | ~codecvt_utf8 () _NOEXCEPT |
|
result __CLR_OR_THIS_CALL | in (_Statype &_State, const char *_First1, const char *_Last1, const char *&_Mid1, _Elem *_First2, _Elem *_Last2, _Elem *&_Mid2) const |
|
result __CLR_OR_THIS_CALL | out (_Statype &_State, const _Elem *_First1, const _Elem *_Last1, const _Elem *&_Mid1, char *_First2, char *_Last2, char *&_Mid2) const |
|
result __CLR_OR_THIS_CALL | unshift (_Statype &_State, char *_First2, char *_Last2, char *&_Mid2) const |
|
int __CLR_OR_THIS_CALL | length (_Statype &_State, const char *_First1, const char *_Last1, size_t _Count) const |
|
__CLR_OR_THIS_CALL | codecvt (size_t _Refs=0) |
|
__CLR_OR_THIS_CALL | codecvt (const _Locinfo &_Lobj, size_t _Refs=0) |
|
__CLR_OR_THIS_CALL | codecvt_base (size_t _Refs=0) |
|
bool __CLR_OR_THIS_CALL | always_noconv () const _THROW0() |
|
int __CLR_OR_THIS_CALL | max_length () const _THROW0() |
|
int __CLR_OR_THIS_CALL | encoding () const _THROW0() |
|
__CLR_OR_THIS_CALL | ~codecvt_base () _NOEXCEPT |
|
virtual void __CLR_OR_THIS_CALL | _Incref () |
|
virtual _Facet_base *__CLR_OR_THIS_CALL | _Decref () |
|
__CLR_OR_THIS_CALL | facet (const facet &)=delete |
|
facet &__CLR_OR_THIS_CALL | operator= (const facet &)=delete |
|
virtual __CLR_OR_THIS_CALL | ~_Facet_base () _NOEXCEPT |
|
|
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 &, _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() |
|
virtual __CLR_OR_THIS_CALL | ~codecvt () _NOEXCEPT |
|
void __CLR_OR_THIS_CALL | _Init (const _Locinfo &) |
|
__CLR_OR_THIS_CALL | facet (size_t _Initrefs=0) |
|
virtual __CLR_OR_THIS_CALL | ~facet () _NOEXCEPT |
|
template<class _Elem , unsigned long _Mymax = 0x10ffff, codecvt_mode _Mymode = (codecvt_mode)0>
template<class _Elem , unsigned long _Mymax = 0x10ffff, codecvt_mode _Mymode = (codecvt_mode)0>
template<class _Elem , unsigned long _Mymax = 0x10ffff, codecvt_mode _Mymode = (codecvt_mode)0>
template<class _Elem , unsigned long _Mymax = 0x10ffff, codecvt_mode _Mymode = (codecvt_mode)0>
template<class _Elem , unsigned long _Mymax = 0x10ffff, codecvt_mode _Mymode = (codecvt_mode)0>
template<class _Elem , unsigned long _Mymax = 0x10ffff, codecvt_mode _Mymode = (codecvt_mode)0>
template<class _Elem , unsigned long _Mymax = 0x10ffff, codecvt_mode _Mymode = (codecvt_mode)0>
_Atomic_counter_t _Refs
Definition: xlocale:157
codecvt< _Elem, char, _Statype > _Mybase
Definition: codecvt:36
template<class _Elem , unsigned long _Mymax = 0x10ffff, codecvt_mode _Mymode = (codecvt_mode)0>
template<class _Elem , unsigned long _Mymax = 0x10ffff, codecvt_mode _Mymode = (codecvt_mode)0>
template<class _Elem , unsigned long _Mymax = 0x10ffff, codecvt_mode _Mymode = (codecvt_mode)0>
template<class _Elem , unsigned long _Mymax = 0x10ffff, codecvt_mode _Mymode = (codecvt_mode)0>
Reimplemented from codecvt< _Elem, char, _Statype >.
57 char *_Pstate = (
char *)&_State;
61 for (; _Mid1 != _Last1 && _Mid2 != _Last2; )
63 unsigned char _By = (
unsigned char)*_Mid1;
68 _Ch = _By, _Nextra = 0;
75 _Ch = _By & 0x1f, _Nextra = 1;
77 _Ch = _By & 0x0f, _Nextra = 2;
79 _Ch = _By & 0x07, _Nextra = 3;
81 _Ch = _By & 0x03, _Nextra = _By < 0xfc ? 4 : 5;
85 else if (_Last1 - _Mid1 < _Nextra + 1)
88 for (++_Mid1; 0 < _Nextra; --_Nextra, ++_Mid1)
89 if ((_By = (
unsigned char)*_Mid1) < 0x80 || 0xc0 <= _By)
92 _Ch = _Ch << 6 | (_By & 0x3f);
101 _First2, _Last2, _Mid2);
114 *_Mid2++ = (_Elem)_Ch;
_In_ size_t _In_ unsigned int _Ch
Definition: mbstring.h:161
virtual result do_in(_Statype &_State, const _Byte *_First1, const _Byte *_Last1, const _Byte *&_Mid1, _Elem *_First2, _Elem *_Last2, _Elem *&_Mid2) const
Definition: codecvt:53
_Mybase::result result
Definition: codecvt:37
template<class _Elem , unsigned long _Mymax = 0x10ffff, codecvt_mode _Mymode = (codecvt_mode)0>
Reimplemented from codecvt< _Elem, char, _Statype >.
188 for (; _Wchars <
_Count && _First1 != _Last1; )
194 switch (
do_in(_Mystate, _First1, _Last1, _Mid1,
195 &_Ch, &_Ch + 1, _Mid2))
198 return ((
int)(_Wchars + (_Last1 - _First1)));
201 if (_Mid2 == &_Ch + 1)
207 return ((
int)_Wchars);
211 return ((
int)_Wchars);
char _Byte
Definition: codecvt:38
_In_ size_t _In_ unsigned int _Ch
Definition: mbstring.h:161
virtual result do_in(_Statype &_State, const _Byte *_First1, const _Byte *_Last1, const _Byte *&_Mid1, _Elem *_First2, _Elem *_Last2, _Elem *&_Mid2) const
Definition: codecvt:53
_Diff _Count
Definition: algorithm:1941
_CSTD mbstate_t _Statype
Definition: codecvt:26
template<class _Elem , unsigned long _Mymax = 0x10ffff, codecvt_mode _Mymode = (codecvt_mode)0>
virtual int codecvt_utf8< _Elem, _Mymax, _Mymode >::do_max_length |
( |
| ) |
const |
|
inlineprotectedvirtual |
template<class _Elem , unsigned long _Mymax = 0x10ffff, codecvt_mode _Mymode = (codecvt_mode)0>
virtual result codecvt_utf8< _Elem, _Mymax, _Mymode >::do_out |
( |
_Statype & |
_State, |
|
|
const _Elem * |
_First1, |
|
|
const _Elem * |
_Last1, |
|
|
const _Elem *& |
_Mid1, |
|
|
_Byte * |
_First2, |
|
|
_Byte * |
_Last2, |
|
|
_Byte *& |
_Mid2 |
|
) |
| const |
|
inlineprotectedvirtual |
Reimplemented from codecvt< _Elem, char, _Statype >.
124 char *_Pstate = (
char *)&_State;
128 for (; _Mid1 != _Last1 && _Mid2 != _Last2; )
132 unsigned long _Ch = (
unsigned long)*_Mid1;
138 _By = (
_Byte)_Ch, _Nextra = 0;
139 else if (_Ch < 0x0800)
140 _By = (
_Byte)(0xc0 | _Ch >> 6), _Nextra = 1;
141 else if (_Ch < 0x00010000)
142 _By = (
_Byte)(0xe0 | _Ch >> 12), _Nextra = 2;
143 else if (_Ch < 0x00200000)
144 _By = (
_Byte)(0xf0 | _Ch >> 18), _Nextra = 3;
145 else if (_Ch < 0x04000000)
146 _By = (
_Byte)(0xf8 | _Ch >> 24), _Nextra = 4;
148 _By = (
_Byte)(0xfc | (_Ch >> 30 & 0x03)), _Nextra = 5;
155 else if (_Last2 - _Mid2 < 3 + 1 + _Nextra)
159 *_Mid2++ = (
_Byte)(
unsigned char)0xef;
160 *_Mid2++ = (
_Byte)(
unsigned char)0xbb;
161 *_Mid2++ = (
_Byte)(
unsigned char)0xbf;
165 if (_Last2 - _Mid2 < 1 + _Nextra)
169 for (*_Mid2++ = _By; 0 < _Nextra; )
170 *_Mid2++ = (
_Byte)((_Ch >> 6 * --_Nextra & 0x3f) | 0x80);
char _Byte
Definition: codecvt:38
_In_ size_t _In_ unsigned int _Ch
Definition: mbstring.h:161
template<class _Elem , unsigned long _Mymax = 0x10ffff, codecvt_mode _Mymode = (codecvt_mode)0>
The documentation for this class was generated from the following file: