mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 06:09:08 +00:00
AK: Add String{,View}::is_whitespace()
+Tests!
This commit is contained in:
parent
b795f582cf
commit
f3ecea1fb3
Notes:
sideshowbarker
2024-07-19 00:11:12 +09:00
Author: https://github.com/alimpfard
Commit: f3ecea1fb3
Pull-request: https://github.com/SerenityOS/serenity/pull/4759
Reviewed-by: https://github.com/ADKaster
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