aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNicholas Noll <nnoll523@gmail.com>2021-10-29 16:21:35 -0700
committerNicholas Noll <nnoll523@gmail.com>2021-10-29 16:21:35 -0700
commit5d1e21d28a93415b66401d27a30ee8eb6b2b66a8 (patch)
tree05915cb47dc9a5208f4b969587b496f831562f94 /include
parent6db99f51209ebde97311df3aac081f82589319cb (diff)
checkin
Diffstat (limited to 'include')
-rw-r--r--include/libunicode.h1
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