aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-04-14 22:51:02 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-04-14 22:51:02 +0200
commit5984a3211cc8a214305b9acbff07b3f3b78cac09 (patch)
tree37bde1be87679f7210ec5c8d978463e86cc1593c
parent22d849368f0e07ce5d2148a9ad760a16f2b64531 (diff)
Change UF_* for CF_*
-rw-r--r--include/unicode/string.h8
-rw-r--r--lib/unicode/string/u8upper.c6
2 files changed, 7 insertions, 7 deletions
diff --git a/include/unicode/string.h b/include/unicode/string.h
index 0341af9..6197235 100644
--- a/include/unicode/string.h
+++ b/include/unicode/string.h
@@ -7,10 +7,10 @@
#include "__u8view.h"
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 ‘ß’ */
+ CF_LANG_AZ = 1 << 0, /* Azeri; alias for UF_LANG_TR */
+ CF_LANG_TR = 1 << 0, /* Turkish; alias for UF_LANG_AZ */
+ CF_LANG_LT = 1 << 1, /* Lithuanian */
+ CF_ẞ = 1 << 2, /* Use ‘ẞ’ as the uppercase of ‘ß’ */
};
size_t u8glen(const char8_t *, size_t);
diff --git a/lib/unicode/string/u8upper.c b/lib/unicode/string/u8upper.c
index d860d3a..5ce0e77 100644
--- a/lib/unicode/string/u8upper.c
+++ b/lib/unicode/string/u8upper.c
@@ -7,8 +7,8 @@ u8upper(char8_t *restrict dst, size_t dstn, const char8_t *src, size_t srcn,
enum caseflags flags)
{
struct ucctx ctx = {
- .az_or_tr = flags & UF_LANG_AZ,
- .cap_eszett = flags & UF_ẞ,
+ .az_or_tr = flags & CF_LANG_AZ,
+ .cap_eszett = flags & CF_ẞ,
};
rune ch;
@@ -16,7 +16,7 @@ u8upper(char8_t *restrict dst, size_t dstn, const char8_t *src, size_t srcn,
bool prev_was_i = false;
while (u8next(&ch, &src, &srcn)) {
- if (ch == 0x307 && prev_was_i && (flags & UF_LANG_LT))
+ if (ch == 0x307 && prev_was_i && (flags & CF_LANG_LT))
ctx.lt_after_i = true;
struct rview rv = uprop_get_uc(ch, ctx);