|
| eater_codecvt (size_t refs=0) |
|
virtual base::result | do_in (mbstate_t &mb, const char *ebegin, const char *eend, const char *&ecur, char *ibegin, char *iend, char *&icur) const __NO_THROW |
|
virtual bool | do_always_noconv () const __NO_THROW |
|
virtual int | do_encoding () const __NO_THROW |
|
virtual int | do_length (mbstate_t &state, const char *efrom, const char *eend, size_t m) const |
|
virtual int | do_max_length () const __NO_THROW |
|
| codecvt (size_t __refs=0) |
|
result | out (state_type &__state, const char *__from, const char *__from_end, const char *&__from_next, char *__to, char *__to_limit, char *&__to_next) const |
|
result | unshift (state_type &__state, char *__to, char *__to_limit, char *&__to_next) const |
|
result | in (state_type &__state, const char *__from, const char *__from_end, const char *&__from_next, char *__to, char *__to_limit, char *&__to_next) const |
|
int | encoding () const _STLP_NOTHROW |
|
bool | always_noconv () const _STLP_NOTHROW |
|
int | length (state_type &__state, const char *__from, const char *__from_end, size_t __max) const |
|
int | max_length () const _STLP_NOTHROW |
|
|
static _STLP_STATIC_DECLSPEC locale::id | id = { 3 } |
|
| ~codecvt () |
|
virtual result | do_out (state_type &, const char *__from, const char *, const char *&__from_next, char *__to, char *, char *&__to_next) const |
|
virtual result | do_in (state_type &, const char *__from, const char *, const char *&__from_next, char *__to, char *, char *&__to_next) const |
|
virtual result | do_unshift (state_type &, char *__to, char *, char *&__to_next) const |
|
virtual int | do_encoding () const _STLP_NOTHROW |
|
virtual bool | do_always_noconv () const _STLP_NOTHROW |
|
virtual int | do_length (state_type &__state, const char *__from, const char *__end, size_t __max) const |
|
virtual int | do_max_length () const _STLP_NOTHROW |
|
| facet (size_t __init_count=0) |
|
virtual | ~facet () |
|
| _Refcount_Base (__stl_atomic_t __n) |
|
__stl_atomic_t | _M_incr () |
|
__stl_atomic_t | _M_decr () |
|
Definition at line 55 of file codecvt_test.cpp.
◆ base
◆ eater_codecvt()
eater_codecvt::eater_codecvt |
( |
size_t |
refs = 0 | ) |
|
|
inlineexplicit |
◆ do_always_noconv()
virtual bool eater_codecvt::do_always_noconv |
( |
| ) |
const |
|
inlinevirtual |
◆ do_encoding()
virtual int eater_codecvt::do_encoding |
( |
| ) |
const |
|
inlinevirtual |
◆ do_in()
Reimplemented from codecvt< char, char, mbstate_t >.
Definition at line 62 of file codecvt_test.cpp.
64 {
65 char *
state = (
char*)&mb;
66 ecur = ebegin;
67 icur = ibegin;
68
69 while (ecur != eend) {
70 if (icur == iend)
72 if (*ecur ==
'0' || *
state == 1) {
74 ++ecur;
75 }
76 if (ecur == eend) {
79 }
80
81 if (*ecur == '1') {
82 *icur = 'a';
83 }
84 else {
85 *(icur++) = '0';
86 if (icur == iend) {
88 --ecur;
89 }
91 }
92 *icur = *ecur;
93 }
94 }
95 else {
96 *icur = *ecur;
97 }
98
100 ++icur;
101 ++ecur;
102 }
103
105 }
Referenced by do_length().
◆ do_length()
Reimplemented from codecvt< char, char, mbstate_t >.
Definition at line 116 of file codecvt_test.cpp.
117 {
118 char *ibegin =
new char[
m];
119 const char *ecur = efrom;
120 char *icur = ibegin;
122 do_in(tmp, efrom, eend, ecur, ibegin, ibegin +
m, icur);
123 delete[] ibegin;
124 return ecur - efrom;
125 }
virtual base::result do_in(mbstate_t &mb, const char *ebegin, const char *eend, const char *&ecur, char *ibegin, char *iend, char *&icur) const __NO_THROW
◆ do_max_length()
virtual int eater_codecvt::do_max_length |
( |
| ) |
const |
|
inlinevirtual |
The documentation for this struct was generated from the following file: