Searched refs:BestDistance (Results 1 – 2 of 2) sorted by relevance
587 unsigned BestDistance = Group.size() + 1; // Sanity threshold. in getNearestWarningOption() local594 unsigned Distance = i->getName().edit_distance(Group, true, BestDistance); in getNearestWarningOption()595 if (Distance == BestDistance) { in getNearestWarningOption()598 } else if (Distance < BestDistance) { in getNearestWarningOption()601 BestDistance = Distance; in getNearestWarningOption()
204 unsigned BestDistance = 0; in LookupNearestOption() local218 Flag, /*AllowReplacements=*/true, /*MaxEditDistance=*/BestDistance); in LookupNearestOption()219 if (!Best || Distance < BestDistance) { in LookupNearestOption()221 BestDistance = Distance; in LookupNearestOption()