Code: Select all

`int LevenshteinDistance(const wxString &s1, const wxString &s2);`

The Levenshtein distance between two strings is defined as the minimum number of edits needed to transform one string into the other, with the allowable edit operations being insertion, deletion, or substitution of a single character.

http://en.wikipedia.org/wiki/Levenshtein_distance