From a239047380d1cbd35ec8fc2f5e7366bbb9811d81 Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Sat, 23 Jun 2012 05:08:06 +0000 Subject: [PATCH] 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 --- libs/pbd/filesystem.cc | 4 ---- 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); /**