Lines Matching refs:charlen
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()
143 if (charlen == (size_t)-1) { in wmemstream_write()
151 if (charlen == 0) in wmemstream_write()
153 charlen = 1; in wmemstream_write()
154 if (charlen == (size_t)-2) { in wmemstream_write()
158 consumed += charlen; in wmemstream_write()
159 buf += charlen; in wmemstream_write()
160 len -= charlen; in wmemstream_write()