regfree (&compiled_pattern);
}
-
-vector<string>
-PathScanner::operator() (const string &dirpath, const string ®exp,
- bool match_fullpath, bool return_fullpath,
- long limit, bool recurse)
-
-{
- vector<string> result;
-
- find_files_matching_regex (result,
- dirpath,
- regexp,
- match_fullpath,
- return_fullpath,
- limit, recurse);
-
- return result;
-}
void
PathScanner::find_files_matching_filter (vector<string>& result,
bool match_fullpath = true,
bool return_fullpath = true,
long limit = -1,
- bool recurse = false);
+ bool recurse = false)
+ {
+ std::vector<std::string> result;
+
+ find_files_matching_regex (result,
+ dirpath,
+ regexp,
+ match_fullpath,
+ return_fullpath,
+ limit, recurse);
+
+ return result;
+ }
private: