diff options
| -rw-r--r-- | libutf.c | 7 | ||||
| -rw-r--r-- | libutf.h | 2 |
2 files changed, 9 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) @@ -1,6 +1,8 @@ #ifndef LIBUTF_H #define LIBUTF_H +const char *utfnext(const char *s); + /* libutf8 © 2012-2015 Connor Lane Smith <cls@lubutu.com> */ #include <stddef.h> #include <stdint.h> |
