mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 11:27:34 +00:00
AK: Add LexicalPath::is_child_of
This API checks whether this path is a child of (or the same as) another path.
This commit is contained in:
parent
4625f7aab5
commit
16ca41ec10
3 changed files with 58 additions and 0 deletions
|
@ -33,6 +33,7 @@ public:
|
|||
[[nodiscard]] Vector<DeprecatedString> parts() const;
|
||||
|
||||
bool has_extension(StringView) const;
|
||||
bool is_child_of(LexicalPath const& possible_parent) const;
|
||||
|
||||
[[nodiscard]] LexicalPath append(StringView) const;
|
||||
[[nodiscard]] LexicalPath prepend(StringView) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue