From 1bee46444b24c75a944251459a9ba57120db4d10 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 15 Apr 2024 18:35:22 +0200 Subject: Implement casefolding --- include/unicode/string.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/unicode/string.h b/include/unicode/string.h index 0c1786c..d80f04c 100644 --- a/include/unicode/string.h +++ b/include/unicode/string.h @@ -6,6 +6,8 @@ #include "__charN_t.h" #include "__u8view.h" +/* clang-format off */ + enum [[clang::__flag_enum__]] caseflags { CF_LANG_AZ = 1 << 0, /* Azeri; alias for UF_LANG_TR */ CF_LANG_TR = 1 << 0, /* Turkish; alias for UF_LANG_AZ */ @@ -13,9 +15,13 @@ enum [[clang::__flag_enum__]] caseflags { CF_ẞ = 1 << 2, /* Use ‘ẞ’ as the uppercase of ‘ß’ */ }; +/* clang-format on */ + size_t u8glen(const char8_t *, size_t); size_t u8gnext(struct u8view *, const char8_t **, size_t *); +size_t u8casefold(char8_t *restrict, size_t, const char8_t *, size_t, + enum caseflags); size_t u8lower(char8_t *restrict, size_t, const char8_t *, size_t, enum caseflags); size_t u8upper(char8_t *restrict, size_t, const char8_t *, size_t, -- cgit v1.2.3