Searched refs:LevenshteinDistance (Results 1 – 4 of 4) sorted by relevance
19 import com.android.quicksearchbox.util.LevenshteinDistance.EditOperation;20 import com.android.quicksearchbox.util.LevenshteinDistance.Token;31 private static final int INSERT = LevenshteinDistance.EDIT_INSERT;32 private static final int DELETE = LevenshteinDistance.EDIT_DELETE;33 private static final int REPLACE = LevenshteinDistance.EDIT_REPLACE;34 private static final int UNCHANGED = LevenshteinDistance.EDIT_UNCHANGED;43 LevenshteinDistance distance = new LevenshteinDistance(sourceTokens, targetTokens); in verifyTargetOperations()
19 import com.android.quicksearchbox.util.LevenshteinDistance;20 import com.android.quicksearchbox.util.LevenshteinDistance.Token;83 final LevenshteinDistance table = new LevenshteinDistance(source, target); in findMatches()87 LevenshteinDistance.EditOperation[] ops = table.getTargetOperations(); in findMatches()89 if (ops[i].getType() == LevenshteinDistance.EDIT_UNCHANGED) { in findMatches()
27 public class LevenshteinDistance { class38 public LevenshteinDistance(Token[] source, Token[] target) { in LevenshteinDistance() method in LevenshteinDistance115 case LevenshteinDistance.EDIT_DELETE: in getTargetOperations()118 case LevenshteinDistance.EDIT_INSERT: in getTargetOperations()122 case LevenshteinDistance.EDIT_UNCHANGED: in getTargetOperations()123 case LevenshteinDistance.EDIT_REPLACE: in getTargetOperations()
20 import com.android.quicksearchbox.util.LevenshteinDistance.Token;