Lines Matching refs:size_t
64 static size_t utf8_encoded_expected_len(uint8_t c) { in utf8_encoded_expected_len()
84 size_t len; in utf8_encoded_to_unichar()
113 for (size_t i = 1; i < len; i++) { in utf8_encoded_to_unichar()
126 bool utf8_is_printable_newline(const char* str, size_t length, bool allow_newline) { in utf8_is_printable_newline()
136 assert(encoded_len > 0 && (size_t) encoded_len <= length); in utf8_is_printable_newline()
151 char *utf8_is_valid_n(const char *str, size_t len_bytes) { in utf8_is_valid_n()
157 … for (const char *p = str; len_bytes != SIZE_MAX ? (size_t) (p - str) < len_bytes : *p != '\0'; ) { in utf8_is_valid_n()
213 char *utf8_escape_non_printable_full(const char *str, size_t console_width, bool force_ellipsis) { in utf8_escape_non_printable_full()
215 size_t n = 0; /* estimated print width */ in utf8_escape_non_printable_full()
302 char *ascii_is_valid_n(const char *str, size_t len) { in ascii_is_valid_n()
308 for (size_t i = 0; i < len; i++) in ascii_is_valid_n()
358 size_t utf8_encode_unichar(char *out_utf8, char32_t g) { in utf8_encode_unichar()
390 char *utf16_to_utf8(const char16_t *s, size_t length /* bytes! */) { in utf16_to_utf8()
442 size_t utf16_encode_unichar(char16_t *out, char32_t c) { in utf16_encode_unichar()
464 char16_t *utf8_to_utf16(const char *s, size_t length) { in utf8_to_utf16()
476 for (size_t i = 0; i < length;) { in utf8_to_utf16()
478 size_t e; in utf8_to_utf16()
503 size_t char16_strlen(const char16_t *s) { in char16_strlen()
504 size_t n = 0; in char16_strlen()
532 int utf8_encoded_valid_unichar(const char *str, size_t length /* bytes */) { in utf8_encoded_valid_unichar()
534 size_t len; in utf8_encoded_valid_unichar()
555 for (size_t i = 0; i < len; i++) in utf8_encoded_valid_unichar()
574 size_t utf8_n_codepoints(const char *str) { in utf8_n_codepoints()
575 size_t n = 0; in utf8_n_codepoints()
593 size_t utf8_console_width(const char *str) { in utf8_console_width()
594 size_t n = 0; in utf8_console_width()