mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
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:
parent
b562348d31
commit
bc51017a03
Notes:
sideshowbarker
2024-07-17 01:36:20 +09:00
Author: https://github.com/trflynn89
Commit: bc51017a03
Pull-request: https://github.com/SerenityOS/serenity/pull/17048
Reviewed-by: https://github.com/linusg ✅
5 changed files with 165 additions and 0 deletions
|
@ -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);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue