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:
parent
77d205571d
commit
a423493dd8
Notes:
github-actions[bot]
2024-11-20 05:08:15 +00:00
Author: https://github.com/stasoid
Commit: a423493dd8
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2188
Reviewed-by: https://github.com/ADKaster ✅
3 changed files with 14 additions and 2 deletions
|
@ -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; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue