fs/Traits: add function Relative()

Move code from Path::RelativeFS() and make it generic.
This commit is contained in:
Max Kellermann
2014-02-07 18:58:37 +01:00
parent 6b421cc354
commit d744c997d8
4 changed files with 61 additions and 23 deletions

View File

@@ -135,7 +135,9 @@ public:
* nullptr on mismatch.
*/
gcc_pure
const char *RelativeFS(const char *other_fs) const;
const char *RelativeFS(const char *other_fs) const {
return PathTraitsFS::Relative(value, other_fs);
}
gcc_pure
bool IsAbsolute() {