summaryrefslogtreecommitdiffstats
path: root/raul/Path.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'raul/Path.hpp')
-rw-r--r--raul/Path.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/raul/Path.hpp b/raul/Path.hpp
index 91122c6..a00740a 100644
--- a/raul/Path.hpp
+++ b/raul/Path.hpp
@@ -134,6 +134,9 @@ public:
Path operator+(const Path& p) const { return child(p); }
+ /** Return the lowest common ancestor of a and b. */
+ static Path lca(const Path& a, const Path& b);
+
/** Return the symbol of this path (everything after the last '/').
* This is e.g. the "method name" for OSC paths, the filename
* for filesystem paths, etc.