mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:07:45 +00:00
AK: Make LexicalPath take String instead of StringView
This commit is contained in:
parent
e873d27ab1
commit
f7139d9422
2 changed files with 8 additions and 8 deletions
|
@ -34,7 +34,7 @@ namespace AK {
|
|||
class LexicalPath {
|
||||
public:
|
||||
LexicalPath() = default;
|
||||
explicit LexicalPath(const StringView&);
|
||||
explicit LexicalPath(String);
|
||||
|
||||
bool is_valid() const { return m_is_valid; }
|
||||
bool is_absolute() const { return m_is_absolute; }
|
||||
|
@ -49,8 +49,8 @@ public:
|
|||
|
||||
bool has_extension(const StringView&) const;
|
||||
|
||||
static String canonicalized_path(const StringView&);
|
||||
static String relative_path(const String absolute_path, const String& prefix);
|
||||
static String canonicalized_path(String);
|
||||
static String relative_path(String absolute_path, String const& prefix);
|
||||
|
||||
private:
|
||||
void canonicalize();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue