mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 22:37:35 +00:00
AK: Add a method to create a String with a repeated code point
This commit is contained in:
parent
d50724956e
commit
427b82065c
3 changed files with 120 additions and 0 deletions
|
@ -93,6 +93,9 @@ public:
|
|||
return String { short_string };
|
||||
}
|
||||
|
||||
// Creates a new String with a single code point repeated N times.
|
||||
static ErrorOr<String> repeated(u32 code_point, size_t count);
|
||||
|
||||
// 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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue