1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 15:57:35 +00:00

AK: Add DeprecatedString::find_last(StringView)

This adds the the method DeprecatedString::find_last() as wrapper for
StringUtils::find_last for the StringView type.
This commit is contained in:
Agustin Gianni 2022-12-15 21:20:14 +00:00 committed by Andreas Kling
parent 03107d4028
commit 9a2ee5a9dd
4 changed files with 14 additions and 2 deletions

View file

@ -90,6 +90,7 @@ StringView trim_whitespace(StringView string, TrimMode mode);
Optional<size_t> find(StringView haystack, char needle, size_t start = 0);
Optional<size_t> find(StringView haystack, StringView needle, size_t start = 0);
Optional<size_t> find_last(StringView haystack, char needle);
Optional<size_t> find_last(StringView haystack, StringView needle);
Optional<size_t> find_last_not(StringView haystack, char needle);
Vector<size_t> find_all(StringView haystack, StringView needle);
enum class SearchDirection {