Add function PBD::find_paths_matching_filter

This commit is contained in:
Tim Mayberry 2014-06-22 13:11:27 +10:00 committed by Paul Davis
parent 54c0a0144c
commit 24599c552d
2 changed files with 24 additions and 0 deletions

View file

@ -289,6 +289,17 @@ find_files_matching_regex (vector<string>& result,
regfree (&compiled_pattern);
}
void
find_paths_matching_filter (vector<string>& result,
const Searchpath& paths,
bool (*filter)(const string &, void *),
void *arg,
bool match_fullpath, bool return_fullpath,
bool recurse)
{
run_functor_for_paths (result, paths, filter, arg, false, match_fullpath, return_fullpath, recurse);
}
void
find_files_matching_filter (vector<string>& result,
const Searchpath& paths,