mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 16:24:57 +01:00
Add function PBD::find_paths_matching_filter
This commit is contained in:
parent
54c0a0144c
commit
24599c552d
2 changed files with 24 additions and 0 deletions
|
|
@ -289,6 +289,17 @@ find_files_matching_regex (vector<string>& result,
|
||||||
regfree (&compiled_pattern);
|
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
|
void
|
||||||
find_files_matching_filter (vector<string>& result,
|
find_files_matching_filter (vector<string>& result,
|
||||||
const Searchpath& paths,
|
const Searchpath& paths,
|
||||||
|
|
|
||||||
|
|
@ -109,6 +109,19 @@ find_files_matching_regex (std::vector<std::string>& results,
|
||||||
const Searchpath& dirpath,
|
const Searchpath& dirpath,
|
||||||
const std::string& regexp);
|
const std::string& regexp);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return paths in a Searchpath that match a supplied filter(functor)
|
||||||
|
* @note results include files and directories
|
||||||
|
*/
|
||||||
|
LIBPBD_API void
|
||||||
|
find_paths_matching_filter (std::vector<std::string>&,
|
||||||
|
const Searchpath& paths,
|
||||||
|
bool (*filter)(const std::string &, void *),
|
||||||
|
void *arg,
|
||||||
|
bool match_fullpath,
|
||||||
|
bool return_fullpath,
|
||||||
|
bool recurse = false);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return files in a Searchpath that match a supplied filter(functor)
|
* @return files in a Searchpath that match a supplied filter(functor)
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue