2021-07-06 09:16:17 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2021, Max Wipfli <max.wipfli@serenityos.org>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <AK/StringView.h>
|
2021-07-06 10:05:50 +00:00
|
|
|
#include <Kernel/KString.h>
|
2021-07-06 09:16:17 +00:00
|
|
|
|
|
|
|
namespace Kernel::KLexicalPath {
|
|
|
|
|
2021-11-10 23:55:02 +00:00
|
|
|
bool is_absolute(StringView);
|
|
|
|
bool is_canonical(StringView);
|
|
|
|
StringView basename(StringView);
|
|
|
|
StringView dirname(StringView);
|
|
|
|
Vector<StringView> parts(StringView);
|
2021-07-06 09:16:17 +00:00
|
|
|
|
2021-11-10 23:55:02 +00:00
|
|
|
ErrorOr<NonnullOwnPtr<KString>> try_join(StringView, StringView);
|
2021-07-06 10:05:50 +00:00
|
|
|
|
2021-07-06 09:16:17 +00:00
|
|
|
}
|