From 5984a3211cc8a214305b9acbff07b3f3b78cac09 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sun, 14 Apr 2024 22:51:02 +0200 Subject: Change UF_* for CF_* --- lib/unicode/string/u8upper.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/unicode/string') 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); -- cgit v1.2.3