Method: Amatch::Sellers#search
- Defined in:
- ext/amatch_ext.c
#search(strings) ⇒ Object
searches Sellers#pattern in strings and returns the edit distance (the sum of weighted character operations) as a Float value, by greedy trimming prefixes or postfixes of the match. strings has to be either a String or an Array of Strings. The returned results is either a Float or an Array of Floats respectively.
1248 1249 1250 1251 1252 |
# File 'ext/amatch_ext.c', line 1248 static VALUE rb_Sellers_search(VALUE self, VALUE strings) { GET_STRUCT(Sellers) return Sellers_iterate_strings(amatch, strings, Sellers_search); } |