Lines Matching refs:state

33 	mbstate_t state;
48 memset(&state, '\0', sizeof(mbstate_t));
51 ret = mbsnrtowcs(NULL, &src, 1, 0, &state);
53 assert(mbsinit (&state));
56 ret = mbsnrtowcs(NULL, &src, 1, 1, &state);
58 assert(mbsinit (&state));
62 ret = mbsnrtowcs(&wc, &src, 1, 0, &state);
65 assert(mbsinit (&state));
69 ret = mbsnrtowcs(&wc, &src, 1, 1, &state);
72 assert(mbsinit (&state));
94 memset(&state, '\0', sizeof(mbstate_t));
103 ret = mbrtowc(&wc, input, 1, &state);
106 assert(mbsinit (&state));
110 ret = mbrtowc(&wc, input + 1, 1, &state);
113 assert(mbsinit (&state));
117 temp_state = state;
122 assert(mbsinit (&state));
126 &state);
137 assert(mbsinit (&state));
146 memset(&state, '\0', sizeof(mbstate_t));
155 ret = mbrtowc(&wc, input, 1, &state);
158 assert(mbsinit (&state));
162 ret = mbrtowc(&wc, input + 1, 1, &state);
165 assert(!mbsinit (&state));
168 // Copying mbstate_t doesn't really copy the ICU-converter's state, so this
172 temp_state = state;
177 assert(!mbsinit (&state));
182 &state);
194 assert(mbsinit (&state));
203 memset(&state, '\0', sizeof(mbstate_t));
212 ret = mbrtowc(&wc, input, 1, &state);
215 assert(mbsinit (&state));
219 ret = mbrtowc(&wc, input + 1, 2, &state);
222 assert(mbsinit (&state));
227 ret = mbrtowc(&wc, input + 3, 1, &state);
230 assert(!mbsinit (&state));
233 // Copying mbstate_t doesn't really copy the ICU-converter's state, so this
237 temp_state = state;
242 assert(!mbsinit (&state));
247 &state);
258 assert(mbsinit (&state));
267 memset(&state, '\0', sizeof(mbstate_t));
276 ret = mbrtowc(&wc, input, 1, &state);
279 assert(mbsinit (&state));
283 ret = mbrtowc(&wc, input + 1, 1, &state);
286 assert(!mbsinit (&state));
289 // Copying mbstate_t doesn't really copy the ICU-converter's state, so this
293 temp_state = state;
298 assert(!mbsinit (&state));
303 &state);
315 assert(mbsinit (&state));