diff options
author | Timothy Flynn <trflynn89@pm.me> | 2023-01-16 11:28:27 -0500 |
---|---|---|
committer | Tim Flynn <trflynn89@pm.me> | 2023-01-16 18:33:44 -0500 |
commit | d6ddca0c0f1f6d3a86672a5bb04d2fb56377beff (patch) | |
tree | 8ad3dec13dbabbec70766905475c556d63113bd2 /AK | |
parent | bc51017a03087057dc8e8f437b4049f2ab7ebba1 (diff) | |
download | serenity-d6ddca0c0f1f6d3a86672a5bb04d2fb56377beff.zip |
AK+LibUnicode: Provide Unicode-aware String titlecase transformation
Diffstat (limited to 'AK')
-rw-r--r-- | AK/String.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/AK/String.h b/AK/String.h index 9fdb05b68d..1a19b6f429 100644 --- a/AK/String.h +++ b/AK/String.h @@ -45,10 +45,10 @@ public: // Creates a new String from a sequence of UTF-8 encoded code points. static ErrorOr<String> from_utf8(StringView); - // Creates a new String by transforming this String to lower- or uppercase. Using these methods - // require linking LibUnicode into your application. + // Creates a new String by case-transforming this String. Using these methods require linking LibUnicode into your application. ErrorOr<String> to_lowercase(Optional<StringView> const& locale = {}) const; ErrorOr<String> to_uppercase(Optional<StringView> const& locale = {}) const; + ErrorOr<String> to_titlecase(Optional<StringView> const& locale = {}) const; // Creates a substring with a deep copy of the specified data window. ErrorOr<String> substring_from_byte_offset(size_t start, size_t byte_count) const; |