mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
AK: Add case insensitive version of starts_with
This commit is contained in:
parent
ccc929dcf9
commit
a5ecb9bd6b
Notes:
sideshowbarker
2024-07-19 04:42:15 +09:00
Author: https://github.com/Lubrsi
Commit: a5ecb9bd6b
Pull-request: https://github.com/SerenityOS/serenity/pull/2842
11 changed files with 53 additions and 20 deletions
|
@ -99,6 +99,11 @@ bool FlyString::equals_ignoring_case(const StringView& other) const
|
|||
return StringUtils::equals_ignoring_case(view(), other);
|
||||
}
|
||||
|
||||
bool FlyString::starts_with(const StringView& str, CaseSensitivity case_sensitivity) const
|
||||
{
|
||||
return StringUtils::starts_with(view(), str, case_sensitivity);
|
||||
}
|
||||
|
||||
bool FlyString::ends_with(const StringView& str, CaseSensitivity case_sensitivity) const
|
||||
{
|
||||
return StringUtils::ends_with(view(), str, case_sensitivity);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue