Home
last modified time | relevance | path

Searched refs:nmc (Results 1 – 2 of 2) sorted by relevance

/bionic/libc/bionic/
Dwchar.cpp68 size_t mbsnrtowcs(wchar_t* dst, const char** src, size_t nmc, size_t len, mbstate_t* ps) { in mbsnrtowcs() argument
76 if (nmc > 0 && mbstate_bytes_so_far(state) > 0 && static_cast<uint8_t>((*src)[0]) < 0x80) { in mbsnrtowcs()
82 for (i = o = 0; i < nmc; i += r, o++) { in mbsnrtowcs()
90 r = mbrtowc(nullptr, *src + i, nmc - i, state); in mbsnrtowcs()
106 for (i = o = 0; i < nmc && o < len; i += r, o++) { in mbsnrtowcs()
116 r = mbrtowc(dst + o, *src + i, nmc - i, state); in mbsnrtowcs()
122 *src += nmc; in mbsnrtowcs()
/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dopen_wmemstream.c45 size_t nmc, len, end; in wmemstream_write() local
63 nmc = (st->size - st->pos) * sizeof(wchar_t); in wmemstream_write()
64 len = mbsnrtowcs(st->string + st->pos, &b, nmc, l, &st->mbs); in wmemstream_write()