aboutsummaryrefslogtreecommitdiff
path: root/sys/libutf/runelen.c
diff options
context:
space:
mode:
authorNicholas <nbnoll@eml.cc>2021-11-10 20:12:45 -0800
committerNicholas <nbnoll@eml.cc>2021-11-11 08:16:47 -0800
commit7ea1cdb7d31f00024f5a1d124b42cd19a03b959a (patch)
treef65abf9fa32856287de586129d4ed7c1c473864a /sys/libutf/runelen.c
parent43688fe7190d0350349d47727c3663421d5618dc (diff)
chore: libunicode -> libutf
Diffstat (limited to 'sys/libutf/runelen.c')
-rw-r--r--sys/libutf/runelen.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/libutf/runelen.c b/sys/libutf/runelen.c
new file mode 100644
index 0000000..dac7f15
--- /dev/null
+++ b/sys/libutf/runelen.c
@@ -0,0 +1,8 @@
+#include "internal.h"
+
+int
+utf8·runelen(rune r)
+{
+ byte s[10];
+ return utf8·encode(&r, s);
+}