Lines Matching refs:nb
206 size_t nb;
229 nb = 1;
230 else if ((nb = _UTF8_mbrtowc(&wc, s, nms, ps)) ==
234 else if (nb == 0 || nb == (size_t)-2)
236 s += nb;
237 nms -= nb;
259 nb = 1;
260 } else if ((nb = _UTF8_mbrtowc(dst, s, nms, ps)) ==
264 } else if (nb == (size_t)-2) {
267 } else if (nb == 0) {
271 s += nb;
272 nms -= nb;
354 size_t nb;
370 nb = 1;
371 else if ((nb = _UTF8_wcrtomb(buf, *s, ps)) ==
376 return (nbytes + nb - 1);
378 nbytes += nb;
386 nb = 1;
390 if ((nb = _UTF8_wcrtomb(dst, *s, ps)) == (size_t)-1) {
398 if ((nb = _UTF8_wcrtomb(buf, *s, ps)) == (size_t)-1) {
402 if (nb > (int)len)
405 (void) memcpy(dst, buf, nb);
409 return (nbytes + nb - 1);
412 dst += nb;
413 len -= nb;
414 nbytes += nb;