Searched refs:BestDistance (Results 1 – 5 of 5) sorted by relevance
574 unsigned BestDistance = Group.size() + 1; // Sanity threshold. in getNearestOption() local580 unsigned Distance = O.getName().edit_distance(Group, true, BestDistance); in getNearestOption()581 if (Distance > BestDistance) in getNearestOption()589 if (Distance == BestDistance) { in getNearestOption()592 } else if (Distance < BestDistance) { in getNearestOption()595 BestDistance = Distance; in getNearestOption()
256 unsigned BestDistance = UINT_MAX; in findNearest() local304 /*MaxEditDistance=*/BestDistance); in findNearest()305 if (Distance < BestDistance) { in findNearest()306 BestDistance = Distance; in findNearest()310 return BestDistance; in findNearest()
478 unsigned BestDistance = 0; in LookupNearestOption() local492 Flag, /*AllowReplacements=*/true, /*MaxEditDistance=*/BestDistance); in LookupNearestOption()493 if (!Best || Distance < BestDistance) { in LookupNearestOption()495 BestDistance = Distance; in LookupNearestOption()
482 unsigned BestDistance = 0; in LookupNearestOption() local496 Flag, /*AllowReplacements=*/true, /*MaxEditDistance=*/BestDistance); in LookupNearestOption()497 if (!Best || Distance < BestDistance) { in LookupNearestOption()499 BestDistance = Distance; in LookupNearestOption()
462 unsigned BestDistance = 0; in LookupNearestOption() local476 Flag, /*AllowReplacements=*/true, /*MaxEditDistance=*/BestDistance); in LookupNearestOption()477 if (!Best || Distance < BestDistance) { in LookupNearestOption()479 BestDistance = Distance; in LookupNearestOption()