diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-04-11 19:50:53 +0200 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2018-08-24 16:47:08 +0200 |
commit | f54d8b36ba87e11d90e98d92d99ff07ba3764401 (patch) | |
tree | 8acf8a2b8471b119a49d7c318bfa5ae0c110bebc /src/basic/utf8.h | |
parent | 8d5db7532e577f4c5b4938cc551d8b6c040616d5 (diff) |
utf8: add helper call for counting display width of strings
Diffstat (limited to 'src/basic/utf8.h')
-rw-r--r-- | src/basic/utf8.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/basic/utf8.h b/src/basic/utf8.h index c3a7d7b96..7d68105a0 100644 --- a/src/basic/utf8.h +++ b/src/basic/utf8.h @@ -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); |