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

/PHP_TRUNK/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
55 c0 = p1[i2] + ((s1[i1] == s2[i2]) ? 0 : cost_rep);
90 /* {{{ proto int levenshtein(string str1, string str2[, int cost_ins, int cost_rep, int cost_del])
98 zend_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