Home
last modified time | relevance | path

Searched refs:substitution_cost (Results 1 – 2 of 2) sorted by relevance

/third_party/python/Python/
Dsuggestions.c15 substitution_cost(char a, char b) in substitution_cost() function
103 size_t substitute = distance + substitution_cost(code, a[index]); in levenshtein_distance()
/third_party/rust/crates/strsim-rs/src/
Dlib.rs366 let mut substitution_cost = distances[flat_index(i, j, width)] + 1; in generic_damerau_levenshtein() localVariable
369 substitution_cost -= 1; in generic_damerau_levenshtein()
372 distances[flat_index(i + 1, j + 1, width)] = min(substitution_cost, in generic_damerau_levenshtein()