Searched refs:BestDistance (Results 1 – 2 of 2) sorted by relevance
575 unsigned BestDistance = Group.size() + 1; // Sanity threshold. in getNearestOption() local582 unsigned Distance = i->getName().edit_distance(Group, true, BestDistance); in getNearestOption()583 if (Distance > BestDistance) in getNearestOption()591 if (Distance == BestDistance) { in getNearestOption()594 } else if (Distance < BestDistance) { in getNearestOption()597 BestDistance = Distance; in getNearestOption()
294 unsigned BestDistance = 0; in LookupNearestOption() local309 Flag, /*AllowReplacements=*/true, /*MaxEditDistance=*/BestDistance); in LookupNearestOption()310 if (!Best || Distance < BestDistance) { in LookupNearestOption()312 BestDistance = Distance; in LookupNearestOption()