From 6c47cf7892d0f212b04e7b798e53c120f51022d7 Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Tue, 20 Dec 2022 23:53:20 +0000 Subject: Add text cursor support. This turned out to be much more complex than anticipated, and the potential for bugs is therefore quite high. --- src/unicode.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/unicode.h') 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); -- cgit v1.2.3