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

/PHP_TRUNK/ext/intl/collator/
H A Dcollator_compare.c27 /* {{{ proto int Collator::compare( string $str1, string $str2 )
29 /* {{{ proto int collator_compare( Collator $coll, string $str1, string $str2 )
35 char* str2 = NULL; local
50 &object, Collator_ce_ptr, &str1, &str1_len, &str2, &str2_len ) == FAILURE )
92 &ustr2, &ustr2_len, str2, str2_len, COLLATOR_ERROR_CODE_P( co ) );
H A Dcollator_sort.c57 zval str1, str2; local
63 zval* str2_p = collator_convert_object_to_string( op2, &str2 );
90 /* num1 is set if str1 and str2 are strings. */
100 /* num2 is not set but str2 is string => do normalization. */
109 /* str2 is numeric strings => passthru to PHP-compare. */
116 /* num1 is not set if str1 or str2 is not a string => do normalization. */
180 zval str1, str2; local
187 str2_p = collator_make_printable_zval( op2, &str2 );
/PHP_TRUNK/ext/standard/
H A Dlevenshtein.c82 static int custom_levdist(char *str1, char *str2, char *callback_name) argument
91 /* {{{ proto int levenshtein(string str1, string str2[, int cost_ins, int cost_rep, int cost_del])
96 char *str1, *str2; local
104 if (zend_parse_parameters(2, "ss", &str1, &str1_len, &str2, &str2_len) == FAILURE) {
107 distance = reference_levdist(str1, str1_len, str2, str2_len, 1, 1, 1);
111 if (zend_parse_parameters(5, "sslll", &str1, &str1_len, &str2, &str2_len, &cost_ins, &cost_rep, &cost_del) == FAILURE) {
114 distance = reference_levdist(str1, str1_len, str2, str2_len, cost_ins, cost_rep, cost_del);
118 if (zend_parse_parameters(3, "sss", &str1, &str1_len, &str2, &str2_len, &callback_name, &callback_len) == FAILURE) {
121 distance = custom_levdist(str1, str2, callback_name);
H A Dstring.c729 /* {{{ proto int strcoll(string str1, string str2)
3579 /* {{{ proto int similar_text(string str1, string str2 [, float percent])
5124 zend_string *str2 = zval_get_string(op2); local
5126 ZVAL_LONG(result, strnatcmp_ex(ZSTR_VAL(str1), ZSTR_LEN(str1), ZSTR_VAL(str2), ZSTR_LEN(str2), case_insensitive));
5129 zend_string_release(str2);
H A Darray.c418 zend_string *str2 = zval_get_string(&s->val); local
420 int result = strnatcmp_ex(ZSTR_VAL(str1), ZSTR_LEN(str1), ZSTR_VAL(str2), ZSTR_LEN(str2), fold_case);
423 zend_string_release(str2);
/PHP_TRUNK/Zend/
H A Dzend_compile.c713 zend_string *zend_concat3(char *str1, size_t str1_len, char *str2, size_t str2_len, char *str3, size_t str3_len) /* {{{ */ argument
719 memcpy(ZSTR_VAL(res) + str1_len, str2, str2_len);
H A Dzend_operators.c1668 zend_string *str2 = zval_get_string(op2); local
1671 ZVAL_LONG(result, zend_binary_strcasecmp_l(ZSTR_VAL(str1), ZSTR_LEN(str1), ZSTR_VAL(str2), ZSTR_LEN(str1)));
1673 ZVAL_LONG(result, zend_binary_strcmp(ZSTR_VAL(str1), ZSTR_LEN(str1), ZSTR_VAL(str2), ZSTR_LEN(str2)));
1677 zend_string_release(str2);
1693 zend_string *str2 = zval_get_string(op2); local
1695 ZVAL_LONG(result, zend_binary_strcmp(ZSTR_VAL(str1), ZSTR_LEN(str1), ZSTR_VAL(str2), ZSTR_LEN(str2)));
1698 zend_string_release(str2);
1715 zend_string *str2 local
1730 zend_string *str2 = zval_get_string(op2); local
[all...]

Completed in 46 milliseconds