Commit cdd0ccc6 authored by Max Kellermann's avatar Max Kellermann

fs/Path: rename RelativeFS() to Relative()

parent a9188218
...@@ -98,7 +98,7 @@ map_fs_to_utf8(Path _path_fs) ...@@ -98,7 +98,7 @@ map_fs_to_utf8(Path _path_fs)
if (music_dir_fs.IsNull()) if (music_dir_fs.IsNull())
return std::string(); return std::string();
path_fs = music_dir_fs.RelativeFS(path_fs); path_fs = music_dir_fs.Relative(path_fs);
if (path_fs == nullptr || *path_fs == 0) if (path_fs == nullptr || *path_fs == 0)
return std::string(); return std::string();
} }
......
...@@ -62,7 +62,7 @@ AllocatedPath::ToUTF8() const ...@@ -62,7 +62,7 @@ AllocatedPath::ToUTF8() const
} }
const char * const char *
AllocatedPath::RelativeFS(const char *other_fs) const AllocatedPath::Relative(const char *other_fs) const
{ {
const size_t l = length(); const size_t l = length();
if (memcmp(data(), other_fs, l) != 0) if (memcmp(data(), other_fs, l) != 0)
......
...@@ -249,7 +249,7 @@ public: ...@@ -249,7 +249,7 @@ public:
* nullptr on mismatch. * nullptr on mismatch.
*/ */
gcc_pure gcc_pure
const char *RelativeFS(const char *other_fs) const; const char *Relative(const char *other_fs) const;
/** /**
* Chop trailing directory separators. * Chop trailing directory separators.
......
...@@ -153,7 +153,7 @@ public: ...@@ -153,7 +153,7 @@ public:
* nullptr on mismatch. * nullptr on mismatch.
*/ */
gcc_pure gcc_pure
const_pointer RelativeFS(const_pointer other_fs) const { const_pointer Relative(const_pointer other_fs) const {
return PathTraitsFS::Relative(value, other_fs); return PathTraitsFS::Relative(value, other_fs);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment