diff options
Diffstat (limited to 'include/mgl/system/utf8.h')
-rw-r--r-- | include/mgl/system/utf8.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/include/mgl/system/utf8.h b/include/mgl/system/utf8.h index 663e7e3..f745be7 100644 --- a/include/mgl/system/utf8.h +++ b/include/mgl/system/utf8.h @@ -5,13 +5,7 @@ #include <stdint.h> #include <stdbool.h> -bool mgl_utf8_is_valid(const unsigned char *str, size_t size); - -/* - Returns the byte length of the decoded codepoint. - Note: does not validate if the input |str| is a valid utf8 string. -*/ -size_t mgl_utf8_decode(const unsigned char *str, uint32_t *decoded_codepoint); +bool mgl_utf8_decode(const unsigned char *str, size_t size, uint32_t *decoded_codepoint, size_t *codepoint_length); #endif /* MGL_UTF8_H */ |