aboutsummaryrefslogtreecommitdiff
path: root/include/mgl/system
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-11-08 02:07:23 +0100
committerdec05eba <dec05eba@protonmail.com>2021-11-08 02:07:23 +0100
commite3c90b41386986ef53e512994d6e2f7ceadfc177 (patch)
tree6fc1ad55e194a1c7663de3f2c9f178b1f67f2695 /include/mgl/system
parent16b0ce3748f1b3ea788bbaf4caaeb342a8f58d6f (diff)
Add window function to get key state, allow invalid utf8
Diffstat (limited to 'include/mgl/system')
-rw-r--r--include/mgl/system/utf8.h8
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 */