| 160 | |
| 161 | template <typename DFA> |
| 162 | pair<bool, bool> MatchesByName(vector<UniString> const & tokens, vector<DFA> const & dfas) |
| 163 | { |
| 164 | for (auto const & dfa : dfas) |
| 165 | { |
| 166 | for (auto const & token : tokens) |
| 167 | { |
| 168 | auto it = dfa.Begin(); |
| 169 | DFAMove(it, token); |
| 170 | if (it.Accepts()) |
| 171 | return {true, it.ErrorsMade() == 0}; |
| 172 | } |
| 173 | } |
| 174 | |
| 175 | return {false, false}; |
| 176 | } |
| 177 | |
| 178 | template <typename DFA> |
| 179 | pair<bool, bool> MatchesByType(feature::TypesHolder const & types, vector<DFA> const & dfas) |
no test coverage detected