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

/PHP_TRUNK/Zend/
H A Dzend_operators.c1613 zend_string *str1 = zval_get_string(op1); local
1617 ZVAL_LONG(result, zend_binary_strcasecmp_l(str1->val, str1->len, str2->val, str1->len));
1619 ZVAL_LONG(result, zend_binary_strcmp(str1->val, str1->len, str2->val, str2->len));
1622 zend_string_release(str1);
1638 zend_string *str1 = zval_get_string(op1); local
1641 ZVAL_LONG(result, zend_binary_strcmp(str1->val, str1
1660 zend_string *str1 = zval_get_string(op1); local
1675 zend_string *str1 = zval_get_string(op1); local
[all...]
H A Dzend_compile.c633 zend_string *zend_concat3(char *str1, size_t str1_len, char *str2, size_t str2_len, char *str3, size_t str3_len) /* {{{ */ argument
638 memcpy(res->val, str1, str1_len);
3223 static inline zend_bool zend_string_equals_str_ci(zend_string *str1, zend_string *str2) /* {{{ */ argument
3225 return str1->len == str2->len
3226 && !zend_binary_strcasecmp(str1->val, str1->len, str2->val, str2->len);
/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 )
34 char* str1 = NULL; local
50 &object, Collator_ce_ptr, &str1, &str1_len, &str2, &str2_len ) == FAILURE )
76 &ustr1, &ustr1_len, str1, str1_len, COLLATOR_ERROR_CODE_P( co ) );
H A Dcollator_sort.c57 zval str1, str2; local
62 zval* str1_p = collator_convert_object_to_string( op1, &str1 TSRMLS_CC );
90 /* num1 is set if str1 and str2 are strings. */
95 /* str1 is string but not numeric string
105 /* str1 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
186 str1_p = collator_make_printable_zval( op1, &str1);
/PHP_TRUNK/ext/standard/
H A Dlevenshtein.c81 static int custom_levdist(char *str1, char *str2, char *callback_name TSRMLS_DC) argument
90 /* {{{ proto int levenshtein(string str1, string str2[, int cost_ins, int cost_rep, int cost_del])
95 char *str1, *str2; local
103 if (zend_parse_parameters(2 TSRMLS_CC, "ss", &str1, &str1_len, &str2, &str2_len) == FAILURE) {
106 distance = reference_levdist(str1, str1_len, str2, str2_len, 1, 1, 1);
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);
117 if (zend_parse_parameters(3 TSRMLS_CC, "sss", &str1, &str1_len, &str2, &str2_len, &callback_name, &callback_len) == FAILURE) {
120 distance = custom_levdist(str1, str2, callback_name TSRMLS_CC);
H A Darray.c401 zend_string *str1 = zval_get_string(&f->val); local
404 int result = strnatcmp_ex(str1->val, str1->len, str2->val, str2->len, fold_case);
406 zend_string_release(str1);
H A Dstring.c711 /* {{{ proto int strcoll(string str1, string str2)
3077 /* {{{ proto int similar_text(string str1, string str2 [, float percent])
4852 zend_string *str1 = zval_get_string(op1); local
4855 ZVAL_LONG(result, strnatcmp_ex(str1->val, str1->len, str2->val, str2->len, case_insensitive));
4857 zend_string_release(str1);

Completed in 35 milliseconds