mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-10 19:46:03 +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
Notes:
sideshowbarker
2024-07-17 03:27:13 +09:00
Author: https://github.com/kleinesfilmroellchen
Commit: 16ca41ec10
Pull-request: https://github.com/SerenityOS/serenity/pull/14393
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/sin-ack
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