Searched defs:cost_del (Results 1 - 1 of 1) sorted by relevance

/PHP_5_6/ext/standard/
H A Dlevenshtein.c30 static int reference_levdist(const char *s1, int l1, const char *s2, int l2, int cost_ins, int cost_rep, int cost_del )
39 return l1 * cost_del;
52 p2[0] = p1[0] + cost_del;
56 c1 = p1[i2 + 1] + cost_del;
90 /* {{{ proto int levenshtein(string str1, string str2[, int cost_ins, int cost_rep, int cost_del])
98 long cost_ins, cost_rep, cost_del; local
110 if (zend_parse_parameters(5 TSRMLS_CC, "sslll", &str1, &str1_len, &str2, &str2_len, &cost_ins, &cost_rep, &cost_del) == FAILURE) {
113 distance = reference_levdist(str1, str1_len, str2, str2_len, cost_ins, cost_rep, cost_del);

Completed in 17 milliseconds