mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:57:46 +00:00
AK+LibUnicode: Provide Unicode-aware String titlecase transformation
This commit is contained in:
parent
bc51017a03
commit
d6ddca0c0f
3 changed files with 33 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue