mirror of
https://github.com/RGBCube/serenity
synced 2025-07-08 20:27:35 +00:00
AK: Add String{,View}::is_whitespace()
+Tests!
This commit is contained in:
parent
b795f582cf
commit
f3ecea1fb3
5 changed files with 28 additions and 11 deletions
|
@ -180,6 +180,8 @@ public:
|
|||
|
||||
String to_string() const;
|
||||
|
||||
bool is_whitespace() const { return StringUtils::is_whitespace(*this); }
|
||||
|
||||
template<typename T, typename... Rest>
|
||||
bool is_one_of(const T& string, Rest... rest) const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue