1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-09 09:34:57 +09:00

AK: Add LexicalPath::is_root()

This commit is contained in:
stasoid 2024-11-15 19:00:57 +05:00 committed by Andrew Kaster
parent 77d205571d
commit a423493dd8
Notes: github-actions[bot] 2024-11-20 05:08:15 +00:00
3 changed files with 14 additions and 2 deletions

View file

@ -28,6 +28,8 @@ public:
static bool is_absolute_path(StringView path);
bool is_absolute() const { return is_absolute_path(m_string); }
bool is_root() const;
ByteString const& string() const { return m_string; }
StringView dirname() const { return m_dirname; }