utf8: add helper that determines length in bytes of last UTF-8 character in string
This commit is contained in:
@@ -62,3 +62,5 @@ static inline char32_t utf16_surrogate_pair_to_unichar(char16_t lead, char16_t t
|
||||
size_t utf8_n_codepoints(const char *str);
|
||||
int utf8_char_console_width(const char *str);
|
||||
size_t utf8_console_width(const char *str);
|
||||
|
||||
size_t utf8_last_length(const char *s, size_t n);
|
||||
|
||||
Reference in New Issue
Block a user