MCPcopy Create free account
hub / github.com/comaps/comaps / GetMaxErrorsForToken

Function GetMaxErrorsForToken

libs/indexer/search_string_utils.cpp:149–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147} // namespace
148
149size_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
157LevenshteinDFA BuildLevenshteinDFA(UniString const & s)
158{

Callers 1

BuildLevenshteinDFAFunction · 0.85

Calls 4

beginMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected