mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +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
|
@ -69,6 +69,7 @@ bool equals_ignoring_case(const StringView&, const StringView&);
|
|||
bool ends_with(const StringView& a, const StringView& b, CaseSensitivity);
|
||||
bool starts_with(const StringView&, const StringView&, CaseSensitivity);
|
||||
bool contains(const StringView&, const StringView&, CaseSensitivity);
|
||||
bool is_whitespace(const StringView&);
|
||||
StringView trim_whitespace(const StringView&, TrimMode mode);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue