aboutsummaryrefslogtreecommitdiff
path: root/src/system/Utf8.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/system/Utf8.cpp')
-rw-r--r--src/system/Utf8.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/system/Utf8.cpp b/src/system/Utf8.cpp
new file mode 100644
index 0000000..be9b2af
--- /dev/null
+++ b/src/system/Utf8.cpp
@@ -0,0 +1,11 @@
+#include "../../include/mglpp/system/Utf8.hpp"
+
+extern "C" {
+#include <mgl/system/utf8.h>
+}
+
+namespace mgl {
+ bool utf8_decode(const unsigned char *str, size_t size, uint32_t *decoded_codepoint, size_t *codepoint_length) {
+ return mgl_utf8_decode(str, size, decoded_codepoint, codepoint_length);
+ }
+} \ No newline at end of file