mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
AK: Add FlyString::equals_ignoring_case(StringView)
And share the code with String by moving the logic to StringUtils. :^)
This commit is contained in:
@@ -88,4 +88,9 @@ int FlyString::to_int(bool& ok) const
|
||||
return StringUtils::convert_to_int(view(), ok);
|
||||
}
|
||||
|
||||
bool FlyString::equals_ignoring_case(const StringView& other) const
|
||||
{
|
||||
return StringUtils::equals_ignoring_case(view(), other);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user