From 7bd4febfdb799cd359a380d23640654f476dadae Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 18 May 2011 15:52:39 +0000 Subject: Strip double blank lines. git-svn-id: http://svn.drobilla.net/lad/trunk/raul@3279 a436a847-0d15-0410-975c-d299462d15a1 --- src/Path.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/Path.cpp') 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& path) : URI(path[0] == '/' ? root_uri.str() + path.substr(1) : path) { @@ -44,7 +43,6 @@ Path::Path(const std::basic_string& 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& path_str) { @@ -99,7 +96,6 @@ Path::is_valid(const std::basic_string& 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& 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& 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 -- cgit v1.2.1