module Algorithms::String

  1. ext/algorithms/string/string.c
Parent: Algorithms

Methods

Public Class

  1. levenshtein_dist

Public Class methods

levenshtein_dist (p1, p2)
[show source]
static VALUE lev_dist(VALUE self, VALUE str1, VALUE str2) {
        return LONG2FIX(levenshtein_distance( str1, str2 ));
}