Searched refs:charlen (Results 1 – 3 of 3) sorted by relevance
/freebsd/lib/libc/stdio/ |
H A D | open_wmemstream.c | 98 size_t charlen, count; in wbuflen() local 103 charlen = mbrlen(buf, len, &lenstate); in wbuflen() 104 if (charlen == (size_t)-1) in wbuflen() 106 if (charlen == (size_t)-2) in wbuflen() 108 if (charlen == 0) in wbuflen() 110 charlen = 1; in wbuflen() 111 len -= charlen; in wbuflen() 112 buf += charlen; in wbuflen() 123 size_t charlen; in wmemstream_write() local 141 charlen = mbrtowc(*ms->bufp + ms->offset, buf, len, in wmemstream_write() [all …]
|
/freebsd/contrib/bsddialog/lib/ |
H A D | lib_util.c | 130 size_t charlen, nchar; in alloc_mbstows() local 138 while ((charlen = mbrlen(pmbstring, MB_CUR_MAX, &mbs)) != 0 && in alloc_mbstows() 139 charlen != (size_t)-1 && charlen != (size_t)-2) { in alloc_mbstows() 140 pmbstring += charlen; in alloc_mbstows() 165 size_t charlen, mb_cur_max; in str_props() local 173 while ((charlen = mbrlen(mbstring, mb_cur_max, &mbs)) != 0 && in str_props() 174 charlen != (size_t)-1 && charlen != (size_t)-2) { in str_props() 181 mbstring += charlen; in str_props() 196 size_t charlen, mb_cur_max; strcols() local [all...] |
/freebsd/usr.bin/sort/ |
H A D | bwstring.c | 332 size_t charlen, chars, cptr; in bwscsbdup() local 345 charlen = mbrlen(s + cptr, n, &mbs); in bwscsbdup() 346 switch (charlen) { in bwscsbdup() 358 s + cptr, charlen, &mbs); in bwscsbdup() 362 cptr += charlen; in bwscsbdup()
|