2021-07-06 11:16:17 +02: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 12:05:50 +02:00
|
|
|
#include <Kernel/KString.h>
|
2021-07-06 11:16:17 +02:00
|
|
|
|
|
|
|
namespace Kernel::KLexicalPath {
|
|
|
|
|
|
|
|
bool is_absolute(StringView const&);
|
|
|
|
bool is_canonical(StringView const&);
|
|
|
|
StringView basename(StringView const&);
|
|
|
|
StringView dirname(StringView const&);
|
|
|
|
Vector<StringView> parts(StringView const&);
|
|
|
|
|
2021-09-06 19:24:54 +02:00
|
|
|
KResultOr<NonnullOwnPtr<KString>> try_join(StringView const&, StringView const&);
|
2021-07-06 12:05:50 +02:00
|
|
|
|
2021-07-06 11:16:17 +02:00
|
|
|
}
|