Searched refs:len_bytes (Results 1 – 2 of 2) sorted by relevance
151 char *utf8_is_valid_n(const char *str, size_t len_bytes) { in utf8_is_valid_n() argument157 … for (const char *p = str; len_bytes != SIZE_MAX ? (size_t) (p - str) < len_bytes : *p != '\0'; ) { in utf8_is_valid_n()160 if (_unlikely_(*p == '\0') && len_bytes != SIZE_MAX) in utf8_is_valid_n()164 … len_bytes != SIZE_MAX ? len_bytes - (p - str) : SIZE_MAX); in utf8_is_valid_n()
17 char *utf8_is_valid_n(const char *str, size_t len_bytes) _pure_;