lib/hotwater/levenshtein_ffi.rb
# compute Levenshtein edit distance between 2 strings
# @param s1 [String] first string
# @param s2 [String] seconds string
# @return [Integer] edit distance
compute Levenshtein edit distance between 2 strings
compute Levenshtein edit distance between 2 strings
def levenshtein_distance(s1, s2)
    result = C::levenshtein_distance(s1, s2)
    raise("memory allocation error") if result == -1
    result
  end
def levenshtein_distance ( s1 , s2 ) result = C :: levenshtein_distance ( s1 , s2 ) raise ( "memory allocation error" ) if result == - 1 result end
compute Levenshtein edit distance between 2 strings
compute Levenshtein edit distance between 2 strings
None
Integer
s1
None
s2
None