diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2015-09-15 09:06:33 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2015-09-15 09:09:15 +0200 |
| commit | fa950307aeb2a060be72fc73e0017e5497cb4ace (patch) | |
| tree | c7390ae9a6051c0e8f812ee0e31af0ccf507fd58 /libutf.c | |
| parent | e57595741285eebf1aac2f2ceac19cae5d949612 (diff) | |
| download | vis-fa950307aeb2a060be72fc73e0017e5497cb4ace.tar.gz vis-fa950307aeb2a060be72fc73e0017e5497cb4ace.tar.xz | |
Add utfnext utility function
Diffstat (limited to 'libutf.c')
| -rw-r--r-- | libutf.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -1,5 +1,12 @@ /* libutf8 © 2012-2015 Connor Lane Smith <cls@lubutu.com> */ #include "libutf.h" +#include "util.h" + +const char *utfnext(const char *s) { + while (!ISUTF8(*s)) + s++; + return s; +} int runelen(Rune r) |
