Lines Matching refs:state
52 mbstate_t state;
144 mbstate_t state = wcd->state;
148 size_t count = wcrtomb(buf+bufcount,*inptr,&state);
177 wcd->state = state;
221 wcd->state = state;
241 memset(&wcd->state,'\0',sizeof(mbstate_t));
244 if (!mbsinit(&wcd->state)) {
245 mbstate_t state = wcd->state;
247 size_t bufcount = wcrtomb(buf,(wchar_t)0,&state);
269 wcd->state = state;
347 mbstate_t state = wcd->state;
349 res = mbrtowc(&wc,buf,bufcount,&state);
373 /* Restoring the state is not needed because it is the initial
374 state anyway: For all known locale encodings, the multibyte
375 to wchar_t conversion doesn't have shift state, and we have
377 /* wcd->state = state; */
394 /* Restoring the state is not needed because it is the initial
395 state anyway: For all known locale encodings, the multibyte
396 to wchar_t conversion doesn't have shift state, and we have
398 /* wcd->state = state; */
420 memset(&wcd->state,0,sizeof(mbstate_t));