utf8: add helper call for counting display width of strings

This commit is contained in:
Lennart Poettering
2018-04-18 12:35:45 +02:00
parent b77f5e2773
commit 3f536d5bae
2 changed files with 22 additions and 0 deletions
+1
View File
@@ -48,3 +48,4 @@ static inline char32_t utf16_surrogate_pair_to_unichar(char16_t lead, char16_t t
}
size_t utf8_n_codepoints(const char *str);
size_t utf8_console_width(const char *str);