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

Function GetMaxErrorsForTokenLength

libs/indexer/search_string_utils.hpp:14–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12namespace search
13{
14inline 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
23inline constexpr size_t GetMaxErrorsForToken_Category(size_t length)
24{

Callers 2

ASSERTFunction · 0.85
GetMaxErrorsForTokenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected