summaryrefslogtreecommitdiff
path: root/src/utf8.h
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2022-10-23 13:24:48 +0100
committerPhil Jones <philj56@gmail.com>2022-10-23 13:24:59 +0100
commit3bbd8ff839354a6f488c8481d5e6336a3f637cee (patch)
treef793acfea9c8115d30bd00d1a7dde5fc9fc079d7 /src/utf8.h
parentdd3a4a84d6676b51025e8feeb7af662a07b1e73c (diff)
Replace wchar and friends with Unicode handling.
All text handling should now be explicitly UTF-8 or UTF-32, removing the ambiguity around wchar_t and related functions.
Diffstat (limited to 'src/utf8.h')
-rw-r--r--src/utf8.h23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/utf8.h b/src/utf8.h
deleted file mode 100644
index fb0fc5f..0000000
--- a/src/utf8.h
+++ /dev/null
@@ -1,23 +0,0 @@
-#ifndef UTF8_H
-#define UTF8_H
-
-#include <glib.h>
-#include <stdint.h>
-
-uint32_t utf8_isprint(uint32_t c);
-uint32_t utf8_isupper(uint32_t c);
-uint32_t utf8_islower(uint32_t c);
-uint32_t utf8_isalnum(uint32_t c);
-uint32_t utf8_toupper(uint32_t c);
-uint32_t utf8_tolower(uint32_t c);
-
-uint32_t utf8_get_char(const char *s);
-char *utf8_next_char(const char *s);
-char *utf8_prev_char(const char *s);
-char *utf8_strchr(const char *s, uint32_t c);
-char *utf8_strcasechr(const char *s, uint32_t c);
-size_t utf8_strlen(const char *s);
-char *utf8_strcasestr(const char * restrict haystack, const char * restrict needle);
-char *utf8_normalize(const char *s);
-
-#endif /* UTF8_H */