aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/mgl/system/utf8.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mgl/system/utf8.h b/include/mgl/system/utf8.h
index 794884d..f6fe150 100644
--- a/include/mgl/system/utf8.h
+++ b/include/mgl/system/utf8.h
@@ -16,6 +16,8 @@ bool mgl_utf8_decode(const unsigned char *str, size_t size, uint32_t *decoded_co
Returns 0 if start of codepoint is not found.
*/
size_t mgl_utf8_get_start_of_codepoint(const unsigned char *str, size_t size, size_t offset);
+/* Returns |size| if not found */
+size_t mgl_utf8_index_to_offset(const unsigned char *str, size_t size, size_t index);
#endif /* MGL_UTF8_H */