| 147 | } // namespace |
| 148 | |
| 149 | size_t GetMaxErrorsForToken(UniString const & token) |
| 150 | { |
| 151 | bool const digitsOnly = std::all_of(token.begin(), token.end(), ::isdigit); |
| 152 | if (digitsOnly) |
| 153 | return 0; |
| 154 | return GetMaxErrorsForTokenLength(token.size()); |
| 155 | } |
| 156 | |
| 157 | LevenshteinDFA BuildLevenshteinDFA(UniString const & s) |
| 158 | { |
no test coverage detected