mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:47: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:
parent
03107d4028
commit
9a2ee5a9dd
4 changed files with 14 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue