Searched refs:cost_ins (Results 1 – 1 of 1) sorted by relevance
/php-src/ext/standard/ |
H A D | levenshtein.c | 22 …vdist(const zend_string *string1, const zend_string *string2, zend_long cost_ins, zend_long cost_r… in reference_levdist() argument 29 return ZSTR_LEN(string2) * cost_ins; in reference_levdist() 38 if (ZSTR_LEN(string1) < ZSTR_LEN(string2) && cost_ins == cost_rep && cost_rep == cost_del) { in reference_levdist() 48 p1[i2] = i2 * cost_ins; in reference_levdist() 59 c2 = p2[i2] + cost_ins; in reference_levdist() 82 zend_long cost_ins = 1; in PHP_FUNCTION() local 86 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "SS|lll", &string1, &string2, &cost_ins, &cost_rep, &co… in PHP_FUNCTION() 91 RETURN_LONG(reference_levdist(string1, string2, cost_ins, cost_rep, cost_del)); in PHP_FUNCTION()
|
Completed in 7 milliseconds