diff options
author | Denis Krjuchkov <denis@crazydev.net> | 2013-12-03 13:46:05 +0600 |
---|---|---|
committer | Denis Krjuchkov <denis@crazydev.net> | 2013-12-03 13:46:05 +0600 |
commit | 96413b16046f2edbb53ab7abcca73809f6cb3a54 (patch) | |
tree | 46c57b005ab97c28f1bb3a54cad8c7df11421797 /src/fs/Traits.hxx | |
parent | 2278fe42e55bbc713ccd2a45736a9eb9369afd36 (diff) | |
download | mpd-96413b16046f2edbb53ab7abcca73809f6cb3a54.tar.gz mpd-96413b16046f2edbb53ab7abcca73809f6cb3a54.tar.xz mpd-96413b16046f2edbb53ab7abcca73809f6cb3a54.zip |
fs/Traits.hxx: implement BuildFS() method
Diffstat (limited to 'src/fs/Traits.hxx')
-rw-r--r-- | src/fs/Traits.hxx | 10 |
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. */ |