fs/Traits.hxx: implement BuildFS() method

This commit is contained in:
Denis Krjuchkov
2013-12-03 13:46:05 +06:00
parent 2278fe42e5
commit 96413b1604
2 changed files with 35 additions and 0 deletions

View File

@@ -86,6 +86,16 @@ struct PathTraits {
return strlen(p);
}
/**
* 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.