utf8: export utf8_char_console_width()

This commit is contained in:
Lennart Poettering
2024-06-17 09:20:21 +02:00
parent f943fd9143
commit 9632f8b465
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -179,7 +179,7 @@ char *utf8_escape_invalid(const char *str) {
return str_realloc(p);
}
static int utf8_char_console_width(const char *str) {
int utf8_char_console_width(const char *str) {
char32_t c;
int r;
+1
View File
@@ -59,4 +59,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);