diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2012-06-23 05:08:06 +0000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2012-06-23 05:08:06 +0000 |
commit | a239047380d1cbd35ec8fc2f5e7366bbb9811d81 (patch) | |
tree | 5d418caebcd97b0be1a04f67ec4065b7ffabc65c /libs/pbd | |
parent | fb76229f7b92caafee76cf1c480c62946d682b58 (diff) |
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
Diffstat (limited to 'libs/pbd')
-rw-r--r-- | libs/pbd/filesystem.cc | 4 | ||||
-rw-r--r-- | libs/pbd/pbd/filesystem.h | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/libs/pbd/filesystem.cc b/libs/pbd/filesystem.cc index 58e1a37a72..39d8495fc4 100644 --- a/libs/pbd/filesystem.cc +++ b/libs/pbd/filesystem.cc @@ -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) { diff --git a/libs/pbd/pbd/filesystem.h b/libs/pbd/pbd/filesystem.h index d37011a864..d64f9619bb 100644 --- a/libs/pbd/pbd/filesystem.h +++ b/libs/pbd/pbd/filesystem.h @@ -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); /** |