aboutsummaryrefslogtreecommitdiff
path: root/include/mgl/system/utf8.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/mgl/system/utf8.h')
-rw-r--r--include/mgl/system/utf8.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/mgl/system/utf8.h b/include/mgl/system/utf8.h
index f745be7..7120f1a 100644
--- a/include/mgl/system/utf8.h
+++ b/include/mgl/system/utf8.h
@@ -5,6 +5,9 @@
#include <stdint.h>
#include <stdbool.h>
+/*
+ Returns false on failure. |decoded_codepoint| is set to |str[0]| if size > 0 and |codepoint_length| is set to 1
+*/
bool mgl_utf8_decode(const unsigned char *str, size_t size, uint32_t *decoded_codepoint, size_t *codepoint_length);
#endif /* MGL_UTF8_H */