Lines Matching refs:utf8len
261 size_t * utf8len, size_t buflen, u_int16_t altslash, int flags)
374 *utf8len = utf8p - bufstart;
387 * if utf8len is set.
411 utf8_decodestr(const u_int8_t* utf8p, size_t utf8len, u_int16_t* ucsp,
433 while (utf8len-- > 0 && (byte = *utf8p++) != '\0') {
439 ucs_ch = sfmconv ? ucs_to_sfm(byte, utf8len == 0) : byte;
444 if ((extrabytes < 0) || ((int)utf8len < extrabytes)) {
447 utf8len -= extrabytes;
588 utf8len += extrabytes;
628 utf8_validatestr(const u_int8_t* utf8p, size_t utf8len)
635 while (utf8len-- > 0 && (byte = *utf8p++) != '\0') {
641 if (utf8len < extrabytes)
643 utf8len -= extrabytes;