diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-04-14 21:14:12 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-04-14 21:14:12 +0200 |
commit | c5aadf2882db86cda2def39c747642b9b88022b3 (patch) | |
tree | 24893678d16bed7972557ae85fd3916b4025bbf1 /include/unicode | |
parent | e6ddd22060e49ddd8382069ef03fcc3d2618af13 (diff) |
upper_flags to caseflags, and mark dst as restrict
Diffstat (limited to 'include/unicode')
-rw-r--r-- | include/unicode/string.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/include/unicode/string.h b/include/unicode/string.h index 10e16ae..0341af9 100644 --- a/include/unicode/string.h +++ b/include/unicode/string.h @@ -6,16 +6,17 @@ #include "__charN_t.h" #include "__u8view.h" -enum [[clang::__flag_enum__]] upper_flags { - UF_LANG_AZ = 1 << 0, - UF_LANG_TR = 1 << 0, - UF_LANG_LT = 1 << 1, - UF_ẞ = 1 << 2, +enum [[clang::__flag_enum__]] caseflags { + UF_LANG_AZ = 1 << 0, /* Azeri; alias for UF_LANG_TR */ + UF_LANG_TR = 1 << 0, /* Turkish; alias for UF_LANG_AZ */ + UF_LANG_LT = 1 << 1, /* Lithuanian */ + UF_ẞ = 1 << 2, /* Use ‘ẞ’ as the uppercase of ‘ß’ */ }; size_t u8glen(const char8_t *, size_t); size_t u8gnext(struct u8view *, const char8_t **, size_t *); -size_t u8upper(char8_t *, size_t, const char8_t *, size_t, enum upper_flags); +size_t u8upper(char8_t *restrict, size_t, const char8_t *, size_t, + enum caseflags); #endif /* !MLIB_UNICODE_STRING_H */ |