13
0

Move doc for PBD::sys::path_is_within to header

git-svn-id: svn://localhost/ardour2/branches/3.0@12860 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Tim Mayberry 2012-06-23 05:08:06 +00:00
parent fb76229f7b
commit a239047380
2 changed files with 5 additions and 4 deletions

View File

@ -230,10 +230,6 @@ equivalent_paths (const std::string& a, const std::string& b)
return (rA == 0 && rB == 0 && bA.st_dev == bB.st_dev && bA.st_ino == bB.st_ino);
}
/** Find out if `needle' is a file or directory within the
* directory `haystack'.
* @return true if it is.
*/
bool
path_is_within (std::string const & haystack, std::string needle)
{

View File

@ -190,6 +190,11 @@ std::string extension (const path& p);
path get_absolute_path (const path &);
/**
* Find out if `needle' is a file or directory within the
* directory `haystack'.
* @return true if it is.
*/
bool path_is_within (const std::string &, std::string);
/**