mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 23:25:20 +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:
committed by
Andreas Kling
parent
332f96e7ca
commit
129462cca7
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user