From 5498793a56b19da99b7b6856c953933e50b8d572 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 15 May 2024 00:43:54 +0200 Subject: Add ucsnorm_nfkd() --- include/unicode/string.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/unicode') diff --git a/include/unicode/string.h b/include/unicode/string.h index a5b1cdb..06edb6c 100644 --- a/include/unicode/string.h +++ b/include/unicode/string.h @@ -34,8 +34,8 @@ size_t u8wnext_human(struct u8view *, struct u8view *); alloc_fn, void *); [[nodiscard]] char8_t *u8upper(size_t *, struct u8view, enum caseflags, alloc_fn, void *); -[[nodiscard]] char8_t *u8norm_nfc(size_t *, struct u8view, alloc_fn, void *); [[nodiscard]] char8_t *u8norm_nfd(size_t *, struct u8view, alloc_fn, void *); +[[nodiscard]] char8_t *u8norm_nfkd(size_t *, struct u8view, alloc_fn, void *); /* Encoding-generic macros */ #define ucsgcnt(sv) _Generic((sv), struct u8view: u8gcnt)((sv)) @@ -57,10 +57,10 @@ size_t u8wnext_human(struct u8view *, struct u8view *); #define ucsupper(dstn, sv, flags, alloc, ctx) \ _Generic((sv), struct u8view: u8upper)((dstn), (sv), (flags), (alloc), \ (ctx)) -#define ucsnorm_nfc(dstn, sv, alloc, ctx) \ - _Generic((sv), struct u8view: u8norm_nfc)((dstn), (sv), (alloc), (ctx)) #define ucsnorm_nfd(dstn, sv, alloc, ctx) \ _Generic((sv), struct u8view: u8norm_nfd)((dstn), (sv), (alloc), (ctx)) +#define ucsnorm_nfkd(dstn, sv, alloc, ctx) \ + _Generic((sv), struct u8view: u8norm_nfkd)((dstn), (sv), (alloc), (ctx)) constexpr double U8CASEFOLD_SCALE = 3; constexpr double U8LOWER_SCALE = 1.5; -- cgit v1.2.3