| 12 | namespace search |
| 13 | { |
| 14 | inline constexpr size_t GetMaxErrorsForTokenLength(size_t length) |
| 15 | { |
| 16 | if (length < 4) |
| 17 | return 0; |
| 18 | if (length < 8) |
| 19 | return 1; |
| 20 | return 2; |
| 21 | } |
| 22 | |
| 23 | inline constexpr size_t GetMaxErrorsForToken_Category(size_t length) |
| 24 | { |
no outgoing calls
no test coverage detected