diff options
author | Phil Jones <philj56@gmail.com> | 2022-12-20 23:53:20 +0000 |
---|---|---|
committer | Phil Jones <philj56@gmail.com> | 2022-12-21 00:15:16 +0000 |
commit | 6c47cf7892d0f212b04e7b798e53c120f51022d7 (patch) | |
tree | c44b910e059d5bdcf991b2239de8d29cb007bed6 /src/unicode.h | |
parent | 108550fcf8d3ed8664c0e05defceaf20b4d2b49e (diff) |
Add text cursor support.
This turned out to be much more complex than anticipated, and the
potential for bugs is therefore quite high.
Diffstat (limited to 'src/unicode.h')
-rw-r--r-- | src/unicode.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/unicode.h b/src/unicode.h index d32303d..5456db0 100644 --- a/src/unicode.h +++ b/src/unicode.h @@ -8,6 +8,7 @@ uint8_t utf32_to_utf8(uint32_t c, char *buf); uint32_t utf8_to_utf32(const char *s); uint32_t utf8_to_utf32_validate(const char *s); +uint32_t *utf8_string_to_utf32_string(const char *s); uint32_t utf32_isprint(uint32_t c); uint32_t utf32_isspace(uint32_t c); @@ -16,6 +17,7 @@ uint32_t utf32_islower(uint32_t c); uint32_t utf32_isalnum(uint32_t c); uint32_t utf32_toupper(uint32_t c); uint32_t utf32_tolower(uint32_t c); +size_t utf32_strlen(const uint32_t *s); char *utf8_next_char(const char *s); char *utf8_prev_char(const char *s); |