summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibUnicode/UnicodeUtils.h
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2023-01-16 11:22:01 -0500
committerTim Flynn <trflynn89@pm.me>2023-01-16 18:33:44 -0500
commitbc51017a03087057dc8e8f437b4049f2ab7ebba1 (patch)
tree043d1b7c361016bdd7fb86d1669252312fef261b /Userland/Libraries/LibUnicode/UnicodeUtils.h
parentb562348d316cbd3a646f33490809c356c591265d (diff)
downloadserenity-bc51017a03087057dc8e8f437b4049f2ab7ebba1.zip
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.
Diffstat (limited to 'Userland/Libraries/LibUnicode/UnicodeUtils.h')
-rw-r--r--Userland/Libraries/LibUnicode/UnicodeUtils.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibUnicode/UnicodeUtils.h b/Userland/Libraries/LibUnicode/UnicodeUtils.h
index 1770c385a7..5e9bcbf2a7 100644
--- a/Userland/Libraries/LibUnicode/UnicodeUtils.h
+++ b/Userland/Libraries/LibUnicode/UnicodeUtils.h
@@ -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);
}