diff options
author | Nicholas Noll <nnoll523@gmail.com> | 2021-10-29 16:21:35 -0700 |
---|---|---|
committer | Nicholas Noll <nnoll523@gmail.com> | 2021-10-29 16:21:35 -0700 |
commit | 5d1e21d28a93415b66401d27a30ee8eb6b2b66a8 (patch) | |
tree | 05915cb47dc9a5208f4b969587b496f831562f94 /include/libunicode.h | |
parent | 6db99f51209ebde97311df3aac081f82589319cb (diff) |
checkin
Diffstat (limited to 'include/libunicode.h')
-rw-r--r-- | include/libunicode.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libunicode.h b/include/libunicode.h index 773f9ab..d6618eb 100644 --- a/include/libunicode.h +++ b/include/libunicode.h @@ -16,6 +16,7 @@ typedef uint32 rune; */ int utf8·len(char *s); // returns number of runes for s int utf8·runelen(rune r); // returns number of bytes for rune +int utf8·runewidth(rune r); // returns number of printed columns for rune int utf8·decode(char *, rune *); // decode 1 rune from char stream, store into rune, return number of bytes int utf8·encode(rune *, char *); // encode 1 rune from rune stream, store into char, return number of bytes |