mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-13 11:39:43 +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
Notes:
sideshowbarker
2024-07-19 06:07:37 +09:00
Author: https://github.com/bgianfo
Commit: 129462cca7
Pull-request: https://github.com/SerenityOS/serenity/pull/2387
Reviewed-by: https://github.com/awesomekling
4 changed files with 9 additions and 9 deletions
|
@ -85,6 +85,7 @@ public:
|
|||
int to_int(bool& ok) const;
|
||||
|
||||
bool equals_ignoring_case(const StringView&) const;
|
||||
bool ends_with(const StringView&, CaseSensitivity = CaseSensitivity::CaseSensitive) const;
|
||||
|
||||
static void did_destroy_impl(Badge<StringImpl>, StringImpl&);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue