1
Fork 0
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:
huttongrabiel 2022-05-18 22:23:45 -07:00 committed by Linus Groh
parent b1709c368f
commit 8ffa860bc3
4 changed files with 21 additions and 0 deletions

View file

@ -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);