1
0
mirror of https://github.com/systemd/systemd synced 2024-07-01 07:34:28 +00:00

utf8: export utf8_char_console_width()

This commit is contained in:
Lennart Poettering 2024-04-26 17:40:54 +02:00
parent f943fd9143
commit 9632f8b465
2 changed files with 2 additions and 1 deletions

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;

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);