Home
last modified time | relevance | path

Searched refs:len_bytes (Results 1 – 2 of 2) sorted by relevance

/systemd-251/src/basic/
Dutf8.c151 char *utf8_is_valid_n(const char *str, size_t len_bytes) { in utf8_is_valid_n() argument
157 … 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()
164len_bytes != SIZE_MAX ? len_bytes - (p - str) : SIZE_MAX); in utf8_is_valid_n()
Dutf8.h17 char *utf8_is_valid_n(const char *str, size_t len_bytes) _pure_;