aboutsummaryrefslogtreecommitdiffstats
path: root/src/fs/Traits.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/Traits.hxx')
-rw-r--r--src/fs/Traits.hxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/fs/Traits.hxx b/src/fs/Traits.hxx
index c72f9814a..4eb0f24b9 100644
--- a/src/fs/Traits.hxx
+++ b/src/fs/Traits.hxx
@@ -87,6 +87,16 @@ struct PathTraits {
}
/**
+ * Constructs the path from the given components.
+ * If either of the components is empty string,
+ * remaining component is returned unchanged.
+ * If both components are empty strings, empty string is returned.
+ */
+ gcc_pure gcc_nonnull_all
+ static string BuildFS(const_pointer a, size_t a_size,
+ const_pointer b, size_t b_size);
+
+ /**
* Determine the "base" file name of the given UTF-8 path.
* The return value points inside the given string.
*/