/PHP-5.5/ext/standard/ |
H A D | levenshtein.c | 81 static int custom_levdist(char *str1, char *str2, char *callback_name TSRMLS_DC) in custom_levdist() argument 95 char *str1, *str2; in PHP_FUNCTION() local 103 if (zend_parse_parameters(2 TSRMLS_CC, "ss", &str1, &str1_len, &str2, &str2_len) == FAILURE) { in PHP_FUNCTION() 106 distance = reference_levdist(str1, str1_len, str2, str2_len, 1, 1, 1); in PHP_FUNCTION() 110 …if (zend_parse_parameters(5 TSRMLS_CC, "sslll", &str1, &str1_len, &str2, &str2_len, &cost_ins, &co… in PHP_FUNCTION() 113 distance = reference_levdist(str1, str1_len, str2, str2_len, cost_ins, cost_rep, cost_del); in PHP_FUNCTION() 117 …if (zend_parse_parameters(3 TSRMLS_CC, "sss", &str1, &str1_len, &str2, &str2_len, &callback_name, … in PHP_FUNCTION() 120 distance = custom_levdist(str1, str2, callback_name TSRMLS_CC); in PHP_FUNCTION()
|
/PHP-5.5/ext/standard/tests/array/ |
H A D | array_merge_recursive_variation6.phpt | 21 $arr1_string_key = array("str1" => "hello", "str2" => 111, "str1" => "world", "str2" => 111.111); 24 $arr2 = array("one", "str1" => "two", array("one", "two")); 58 ["str1"]=> 83 ["str1"]=> 94 ["str1"]=>
|
H A D | array_merge_recursive_variation8.phpt | 17 $arr1 = array(b"1", b"hello" => "hello", b"world", "str1" => b"hello", "str2" => "world"); 20 $arr2 = array(b"str1" => b"binary", b"hello" => "binary", b"str2" => b"binary"); 40 ["str1"]=> 58 ["str1"]=>
|
H A D | array_merge_recursive_variation10.phpt | 20 "array" => array("hello", "world", "str1" => "hello", "str2" => 'world'), 64 ["str1"]=> 111 ["str1"]=> 154 ["str1"]=> 165 ["str1"]=>
|
/PHP-5.5/ext/standard/tests/strings/ |
H A D | strncmp_error.phpt | 5 /* Prototype : int strncmp ( string $str1, string $str2, int $len ); 13 $str1 = 'string_val'; 19 var_dump( strncmp($str1) ); //One argument, less than expected no. of args 20 var_dump( strncmp($str1, $str2) ); //Two arguments, less than expected no. of args 21 var_dump( strncmp($str1, $str2, $len, $extra_arg) ); //Four arguments, greater than expected no. o… 25 var_dump( strncmp($str1, $str2, $len) );
|
H A D | strncasecmp_error.phpt | 5 /* Prototype : int strncasecmp ( string $str1, string $str2, int $len ); 11 $str1 = 'string_val'; 20 var_dump( strncasecmp($str1) ); 21 var_dump( strncasecmp($str1, $str2) ); 24 var_dump( strncasecmp($str1, $str2, $len, $extra_arg) ); 28 var_dump( strncasecmp($str1, $str2, $len) );
|
H A D | strncasecmp_variation3.phpt | 5 /* Prototype : int strncasecmp ( string $str1, string $str2, int $len ); 14 $str1 = "Hello, World\n"; 18 for($len = strlen($str1); $len >= 0; $len--) { 19 var_dump( strncasecmp($str1, $str2, $len) );
|
H A D | strncmp_variation3.phpt | 5 /* Prototype : int strncmp ( string $str1, string $str2, int $len ); 14 $str1 = "Hello, World\n"; 18 for($len = strlen($str1); $len >= 0; $len--) { 19 var_dump( strncmp($str1, $str2, $len) );
|
H A D | strncasecmp_variation7.phpt | 5 /* Prototype : int strncasecmp ( string $str1, string $str2, int $len ); 10 /* Test strncasecmp() function with null terminated strings and binary values passed to 'str1' & 's… 15 $str1 = "Hello\0world"; 18 var_dump( strncasecmp($str1, $str2, 12) );
|
H A D | strncmp_variation7.phpt | 5 /* Prototype : int strncmp ( string $str1, string $str2, int $len ); 10 /* Test strncmp() function with binary values passed to 'str1' & 'str2' and with the null terminate… 15 $str1 = "Hello\0world"; 17 var_dump( strncmp($str1, $str2, 12) ); //expected: int(5);
|
H A D | strncasecmp_variation1.phpt | 5 /* Prototype : int strncasecmp ( string $str1, string $str2, int $len ); 10 /* Test strncasecmp() function with upper-case and lower-case alphabets as inputs for 'str1' and 's… 13 echo "-- Passing upper-case letters for 'str1' --\n"; 19 echo "\n-- Passing lower-case letters for 'str1' --\n"; 28 -- Passing upper-case letters for 'str1' -- 82 -- Passing lower-case letters for 'str1' --
|
H A D | strncmp_variation1.phpt | 5 /* Prototype : int strncmp ( string $str1, string $str2, int $len ); 10 /* Test strncmp() function with upper-case and lower-case alphabets as inputs for 'str1' and 'str2'… 13 echo "-- Passing upper-case letters for 'str1' --\n"; 19 echo "\n-- Passing lower-case letters for 'str1' --\n"; 28 -- Passing upper-case letters for 'str1' -- 82 -- Passing lower-case letters for 'str1' --
|
H A D | strncmp_variation9.phpt | 5 /* Prototype : int strncmp ( string $str1, string $str2, int $len ); 10 /* Test strncmp() function with different strings for 'str1', 'str2' and considering case sensitive… 15 $str1 = <<<EOD 42 $str1,
|
H A D | strnatcasecmp_error.phpt | 5 /* Prototype : int strnatcasecmp ( string $str1 , string $str2 ) 15 $str1 = "abc1"; 18 var_dump( strnatcasecmp( $str1, $str2, $extra_arg) );
|
H A D | strnatcmp_error.phpt | 5 /* Prototype : int strnatcmp ( string $str1 , string $str2 ) 15 $str1 = "abc1"; 18 var_dump( strnatcmp( $str1, $str2, $extra_arg) );
|
H A D | strncasecmp_variation4.phpt | 2 Test strncasecmp() function : usage variations - unexpected values for 'str1' & 'str2' 5 /* Prototype : int strncasecmp ( string $str1, string $str2, int $len ); 10 /* Test strncasecmp() function with the unexpected inputs for 'str1' and 'str2' */ 12 echo "*** Testing strncasecmp() function: with unexpected values for 'str1' and 'str2' ***\n"; 90 $str1 = $values[$index]; 93 var_dump( strncasecmp($str1, $str2, $len) ); 102 *** Testing strncasecmp() function: with unexpected values for 'str1' and 'str2' ***
|
H A D | strncasecmp_variation10.phpt | 2 Test strncasecmp() function : usage variations - unexpected values for 'str1' 5 /* Prototype : int strncasecmp ( string $str1, string $str2, int $len ); 10 /* Test strncasecmp() function with the unexpected inputs for 'str1' */ 12 echo "*** Testing strncasecmp() function: with unexpected values for 'str1' ***\n"; 90 $str1 = $values[$index]; 92 var_dump( strncasecmp($str1, "string", $len) ); 101 *** Testing strncasecmp() function: with unexpected values for 'str1' ***
|
/PHP-5.5/ext/zlib/tests/ |
H A D | gzseek_variation1.phpt | 13 $str1 = "This is the first line."; 15 gzwrite($h, $str1); 18 gzseek($h, strlen($str1) + 20); 22 echo gzread($h, strlen($str1))."\n";
|
H A D | gzseek_basic2.phpt | 13 $str1 = "This is the first line."; 15 gzwrite($h, $str1); 19 gzseek($h, strlen($str1) + 20); 26 echo gzread($h, strlen($str1))."\n";
|
H A D | gzseek_variation4.phpt | 13 $str1 = "This is the first line."; 15 gzwrite($h, $str1); 19 gzseek($h, strlen($str1) + 20, SEEK_SET); 26 echo gzread($h, strlen($str1))."\n";
|
H A D | gzseek_variation5.phpt | 13 $str1 = "This is the first line."; 15 gzwrite($h, $str1); 26 echo gzread($h, strlen($str1))."\n";
|
/PHP-5.5/ext/intl/collator/ |
H A D | collator_sort.c | 59 zval* str1 = collator_convert_object_to_string( op1 TSRMLS_CC ); in collator_regular_compare_function() local 70 ( str1 == ( num1 = collator_convert_string_to_number_if_possible( str1 ) ) || in collator_regular_compare_function() 87 INTL_Z_STRVAL_P(str1), INTL_Z_STRLEN_P(str1), in collator_regular_compare_function() 96 if( num1 == str1 ) in collator_regular_compare_function() 101 norm1 = collator_convert_zstr_utf16_to_utf8( str1 ); in collator_regular_compare_function() 120 norm1 = collator_normalize_sort_argument( str1 ); in collator_regular_compare_function() 138 zval_ptr_dtor( &str1 ); in collator_regular_compare_function() 184 zval* str1 = NULL; in collator_icu_compare_function() local 187 str1 = collator_make_printable_zval( op1 ); in collator_icu_compare_function() 196 INTL_Z_STRVAL_P(str1), INTL_Z_STRLEN_P(str1), in collator_icu_compare_function() [all …]
|
H A D | collator_compare.c | 34 char* str1 = NULL; in PHP_FUNCTION() local 50 &object, Collator_ce_ptr, &str1, &str1_len, &str2, &str2_len ) == FAILURE ) in PHP_FUNCTION() 76 &ustr1, &ustr1_len, str1, str1_len, COLLATOR_ERROR_CODE_P( co ) ); in PHP_FUNCTION()
|
/PHP-5.5/ext/intl/doc/ |
H A D | collator_api.php | 129 * @param string $str1 First string to compare. 137 public function compare( $str1, $str2 ) {} argument 271 * @param string $str1 The first string to compare. 280 function collator_compare( $coll, $str1, $str2 ) {} argument
|
/PHP-5.5/ext/pcre/tests/ |
H A D | bug44925.phpt | 5 $str1 = 'a'; 8 $array=Array("1",2,3,1.1,FALSE,NULL,Array(), $str1, &$str2); 17 $str1 = 'x';
|