Searched refs:wn (Results 1 – 4 of 4) sorted by relevance
/ndk/sources/android/support/src/musl-multibyte/ |
D | mbsnrtowcs.c | 9 size_t mbsnrtowcs(wchar_t *restrict wcs, const char **restrict src, size_t n, size_t wn, mbstate_t … in mbsnrtowcs() argument 15 if (!wcs) ws = wbuf, wn = sizeof wbuf / sizeof *wbuf; in mbsnrtowcs() 22 while ( s && wn && ( (n2=n/4)>=wn || n2>32 ) ) { in mbsnrtowcs() 23 if (n2>=wn) n2=wn; in mbsnrtowcs() 28 wn = 0; in mbsnrtowcs() 33 wn -= l; in mbsnrtowcs() 37 if (s) while (wn && n) { in mbsnrtowcs() 54 ws++; wn--; in mbsnrtowcs()
|
D | mbsrtowcs.c | 12 size_t mbsrtowcs(wchar_t *restrict ws, const char **restrict src, size_t wn, mbstate_t *restrict st) in mbsrtowcs() argument 15 size_t wn0 = wn; in mbsrtowcs() 31 wn -= 4; in mbsrtowcs() 36 wn--; in mbsrtowcs() 52 wn--; in mbsrtowcs() 55 if (!wn) { in mbsrtowcs() 60 while (wn>=5 && !(( *(uint32_t*)s | *(uint32_t*)s-0x01010101) & 0x80808080)) { in mbsrtowcs() 65 wn -= 4; in mbsrtowcs() 70 wn--; in mbsrtowcs() 87 wn--; in mbsrtowcs() [all …]
|
D | wcsnrtombs.c | 9 size_t wcsnrtombs(char *restrict dst, const wchar_t **restrict wcs, size_t wn, size_t n, mbstate_t … in wcsnrtombs() argument 18 while ( ws && n && ( (n2=wn)>=n || n2>32 ) ) { in wcsnrtombs() 20 wn -= n2; in wcsnrtombs() 33 if (ws) while (n && wn) { in wcsnrtombs() 40 ws++; wn--; in wcsnrtombs()
|
D | mbstowcs.c | 4 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()
|