path_filter - filtering of a string based on globbed include/exclude list More...
#include <path_filter.h>


Public Member Functions | |
| path_filter (std::string const &include_patterns=std::string(), std::string const &exclude_patterns=std::string()) | |
| Initialise the filter with the include and exclude list, comma-separated. | |
| path_filter (std::vector< std::string > const &include_patterns, std::vector< std::string > const &exclude_patterns) | |
| Initialise the filter with the include and exclude list. | |
| virtual bool | match (std::string const &str) const |
| Returns true if the given string matches. | |
path_filter - filtering of a string based on globbed include/exclude list
This class is an oracle on whether a particular string matches the given list of included and excluded strings.
This class gives glob-based matches on each pattern, as with fnmatch(3), where each component of the candidate path is considered separately.
| path_filter::path_filter | ( | std::string const & | include_patterns = std::string(), |
|
| std::string const & | exclude_patterns = std::string() | |||
| ) | [inline] |
Initialise the filter with the include and exclude list, comma-separated.
| path_filter::path_filter | ( | std::vector< std::string > const & | include_patterns, | |
| std::vector< std::string > const & | exclude_patterns | |||
| ) | [inline] |
Initialise the filter with the include and exclude list.
| virtual bool path_filter::match | ( | std::string const & | str | ) | const [virtual] |
Returns true if the given string matches.
Reimplemented from glob_filter.
1.6.1