mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 04:44:59 +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:
parent
0efa47b7ef
commit
26bc3d4ea0
6 changed files with 31 additions and 16 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue