Home | History | Annotate | Download | only in unit

Lines Matching refs:state

65       char *state = (char*)&mb;
72 if (*ecur == '0' || *state == 1) {
73 if (*state != 1) {
77 *state = 1;
87 if (*state != 1) {
99 *state = 0;
116 virtual int do_length(mbstate_t &state,
121 mbstate_t tmp = state;
159 char *state = (char*)&mb;
165 if (*state == 2) {
168 *state = 3;
172 *state = 0;
174 else if (*state == 3) {
176 *state = 0;
182 if (*ecur == '0' || *state == 1) {
183 if (*state != 1) {
187 *state = 1;
194 *state = 2;
199 *state = 3;
207 if (*state != 1) {
219 *state = 0;
238 const char *state = (const char*)&mb;
240 if (*state == 2)
242 else if (*state == 3)
251 char *state = (char*)&tmpState;
252 if (*state != 0) {
253 if (*state == 1)
255 else if (*state == 2 || *state == 3) {
394 cdecvt_type::state_type state;
395 memset(&state, 0, sizeof(cdecvt_type::state_type));
400 cdecvt_type::result res = cdect.in(state, from.data(), from.data() + from.size(), next_from,
408 cdecvt_type::state_type state;
409 memset(&state, 0, sizeof(cdecvt_type::state_type));
414 cdecvt_type::result res = cdect.out(state, from.data(), from.data() + from.size(), next_from,
441 cdecvt_type::state_type state;
442 memset(&state, 0, sizeof(cdecvt_type::state_type));
444 int res = cdect.length(state, from.data(), from.data() + from.size(), from.size());
466 virtual result do_in(state_type& /*state*/, const extern_type* first1,
515 mbstate_t state;
516 memset(&state, 0, sizeof(mbstate_t));
521 CPPUNIT_ASSERT( cvt.in(state, &c, &c + 1, from_next, &wc, &wc, to_next) == codecvt_base::ok );
523 CPPUNIT_ASSERT( cvt.in(state, &c, &c + 1, from_next, &wc, &wc + 1, to_next) == codecvt_base::ok );
533 mbstate_t state;
534 memset(&state, 0, sizeof(mbstate_t));
541 int len = cvt.length(state, cp936_str.data(), cp936_str.data() + cp936_str.size(), sizeof(wbuf) / sizeof(wchar_t));
546 res = cvt.in(state, cp936_str.data(), cp936_str.data() + cp936_str.size(), from_next,
557 res = cvt.out(state, cp936_wstr.data(), cp936_wstr.data() + cp936_wstr.size(), from_next,
573 mbstate_t state;
574 memset(&state, 0, sizeof(mbstate_t));
581 int len = cvt.length(state, utf8_str.data(), utf8_str.data() + utf8_str.size(), sizeof(wbuf) / sizeof(wchar_t));
586 res = cvt.in(state, utf8_str.data(), utf8_str.data() + utf8_str.size(), from_next,
600 res = cvt.in(state, from, from + length, from_next,
632 res = cvt.out(state, utf8_wstr.data(), utf8_wstr.data() + utf8_wstr.size(), from_next,
644 res = cvt.in(state, bad_utf8_str.data(), bad_utf8_str.data() + bad_utf8_str.size(), from_next,