CBMC
|
Provides filtering of strings vai inclusion/exclusion lists of prefixes. More...
#include <prefix_filter.h>
Public Member Functions | |
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_prefixes . More... | |
Protected Attributes | |
std::vector< std::string > | included_prefixes |
std::vector< std::string > | excluded_prefixes |
Provides filtering of strings vai inclusion/exclusion lists of prefixes.
Definition at line 19 of file prefix_filter.h.
prefix_filtert::prefix_filtert | ( | std::vector< std::string > | included_prefixes, |
std::vector< std::string > | excluded_prefixes | ||
) |
Definition at line 18 of file prefix_filter.cpp.
bool prefix_filtert::operator() | ( | const std::string & | value | ) | const |
Return true iff value
matches a prefix in included_prefixes
, but doesn't match a prefix in excluded_prefixes
.
An empty vector of included_prefixes
is treated as 'match all'. An empty vector of excluded_prefixes
is treated as 'match nothing'.
Definition at line 26 of file prefix_filter.cpp.
|
protected |
Definition at line 34 of file prefix_filter.h.
|
protected |
Definition at line 33 of file prefix_filter.h.