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) {
392 cdecvt_type::state_type state;
393 memset(&state, 0, sizeof(cdecvt_type::state_type));
398 cdecvt_type::result res = cdect.in(state, from.data(), from.data() + from.size(), next_from,
406 cdecvt_type::state_type state;
407 memset(&state, 0, sizeof(cdecvt_type::state_type));
412 cdecvt_type::result res = cdect.out(state, from.data(), from.data() + from.size(), next_from,
439 cdecvt_type::state_type state;
440 memset(&state, 0, sizeof(cdecvt_type::state_type));
442 int res = cdect.length(state, from.data(), from.data() + from.size(), from.size());
464 virtual result do_in(state_type& /*state*/, const extern_type* first1,
513 mbstate_t state;
514 memset(&state, 0, sizeof(mbstate_t));
519 CPPUNIT_ASSERT( cvt.in(state, &c, &c + 1, from_next, &wc, &wc, to_next) == codecvt_base::ok );
521 CPPUNIT_ASSERT( cvt.in(state, &c, &c + 1, from_next, &wc, &wc + 1, to_next) == codecvt_base::ok );
531 mbstate_t state;
532 memset(&state, 0, sizeof(mbstate_t));
539 int len = cvt.length(state, cp936_str.data(), cp936_str.data() + cp936_str.size(), sizeof(wbuf) / sizeof(wchar_t));
544 res = cvt.in(state, cp936_str.data(), cp936_str.data() + cp936_str.size(), from_next,
555 res = cvt.out(state, cp936_wstr.data(), cp936_wstr.data() + cp936_wstr.size(), from_next,
571 mbstate_t state;
572 memset(&state, 0, sizeof(mbstate_t));
579 int len = cvt.length(state, utf8_str.data(), utf8_str.data() + utf8_str.size(), sizeof(wbuf) / sizeof(wchar_t));
584 res = cvt.in(state, utf8_str.data(), utf8_str.data() + utf8_str.size(), from_next,
598 res = cvt.in(state, from, from + length, from_next,
630 res = cvt.out(state, utf8_wstr.data(), utf8_wstr.data() + utf8_wstr.size(), from_next,
642 res = cvt.in(state, bad_utf8_str.data(), bad_utf8_str.data() + bad_utf8_str.size(), from_next,