19 std::vector<std::string> included_prefixes,
20 std::vector<std::string> excluded_prefixes)
21 : included_prefixes(std::move(included_prefixes)),
22 excluded_prefixes(std::move(excluded_prefixes))
31 const bool matches_included = std::any_of(
34 [value](
const std::string &prefix) { return has_prefix(value, prefix); });
40 const bool matches_excluded = std::any_of(
43 [value](
const std::string &prefix) { return has_prefix(value, prefix); });
44 return !matches_excluded;
std::vector< std::string > included_prefixes
prefix_filtert(std::vector< std::string > included_prefixes, std::vector< std::string > excluded_prefixes)
bool operator()(const std::string &value) const
Return true iff value matches a prefix in included_prefixes, but doesn't match a prefix in excluded_p...
std::vector< std::string > excluded_prefixes