LibUnicode: Support full case folding for titlecasing a string

Unicode declares that to titlecase a string, the first cased code point
after each word boundary should be transformed to its titlecase mapping.
All other codepoints are transformed to their lowercase mapping.
This commit is contained in:
Timothy Flynn 2023-01-16 11:22:01 -05:00 committed by Tim Flynn
commit bc51017a03
Notes: sideshowbarker 2024-07-17 01:36:20 +09:00
5 changed files with 165 additions and 0 deletions

View file

@ -16,5 +16,6 @@ namespace Unicode::Detail {
ErrorOr<void> build_lowercase_string(Utf8View code_points, StringBuilder& builder, Optional<StringView> const& locale);
ErrorOr<void> build_uppercase_string(Utf8View code_points, StringBuilder& builder, Optional<StringView> const& locale);
ErrorOr<void> build_titlecase_string(Utf8View code_points, StringBuilder& builder, Optional<StringView> const& locale);
}