| 145 | } |
| 146 | |
| 147 | virtual bool showEntry(const ListEntry<T> *entry, const vector<string> &search_tokens) |
| 148 | { |
| 149 | if (!search_tokens.empty()) |
| 150 | { |
| 151 | string item_string = to_search_normalized(entry->text); |
| 152 | for (auto si = search_tokens.begin(); si != search_tokens.end(); si++) |
| 153 | { |
| 154 | if (!si->empty() && item_string.find(*si) == string::npos && |
| 155 | entry->keywords.find(*si) == string::npos) |
| 156 | { |
| 157 | return false; |
| 158 | } |
| 159 | } |
| 160 | } |
| 161 | return true; |
| 162 | } |
| 163 | |
| 164 | void filterDisplay() |
| 165 | { |
nothing calls this directly
no test coverage detected