aboutsummaryrefslogtreecommitdiff
path: root/include/libunicode.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libunicode.h')
-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