aboutsummaryrefslogtreecommitdiff
path: root/include/mglpp/system/Utf8.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mglpp/system/Utf8.hpp')
-rw-r--r--include/mglpp/system/Utf8.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/mglpp/system/Utf8.hpp b/include/mglpp/system/Utf8.hpp
new file mode 100644
index 0000000..4f6a39a
--- /dev/null
+++ b/include/mglpp/system/Utf8.hpp
@@ -0,0 +1,11 @@
+#ifndef MGLPP_UTF8_HPP
+#define MGLPP_UTF8_HPP
+
+#include <stddef.h>
+#include <stdint.h>
+
+namespace mgl {
+ bool utf8_decode(const unsigned char *str, size_t size, uint32_t *decoded_codepoint, size_t *codepoint_length);
+}
+
+#endif /* MGLPP_UTF8_HPP */