Lines Matching refs:nb
217 size_t nb;
240 nb = 1;
241 else if ((nb = _UTF8_mbrtowc(&wc, s, nms, ps)) ==
245 else if (nb == 0 || nb == (size_t)-2)
247 s += nb;
248 nms -= nb;
270 nb = 1;
271 } else if ((nb = _UTF8_mbrtowc(dst, s, nms, ps)) ==
275 } else if (nb == (size_t)-2) {
278 } else if (nb == 0) {
282 s += nb;
283 nms -= nb;
360 size_t nb;
376 nb = 1;
377 else if ((nb = _UTF8_wcrtomb(buf, *s, ps)) ==
382 return (nbytes + nb - 1);
384 nbytes += nb;
392 nb = 1;
396 if ((nb = _UTF8_wcrtomb(dst, *s, ps)) == (size_t)-1) {
404 if ((nb = _UTF8_wcrtomb(buf, *s, ps)) == (size_t)-1) {
408 if (nb > (int)len)
411 memcpy(dst, buf, nb);
415 return (nbytes + nb - 1);
418 dst += nb;
419 len -= nb;
420 nbytes += nb;