Searched defs:cost_ins (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 ) argument
36 return l2 * cost_ins;
49 p1[i2] = i2 * cost_ins;
60 c2 = p2[i2] + cost_ins;
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 2 milliseconds