mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:54:58 +00:00
AK: Add FlyString::starts_with_bytes and FlyString::ends_with_bytes
Mirroring the API for String
This commit is contained in:
parent
1d8ec677a3
commit
8c8ea86729
2 changed files with 14 additions and 0 deletions
|
@ -205,4 +205,14 @@ bool FlyString::equals_ignoring_ascii_case(StringView other) const
|
|||
return StringUtils::equals_ignoring_ascii_case(bytes_as_string_view(), other);
|
||||
}
|
||||
|
||||
bool FlyString::starts_with_bytes(StringView bytes, CaseSensitivity case_sensitivity) const
|
||||
{
|
||||
return bytes_as_string_view().starts_with(bytes, case_sensitivity);
|
||||
}
|
||||
|
||||
bool FlyString::ends_with_bytes(StringView bytes, CaseSensitivity case_sensitivity) const
|
||||
{
|
||||
return bytes_as_string_view().ends_with(bytes, case_sensitivity);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue