AK: Add String{,View}::is_whitespace()

+Tests!
This commit is contained in:
AnotherTest 2021-01-03 02:56:02 +03:30 committed by Andreas Kling
commit f3ecea1fb3
Notes: sideshowbarker 2024-07-19 00:11:12 +09:00
5 changed files with 28 additions and 11 deletions

View file

@ -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
{