| 64 | } |
| 65 | |
| 66 | bool TestFilter::match(const SimpleString& name) const |
| 67 | { |
| 68 | bool matches = false; |
| 69 | |
| 70 | if(strictMatching_) |
| 71 | matches = name == filter_; |
| 72 | else |
| 73 | matches = name.contains(filter_); |
| 74 | |
| 75 | return invertMatching_ ? !matches : matches; |
| 76 | } |
| 77 | |
| 78 | bool TestFilter::operator==(const TestFilter& filter) const |
| 79 | { |