Searched refs:BestDistance (Results 1 – 2 of 2) sorted by relevance
555 unsigned BestDistance = Group.size() + 1; // Sanity threshold. in getNearestWarningOption() local562 unsigned Distance = i->getName().edit_distance(Group, true, BestDistance); in getNearestWarningOption()563 if (Distance == BestDistance) { in getNearestWarningOption()566 } else if (Distance < BestDistance) { in getNearestWarningOption()569 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()