Home
last modified time | relevance | path

Searched refs:mbs (Results 1 – 14 of 14) sorted by relevance

/bionic/libc/upstream-openbsd/lib/libc/locale/
Dwctob.c36 mbstate_t mbs; in wctob() local
39 memset(&mbs, 0, sizeof(mbs)); in wctob()
40 if (c == WEOF || wcrtomb(buf, c, &mbs) != 1) in wctob()
Dwctomb.c36 static mbstate_t mbs; in wctomb() local
41 memset(&mbs, 0, sizeof(mbs)); in wctomb()
44 if ((rval = wcrtomb(s, wchar, &mbs)) == (size_t)-1) in wctomb()
Dbtowc.c36 mbstate_t mbs; in btowc() local
47 memset(&mbs, 0, sizeof(mbs)); in btowc()
49 if (mbrtowc(&wc, &cc, 1, &mbs) > 1) in btowc()
Dmbstowcs.c38 mbstate_t mbs; in mbstowcs() local
41 memset(&mbs, 0, sizeof(mbs)); in mbstowcs()
43 return (mbsrtowcs(pwcs, &sp, n, &mbs)); in mbstowcs()
Dwcstombs.c37 mbstate_t mbs; in wcstombs() local
40 memset(&mbs, 0, sizeof(mbs)); in wcstombs()
42 return (wcsrtombs(s, &pwcsp, n, &mbs)); in wcstombs()
Dmbtowc.c38 static mbstate_t mbs; in mbtowc() local
43 memset(&mbs, 0, sizeof(mbs)); in mbtowc()
46 rval = mbrtowc(pwc, s, n, &mbs); in mbtowc()
Dmbrlen.c34 static mbstate_t mbs; in mbrlen() local
37 ps = &mbs; in mbrlen()
/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dvswscanf.c55 mbstate_t mbs; in vswscanf() local
70 bzero(&mbs, sizeof(mbs)); in vswscanf()
72 if ((mlen = wcsrtombs(mbstr, &strp, len, &mbs)) == (size_t)-1) { in vswscanf()
Dvswprintf.c43 mbstate_t mbs; in vswprintf() local
82 bzero(&mbs, sizeof(mbs)); in vswprintf()
83 nwc = mbsrtowcs(s, (const char **)&mbp, n, &mbs); in vswprintf()
Dopen_wmemstream.c37 mbstate_t mbs; /* conversion state of the stream */ member
64 len = mbsnrtowcs(st->string + st->pos, &b, nmc, l, &st->mbs); in wmemstream_write()
105 bzero(&st->mbs, sizeof(st->mbs)); in wmemstream_seek()
154 bzero(&st->mbs, sizeof(st->mbs)); in open_wmemstream()
Dvfwscanf.c122 mbstate_t mbs; in __vfwscanf() local
374 bzero(&mbs, sizeof(mbs)); in __vfwscanf()
379 nconv = wcrtomb(mbp, wi, &mbs); in __vfwscanf()
384 &mbs); in __vfwscanf()
439 bzero(&mbs, sizeof(mbs)); in __vfwscanf()
444 nconv = wcrtomb(mbp, wi, &mbs); in __vfwscanf()
449 &mbs); in __vfwscanf()
500 bzero(&mbs, sizeof(mbs)); in __vfwscanf()
506 nconv = wcrtomb(mbp, wi, &mbs); in __vfwscanf()
511 &mbs); in __vfwscanf()
[all …]
Dvfscanf.c116 mbstate_t mbs; in __svfscanf() local
356 bzero(&mbs, sizeof(mbs)); in __svfscanf()
357 nconv = mbrtowc(wcp, buf, n, &mbs); in __svfscanf()
438 bzero(&mbs, sizeof(mbs)); in __svfscanf()
439 nconv = mbrtowc(wcp, buf, n, &mbs); in __svfscanf()
542 bzero(&mbs, sizeof(mbs)); in __svfscanf()
543 nconv = mbrtowc(wcp, buf, n, &mbs); in __svfscanf()
Dvfprintf.c157 mbstate_t mbs; in __wcsconv() local
165 memset(&mbs, 0, sizeof(mbs)); in __wcsconv()
167 nbytes = wcsrtombs(NULL, (const wchar_t **)&p, 0, &mbs); in __wcsconv()
183 memset(&mbs, 0, sizeof(mbs)); in __wcsconv()
185 clen = wcrtomb(buf, *p++, &mbs); in __wcsconv()
202 memset(&mbs, 0, sizeof(mbs)); in __wcsconv()
204 nbytes, &mbs)) == (size_t)-1) { in __wcsconv()
635 mbstate_t mbs; in __vfprintf() local
638 memset(&mbs, 0, sizeof(mbs)); in __vfprintf()
640 (wchar_t)GETARG(wint_t), &mbs); in __vfprintf()
Dvfwprintf.c132 mbstate_t mbs; in __xfputwc() local
141 bzero(&mbs, sizeof(mbs)); in __xfputwc()
142 len = wcrtomb(buf, wc, &mbs); in __xfputwc()
168 mbstate_t mbs; in __mbsconv() local
187 bzero(&mbs, sizeof(mbs)); in __mbsconv()
189 nconv = mbrlen(p, MB_CUR_MAX, &mbs); in __mbsconv()
212 bzero(&mbs, sizeof(mbs)); in __mbsconv()
215 nconv = mbrtowc(wcp, p, insize, &mbs); in __mbsconv()