diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-05-14 20:53:13 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-05-14 20:53:22 +0200 |
commit | a39a4797730a09ec4fbb41c11b7dc1f7d245bc15 (patch) | |
tree | 13f2a025d52535d66cc8e1c4be0aa502ffaeab7b /include | |
parent | 4e88af1babd6555c389b1e14316c29b78146f8f0 (diff) |
Implement NFD string normalization
Diffstat (limited to 'include')
-rw-r--r-- | include/unicode/string.h | 2 |
1 files changed, 2 insertions, 0 deletions
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; |