Lines Matching refs:string1
21 static zend_long reference_levdist(const zend_string *string1, const zend_string *string2, zend_lon… in reference_levdist() argument
27 if (ZSTR_LEN(string1) == 0) { in reference_levdist()
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()
38 const zend_string *tmp = string1; in reference_levdist()
39 string1 = string2; in reference_levdist()
49 for (i1 = 0; i1 < ZSTR_LEN(string1) ; i1++) { in reference_levdist()
53 c0 = p1[i2] + ((ZSTR_VAL(string1)[i1] == ZSTR_VAL(string2)[i2]) ? 0 : cost_rep); in reference_levdist()
80 zend_string *string1, *string2; in PHP_FUNCTION() local
85 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "SS|lll", &string1, &string2, &cost_ins, &cost_rep, &co… in PHP_FUNCTION()
90 RETURN_LONG(reference_levdist(string1, string2, cost_ins, cost_rep, cost_del)); in PHP_FUNCTION()