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:
kleines Filmröllchen 2022-06-24 00:40:21 +02:00 committed by Linus Groh
commit 16ca41ec10
Notes: sideshowbarker 2024-07-17 03:27:13 +09:00
3 changed files with 58 additions and 0 deletions

View file

@ -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;