• Home
  • Raw
  • Download

Lines Matching refs:state

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