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:
Brian Gianforcaro 2020-05-26 03:21:34 -07:00 committed by Andreas Kling
commit 129462cca7
Notes: sideshowbarker 2024-07-19 06:07:37 +09:00
4 changed files with 9 additions and 9 deletions

View file

@ -73,7 +73,7 @@ public:
unsigned hash() const;
bool starts_with(const StringView&) const;
bool ends_with(const StringView&) const;
bool ends_with(const StringView&, CaseSensitivity = CaseSensitivity::CaseSensitive) const;
bool starts_with(char) const;
bool ends_with(char) const;
bool matches(const StringView& mask, CaseSensitivity = CaseSensitivity::CaseInsensitive) const;