28 #include <t3window/window_api.h>
32 #define T3_UTF8_CONTROL_MASK (UC_CATEGORY_MASK_Cs | UC_CATEGORY_MASK_Cf | UC_CATEGORY_MASK_Co | \
33 UC_CATEGORY_MASK_Cc | UC_CATEGORY_MASK_Zl | UC_CATEGORY_MASK_Zp)
35 T3_WINDOW_API uint32_t
t3_utf8_get(
const char *src,
size_t *size);
36 T3_WINDOW_API
size_t t3_utf8_put(uint32_t c,
char *dst);
size_t t3_utf8_put(uint32_t c, char *dst)
Convert a codepoint to a UTF-8 string.
Definition: utf8.c:126
int t3_utf8_wcwidth(uint32_t c)
Get the width of a Unicode codepoint.
Definition: utf8.c:160
uint32_t t3_utf8_get(const char *src, size_t *size)
Get the first codepoint represented by a UTF-8 string.
Definition: utf8.c:25