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

AK: Add static bool LexicalPath::is_absolute_path(StringView path);

This commit is contained in:
stasoid 2024-11-15 16:20:53 +05:00 committed by Andrew Kaster
parent a828a0e158
commit 69f5f40617
Notes: github-actions[bot] 2024-11-19 22:18:28 +00:00
3 changed files with 7 additions and 11 deletions

View file

@ -26,7 +26,8 @@ public:
explicit LexicalPath(ByteString);
bool is_absolute() const;
static bool is_absolute_path(StringView path);
bool is_absolute() const { return is_absolute_path(m_string); }
ByteString const& string() const { return m_string; }
StringView dirname() const { return m_dirname; }