Searched refs:TypoStr (Results 1 – 2 of 2) sorted by relevance
3892 StringRef TypoStr = Typo->getName(); in addName() local3893 unsigned MinED = abs((int)Name.size() - (int)TypoStr.size()); in addName()3894 if (MinED && TypoStr.size() / MinED < 3) in addName()3899 unsigned UpperBound = (TypoStr.size() + 2) / 3 + 1; in addName()3900 unsigned ED = TypoStr.edit_distance(Name, true, UpperBound); in addName()3912 StringRef TypoStr = Typo->getName(); in addCorrection() local3918 if (TypoStr.size() < 3 && in addCorrection()3919 (Name != TypoStr || Correction.getEditDistance(true) > TypoStr.size())) in addCorrection()
4207 StringRef TypoStr = Typo->getName(); in addName() local4208 unsigned MinED = abs((int)Name.size() - (int)TypoStr.size()); in addName()4209 if (MinED && TypoStr.size() / MinED < 3) in addName()4214 unsigned UpperBound = (TypoStr.size() + 2) / 3; in addName()4215 unsigned ED = TypoStr.edit_distance(Name, true, UpperBound); in addName()4227 StringRef TypoStr = Typo->getName(); in addCorrection() local4233 if (TypoStr.size() < 3 && in addCorrection()4234 (Name != TypoStr || Correction.getEditDistance(true) > TypoStr.size())) in addCorrection()