mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-24 10:12:25 -05:00
79fa9765ca
We now use AK::Error and AK::ErrorOr<T> in both kernel and userspace! This was a slightly tedious refactoring that took a long time, so it's not unlikely that some bugs crept in. Nevertheless, it does pass basic functionality testing, and it's just real nice to finally see the same pattern in all contexts. :^)
22 lines
501 B
C++
22 lines
501 B
C++
/*
|
|
* Copyright (c) 2021, Max Wipfli <max.wipfli@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/StringView.h>
|
|
#include <Kernel/KString.h>
|
|
|
|
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&);
|
|
|
|
ErrorOr<NonnullOwnPtr<KString>> try_join(StringView const&, StringView const&);
|
|
|
|
}
|