mirror of
https://github.com/RGBCube/serenity
synced 2025-07-10 07:07:36 +00:00
AK: Unify FlyString/StringView::ends_with implementation on StringUtils::ends_with
This creates a unified implementation of ends_with with case sensitivity across String/StringView/FlyString.
This commit is contained in:
parent
332f96e7ca
commit
129462cca7
4 changed files with 9 additions and 9 deletions
|
@ -98,6 +98,11 @@ bool FlyString::equals_ignoring_case(const StringView& other) const
|
|||
return StringUtils::equals_ignoring_case(view(), other);
|
||||
}
|
||||
|
||||
bool FlyString::ends_with(const StringView& str, CaseSensitivity case_sensitivity) const
|
||||
{
|
||||
return StringUtils::ends_with(view(), str, case_sensitivity);
|
||||
}
|
||||
|
||||
FlyString FlyString::to_lowercase() const
|
||||
{
|
||||
return String(*m_impl).to_lowercase();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue