mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-20 19:45:12 +00:00
AK: Add FlyString::is_one_of_ignoring_ascii_case()
This commit is contained in:
parent
b5d20538ef
commit
26ea5335c7
Notes:
github-actions[bot]
2025-02-08 12:31:28 +00:00
Author: https://github.com/tcl3 Commit: https://github.com/LadybirdBrowser/ladybird/commit/26ea5335c78 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3470
1 changed files with 6 additions and 0 deletions
|
@ -80,6 +80,12 @@ public:
|
|||
return (... || this->operator==(forward<Ts>(strings)));
|
||||
}
|
||||
|
||||
template<typename... Ts>
|
||||
[[nodiscard]] ALWAYS_INLINE constexpr bool is_one_of_ignoring_ascii_case(Ts&&... strings) const
|
||||
{
|
||||
return (... || this->equals_ignoring_ascii_case(forward<Ts>(strings)));
|
||||
}
|
||||
|
||||
private:
|
||||
friend class Optional<FlyString>;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue