summaryrefslogtreecommitdiff
path: root/src/unicode.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/unicode.c')
-rw-r--r--src/unicode.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/unicode.c b/src/unicode.c
index 3833fb6..7ddc0d5 100644
--- a/src/unicode.c
+++ b/src/unicode.c
@@ -1,3 +1,4 @@
+#include <stdbool.h>
#include <string.h>
#include "unicode.h"
@@ -115,3 +116,8 @@ char *utf8_compose(const char *s)
{
return g_utf8_normalize(s, -1, G_NORMALIZE_DEFAULT_COMPOSE);
}
+
+bool utf8_validate(const char *s)
+{
+ return g_utf8_validate(s, -1, NULL);
+}