mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:47:45 +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
|
@ -121,6 +121,7 @@ public:
|
|||
[[nodiscard]] String to_uppercase() const;
|
||||
[[nodiscard]] String to_snakecase() const;
|
||||
[[nodiscard]] String to_titlecase() const;
|
||||
[[nodiscard]] String invert_case() const;
|
||||
|
||||
[[nodiscard]] bool is_whitespace() const { return StringUtils::is_whitespace(*this); }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue