osaStringDistance function

int osaStringDistance(
  1. String a,
  2. String b
)

Levenshtein distance is a string metric for measuring the difference between two sequences. Informally, the Levenshtein distance between two words is the minimum number of single-character edits (insertions, deletions or substitutions) required to change one word into the other

Implementation

int osaStringDistance(String a, String b) {
  return osaDistance(a.codeUnits, b.codeUnits);
}