mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:17:34 +00:00
AK: Try to use StringViews more for substrings and splitting.
This commit is contained in:
parent
a082738f04
commit
33920df299
9 changed files with 133 additions and 13 deletions
|
@ -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] == '/')
|
||||
|
|
|
@ -68,6 +68,7 @@ AK_OBJS = \
|
|||
../AK/String.o \
|
||||
../AK/StringImpl.o \
|
||||
../AK/StringBuilder.o \
|
||||
../AK/StringView.o \
|
||||
../AK/FileSystemPath.o \
|
||||
../AK/StdLibExtras.o
|
||||
|
||||
|
|
|
@ -25,14 +25,14 @@
|
|||
#include <Kernel/Net/E1000NetworkAdapter.h>
|
||||
#include <Kernel/Net/NetworkTask.h>
|
||||
|
||||
//#define SPAWN_TERMINAL
|
||||
#define SPAWN_TERMINAL
|
||||
//#define SPAWN_LAUNCHER
|
||||
//#define SPAWN_GUITEST2
|
||||
//#define SPAWN_FILE_MANAGER
|
||||
//#define SPAWN_PROCESS_MANAGER
|
||||
//#define SPAWN_TEXT_EDITOR
|
||||
//#define SPAWN_FONTEDITOR
|
||||
#define SPAWN_VISUAL_BUILDER
|
||||
//#define SPAWN_VISUAL_BUILDER
|
||||
//#define SPAWN_MULTIPLE_SHELLS
|
||||
//#define STRESS_TEST_SPAWNING
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue