1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-30 13:52:06 +00:00

AK: Try to use StringViews more for substrings and splitting.

This commit is contained in:
Andreas Kling 2019-04-16 02:39:16 +02:00
parent a082738f04
commit 33920df299
9 changed files with 133 additions and 13 deletions

View file

@ -577,8 +577,7 @@ KResultOr<InodeIdentifier> VFS::resolve_path(StringView path, InodeIdentifier ba
if (path.is_empty())
return KResult(-EINVAL);
// FIXME: Use StringView::split() once it exists.
auto parts = String(path).split('/');
auto parts = path.split_view('/');
InodeIdentifier crumb_id;
if (path[0] == '/')