Home
last modified time | relevance | path

Searched refs:wn (Results 1 – 4 of 4) sorted by relevance

/ndk/sources/android/support/src/musl-multibyte/
Dmbsnrtowcs.c15 size_t mbsnrtowcs(wchar_t *restrict wcs, const char **restrict src, size_t n, size_t wn, mbstate_t … in mbsnrtowcs() argument
21 if (!wcs) ws = wbuf, wn = sizeof wbuf / sizeof *wbuf; in mbsnrtowcs()
28 while ( s && wn && ( (n2=n/4)>=wn || n2>32 ) ) { in mbsnrtowcs()
29 if (n2>=wn) n2=wn; in mbsnrtowcs()
34 wn = 0; in mbsnrtowcs()
39 wn -= l; in mbsnrtowcs()
43 if (s) while (wn && n) { in mbsnrtowcs()
60 ws++; wn--; in mbsnrtowcs()
Dmbsrtowcs.c14 size_t mbsrtowcs(wchar_t *restrict ws, const char **restrict src, size_t wn, mbstate_t *restrict st) in mbsrtowcs() argument
17 size_t wn0 = wn; in mbsrtowcs()
33 wn -= 4; in mbsrtowcs()
38 wn--; in mbsrtowcs()
54 wn--; in mbsrtowcs()
57 if (!wn) return wn0; in mbsrtowcs()
59 while (wn>=4 && !(( *(uint32_t*)s | *(uint32_t*)s-0x01010101) & 0x80808080)) { in mbsrtowcs()
64 wn -= 4; in mbsrtowcs()
69 wn--; in mbsrtowcs()
86 wn--; in mbsrtowcs()
[all …]
Dwcsnrtombs.c14 size_t wcsnrtombs(char *restrict dst, const wchar_t **restrict wcs, size_t wn, size_t n, mbstate_t … in wcsnrtombs() argument
23 while ( ws && n && ( (n2=wn)>=n || n2>32 ) ) { in wcsnrtombs()
25 wn -= n2; in wcsnrtombs()
38 if (ws) while (n && wn) { in wcsnrtombs()
45 ws++; wn--; in wcsnrtombs()
Dmbstowcs.c4 size_t mbstowcs(wchar_t *restrict ws, const char *restrict s, size_t wn) in mbstowcs() argument
6 return mbsrtowcs(ws, (void*)&s, wn, 0); in mbstowcs()