mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-11 20:16:02 +00:00
AK: Add StringView::find_last_not
This commit is contained in:
parent
48aea321c5
commit
9718667bcf
Notes:
sideshowbarker
2024-07-17 08:37:36 +09:00
Author: https://github.com/cqundefine
Commit: 9718667bcf
Pull-request: https://github.com/SerenityOS/serenity/pull/15278
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/Quaker762
Reviewed-by: https://github.com/bgianfo
Reviewed-by: https://github.com/timschumi
3 changed files with 11 additions and 0 deletions
|
@ -74,6 +74,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_not(StringView haystack, char needle);
|
||||
Vector<size_t> find_all(StringView haystack, StringView needle);
|
||||
enum class SearchDirection {
|
||||
Forward,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue