mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-31 13:48:25 +00:00
AK: Implement String::find_any_of() and StringView::find_any_of()
This implements StringUtils::find_any_of() and uses it in
String::find_any_of() and StringView::find_any_of(). All uses of
find_{first,last}_of have been replaced with find_any_of(), find() or
find_last(). find_{first,last}_of have subsequently been removed.
This commit is contained in:
committed by
Andreas Kling
parent
17eddf3ac4
commit
9cc35d1ba3
@@ -637,7 +637,7 @@ Optional<Vector<GUI::AutocompleteProvider::Entry>> CppComprehensionEngine::try_a
|
||||
} else
|
||||
return {};
|
||||
|
||||
auto last_slash = partial_include.find_last_of("/");
|
||||
auto last_slash = partial_include.find_last('/');
|
||||
auto include_dir = String::empty();
|
||||
auto partial_basename = partial_include.substring_view((last_slash.has_value() ? last_slash.value() : 0) + 1);
|
||||
if (last_slash.has_value()) {
|
||||
|
||||
Reference in New Issue
Block a user