diff options
Diffstat (limited to 'lib/unicode.c')
-rw-r--r-- | lib/unicode.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/unicode.c b/lib/unicode.c new file mode 100644 index 0000000..b52431f --- /dev/null +++ b/lib/unicode.c @@ -0,0 +1,13 @@ +#include "unicode.h" +#include <glib.h> + +const char * +next_char(const char * c) +{ + return g_utf8_next_char(c); +} +uint32_t +get_codepoint(const char * c) +{ + return g_utf8_get_char(c); +} |