mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:37:46 +00:00
AK: Add invert_case() and invert_case(StringView)
In the given String, invert_case() swaps lowercase characters with uppercase ones and vice versa.
This commit is contained in:
parent
b1709c368f
commit
8ffa860bc3
4 changed files with 21 additions and 0 deletions
|
@ -78,6 +78,7 @@ Optional<size_t> find_any_of(StringView haystack, StringView needles, SearchDire
|
|||
|
||||
String to_snakecase(StringView);
|
||||
String to_titlecase(StringView);
|
||||
String invert_case(StringView);
|
||||
|
||||
String replace(StringView, StringView needle, StringView replacement, bool all_occurrences = false);
|
||||
size_t count(StringView, StringView needle);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue