From a39a4797730a09ec4fbb41c11b7dc1f7d245bc15 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Tue, 14 May 2024 20:53:13 +0200 Subject: Implement NFD string normalization --- include/unicode/string.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/unicode') diff --git a/include/unicode/string.h b/include/unicode/string.h index e3d93ad..0c7ef79 100644 --- a/include/unicode/string.h +++ b/include/unicode/string.h @@ -37,6 +37,8 @@ size_t u8wnext_human(struct u8view *, struct u8view *); [[nodiscard]] char8_t *u8upper(size_t *, struct u8view, enum caseflags, alloc_fn, void *); +[[nodiscard]] char8_t *u8norm_nfd(size_t *, struct u8view, alloc_fn, void *); + constexpr double U8CASEFOLD_SCALE = 3; constexpr double U8LOWER_SCALE = 1.5; constexpr double U8LOWER_SCALE_LT = 3; -- cgit v1.2.3