summaryrefslogtreecommitdiffstats
path: root/src/Path.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Path.cpp')
-rw-r--r--src/Path.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/Path.cpp b/src/Path.cpp
index 4fbaa58..fff4fbd 100644
--- a/src/Path.cpp
+++ b/src/Path.cpp
@@ -36,7 +36,6 @@ Path::is_path(const Raul::URI& uri)
&& Path::is_valid(uri.str());
}
-
Path::Path(const std::basic_string<char>& path)
: URI(path[0] == '/' ? root_uri.str() + path.substr(1) : path)
{
@@ -44,7 +43,6 @@ Path::Path(const std::basic_string<char>& path)
throw BadPath(str());
}
-
Path::Path(const char* cpath)
: URI(cpath[0] == '/' ? root_uri.str() + (cpath + 1) : cpath)
{
@@ -52,7 +50,6 @@ Path::Path(const char* cpath)
throw BadPath(str());
}
-
bool
Path::is_valid(const std::basic_string<char>& path_str)
{
@@ -99,7 +96,6 @@ Path::is_valid(const std::basic_string<char>& path_str)
return true;
}
-
/** Convert a string to a valid full path.
*
* The returned string is a valid relative path without the root prefix,
@@ -134,7 +130,6 @@ Path::pathify(const std::basic_string<char>& str)
return path;
}
-
/** Convert a string to a valid name (or "method" - tokens between slashes)
*
* This will strip all slashes, etc, and always return a valid name/method.
@@ -154,7 +149,6 @@ Path::nameify(const std::basic_string<char>& str)
return name;
}
-
/** Replace any invalid characters in @a str with a suitable replacement.
*/
void
@@ -203,7 +197,6 @@ Path::replace_invalid_chars(std::string& str, size_t start, bool replace_slash)
str = prefix + str;
}
-
bool
Path::is_child_of(const Path& parent) const
{
@@ -211,13 +204,11 @@ Path::is_child_of(const Path& parent) const
return (substr(0, parent_base.length()) == parent_base);
}
-
bool
Path::is_parent_of(const Path& child) const
{
return child.is_child_of(*this);
}
-
} // namespace Raul