aboutsummaryrefslogtreecommitdiff
path: root/include/unicode/string.h
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-05-15 00:43:54 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-05-15 00:45:17 +0200
commit5498793a56b19da99b7b6856c953933e50b8d572 (patch)
tree708166215910ef89e9d4133a805f6e12b3ba4ab3 /include/unicode/string.h
parentd7ba894d2af0e0c5a8d5db9cbadd7ea9a277100b (diff)
Add ucsnorm_nfkd()
Diffstat (limited to 'include/unicode/string.h')
-rw-r--r--include/unicode/string.h6
1 files changed, 3 insertions, 3 deletions
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;