aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/util/utf8.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/util/utf8.h b/include/util/utf8.h
new file mode 100644
index 00000000..4d5172c7
--- /dev/null
+++ b/include/util/utf8.h
@@ -0,0 +1,11 @@
+#ifndef UTIL_UTF8_H
+#define UTIL_UTF8_H
+
+#include <stdbool.h>
+
+/**
+ * Return true if and only if the string is a valid UTF-8 sequence.
+ */
+bool is_utf8(const char *string);
+
+#endif