Searched refs:cost_del (Results 1 – 1 of 1) sorted by relevance
/php-src/ext/standard/ |
H A D | levenshtein.c | 21 … *string1, const zend_string *string2, zend_long cost_ins, zend_long cost_rep, zend_long cost_del ) in reference_levdist() argument 31 return ZSTR_LEN(string1) * cost_del; in reference_levdist() 37 if (ZSTR_LEN(string1) < ZSTR_LEN(string2) && cost_ins == cost_rep && cost_rep == cost_del) { in reference_levdist() 50 p2[0] = p1[0] + cost_del; in reference_levdist() 54 c1 = p1[i2 + 1] + cost_del; in reference_levdist() 83 zend_long cost_del = 1; in PHP_FUNCTION() local 85 …eters(ZEND_NUM_ARGS(), "SS|lll", &string1, &string2, &cost_ins, &cost_rep, &cost_del) == FAILURE) { in PHP_FUNCTION() 90 RETURN_LONG(reference_levdist(string1, string2, cost_ins, cost_rep, cost_del)); in PHP_FUNCTION()
|
Completed in 4 milliseconds