mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:57:35 +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:
parent
17eddf3ac4
commit
9cc35d1ba3
12 changed files with 44 additions and 52 deletions
|
@ -74,7 +74,7 @@ void LibraryMetadata::handle_mmap(FlatPtr base, size_t size, const String& name)
|
|||
else if (!name.contains(":"))
|
||||
return;
|
||||
else
|
||||
path = name.substring(0, name.view().find_first_of(":").value());
|
||||
path = name.substring(0, name.view().find(':').value());
|
||||
|
||||
String full_path;
|
||||
if (name.contains(".so"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue