mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 21:55:43 +01:00
Use PBD::find_files_matching_pattern instead of other variations
This commit is contained in:
parent
1a4fdf0b22
commit
093fb77b88
11 changed files with 26 additions and 107 deletions
|
|
@ -89,45 +89,6 @@ find_files_matching_pattern (std::vector<std::string>& result,
|
|||
const Searchpath& paths,
|
||||
const std::string& pattern);
|
||||
|
||||
/**
|
||||
* Takes a directory path and returns all the files in the directory
|
||||
* matching a particular pattern.
|
||||
*
|
||||
* @param directory A directory path
|
||||
* @param pattern A Glib::PatternSpec used to match the files.
|
||||
* @param result A vector in which to place the resulting matches.
|
||||
*/
|
||||
LIBPBD_API void
|
||||
find_matching_files_in_directory (const std::string& directory,
|
||||
const Glib::PatternSpec& pattern,
|
||||
std::vector<std::string>& result);
|
||||
|
||||
/**
|
||||
* Takes a number of directory paths and returns all the files matching
|
||||
* a particular pattern.
|
||||
*
|
||||
* @param paths A vector containing the Absolute paths
|
||||
* @param pattern A Glib::PatternSpec used to match the files
|
||||
* @param result A vector in which to place the resulting matches.
|
||||
*/
|
||||
LIBPBD_API void
|
||||
find_matching_files_in_directories (const std::vector<std::string>& directory_paths,
|
||||
const Glib::PatternSpec& pattern,
|
||||
std::vector<std::string>& result);
|
||||
|
||||
/**
|
||||
* Takes a Searchpath and puts a list of all the files in the search path
|
||||
* that match pattern into the result vector.
|
||||
*
|
||||
* @param search_path A Searchpath
|
||||
* @param pattern A Glib::PatternSpec used to match the files
|
||||
* @param result A vector in which to place the resulting matches.
|
||||
*/
|
||||
LIBPBD_API void
|
||||
find_matching_files_in_search_path (const Searchpath& search_path,
|
||||
const Glib::PatternSpec& pattern,
|
||||
std::vector<std::string>& result);
|
||||
|
||||
/**
|
||||
* Takes a search path and a file name and place the full path
|
||||
* to that file in result if it is found within the search path.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue