diff options
author | David Robillard <d@drobilla.net> | 2011-05-18 15:52:39 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-05-18 15:52:39 +0000 |
commit | 7bd4febfdb799cd359a380d23640654f476dadae (patch) | |
tree | 7acf0526548382e3768b45628a47f094120b7724 /src/Path.cpp | |
parent | 3a1a098d7d41468a74862777d3085f537fb6b894 (diff) | |
download | raul-7bd4febfdb799cd359a380d23640654f476dadae.tar.gz raul-7bd4febfdb799cd359a380d23640654f476dadae.tar.bz2 raul-7bd4febfdb799cd359a380d23640654f476dadae.zip |
Strip double blank lines.
git-svn-id: http://svn.drobilla.net/lad/trunk/raul@3279 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/Path.cpp')
-rw-r--r-- | src/Path.cpp | 9 |
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 |