Lines Matching refs:len

84         size_t len;  in utf8_encoded_to_unichar()  local
88 len = utf8_encoded_expected_len(str[0]); in utf8_encoded_to_unichar()
90 switch (len) { in utf8_encoded_to_unichar()
113 for (size_t i = 1; i < len; i++) { in utf8_encoded_to_unichar()
158 int len; in utf8_is_valid_n() local
163 len = utf8_encoded_valid_unichar(p, in utf8_is_valid_n()
165 if (_unlikely_(len < 0)) in utf8_is_valid_n()
168 p += len; in utf8_is_valid_n()
184 int len; in utf8_escape_invalid() local
186 len = utf8_encoded_valid_unichar(str, SIZE_MAX); in utf8_escape_invalid()
187 if (len > 0) { in utf8_escape_invalid()
188 s = mempcpy(s, str, len); in utf8_escape_invalid()
189 str += len; in utf8_escape_invalid()
227 int len; in utf8_escape_non_printable_full() local
237 len = utf8_encoded_valid_unichar(str, SIZE_MAX); in utf8_escape_non_printable_full()
238 if (len > 0) { in utf8_escape_non_printable_full()
239 if (utf8_is_printable(str, len)) { in utf8_escape_non_printable_full()
247 s = mempcpy(s, str, len); in utf8_escape_non_printable_full()
248 str += len; in utf8_escape_non_printable_full()
252 for (; len > 0; len--) { in utf8_escape_non_printable_full()
302 char *ascii_is_valid_n(const char *str, size_t len) { in ascii_is_valid_n() argument
308 for (size_t i = 0; i < len; i++) in ascii_is_valid_n()
534 size_t len; in utf8_encoded_valid_unichar() local
542 len = utf8_encoded_expected_len(str[0]); in utf8_encoded_valid_unichar()
543 if (len == 0) in utf8_encoded_valid_unichar()
547 if (len > length) in utf8_encoded_valid_unichar()
551 if (len == 1) in utf8_encoded_valid_unichar()
555 for (size_t i = 0; i < len; i++) in utf8_encoded_valid_unichar()
564 if (utf8_unichar_to_encoded_len(unichar) != (int) len) in utf8_encoded_valid_unichar()
571 return (int) len; in utf8_encoded_valid_unichar()