Home
last modified time | relevance | path

Searched refs:str2 (Results 1 – 25 of 65) sorted by relevance

123

/PHP-5.4/ext/standard/tests/strings/
H A Dstr_word_count.phpt20 $str2 = "F0o B4r 1s bar foo";
21 var_dump(str_word_count($str2, NULL, "04"));
22 var_dump(str_word_count($str2, NULL, "01"));
26 var_dump(str_word_count($str2, NULL, ""));
27 var_dump(str_word_count($str2, 1, "04"));
28 var_dump(str_word_count($str2, 1, "01"));
29 var_dump(str_word_count($str2, 1, "014"));
32 var_dump(str_word_count($str2, 1, ""));
33 var_dump(str_word_count($str2, 2, "04"));
34 var_dump(str_word_count($str2, 2, "01"));
[all …]
H A Dstrncasecmp_variation7.phpt5 /* Prototype : int strncasecmp ( string $str1, string $str2, int $len );
10 … strncasecmp() function with null terminated strings and binary values passed to 'str1' & 'str2' */
16 $str2 = "Hello\0";
18 var_dump( strncasecmp($str1, $str2, 12) );
H A Dstrncmp_variation7.phpt5 /* 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…
16 $str2 = "Hello\0";
17 var_dump( strncmp($str1, $str2, 12) ); //expected: int(5);
H A Dstrncmp_error.phpt5 /* Prototype : int strncmp ( string $str1, string $str2, int $len );
14 $str2 = 'string_val';
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 Dstrncasecmp_error.phpt5 /* Prototype : int strncasecmp ( string $str1, string $str2, int $len );
12 $str2 = 'string_val';
21 var_dump( strncasecmp($str1, $str2) );
24 var_dump( strncasecmp($str1, $str2, $len, $extra_arg) );
28 var_dump( strncasecmp($str1, $str2, $len) );
H A Dstrncmp_variation9.phpt5 /* Prototype : int strncmp ( string $str1, string $str2, int $len );
10 /* Test strncmp() function with different strings for 'str1', 'str2' and considering case sensitive…
22 $str2 = <<<identifier_str2
43 $str2,
H A Dstrncasecmp_variation3.phpt5 /* Prototype : int strncasecmp ( string $str1, string $str2, int $len );
15 $str2 = "Hello, world\n";
19 var_dump( strncasecmp($str1, $str2, $len) );
H A Dstrncmp_variation3.phpt5 /* Prototype : int strncmp ( string $str1, string $str2, int $len );
15 $str2 = "Hello, world\n";
19 var_dump( strncmp($str1, $str2, $len) );
H A Dstrnatcmp_error.phpt5 /* Prototype : int strnatcmp ( string $str1 , string $str2 )
16 $str2 = "ABC1";
18 var_dump( strnatcmp( $str1, $str2, $extra_arg) );
H A Dstrnatcasecmp_error.phpt5 /* Prototype : int strnatcasecmp ( string $str1 , string $str2 )
16 $str2 = "ABC1";
18 var_dump( strnatcasecmp( $str1, $str2, $extra_arg) );
H A Dstrncasecmp_variation4.phpt2 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";
91 $str2 = $values[$index];
93 var_dump( strncasecmp($str1, $str2, $len) );
102 *** Testing strncasecmp() function: with unexpected values for 'str1' and 'str2' ***
/PHP-5.4/ext/standard/
H A Dlevenshtein.c81 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.4/ext/gd/tests/
H A Dbug41442.phpt21 $str2 = ob_get_clean();
22 var_dump(imagecreatefromstring($str2));
27 $str2 = file_get_contents($file);
28 var_dump(imagecreatefromstring($str2));
/PHP-5.4/ext/intl/collator/
H A Dcollator_sort.c60 zval* str2 = collator_convert_object_to_string( op2 TSRMLS_CC ); in collator_regular_compare_function() local
69 if( Z_TYPE_P(str1) == IS_STRING && Z_TYPE_P(str2) == IS_STRING && in collator_regular_compare_function()
71 str2 == ( num2 = collator_convert_string_to_number_if_possible( str2 ) ) ) ) in collator_regular_compare_function()
87 INTL_Z_STRVAL_P(str2), INTL_Z_STRLEN_P(str2) ); in collator_regular_compare_function()
103 norm2 = collator_normalize_sort_argument( str2 ); in collator_regular_compare_function()
122 norm2 = collator_normalize_sort_argument( str2 ); in collator_regular_compare_function()
138 zval_ptr_dtor( &str2 ); in collator_regular_compare_function()
184 zval* str2 = NULL; in collator_icu_compare_function() local
187 str2 = collator_make_printable_zval( op2 ); in collator_icu_compare_function()
196 INTL_Z_STRVAL_P(str2), INTL_Z_STRLEN_P(str2) ); in collator_icu_compare_function()
[all …]
H A Dcollator_compare.c35 char* str2 = NULL; in PHP_FUNCTION() local
50 &object, Collator_ce_ptr, &str1, &str1_len, &str2, &str2_len ) == FAILURE ) in PHP_FUNCTION()
92 &ustr2, &ustr2_len, str2, str2_len, COLLATOR_ERROR_CODE_P( co ) ); in PHP_FUNCTION()
/PHP-5.4/ext/intl/doc/
H A Dcollator_api.php130 * @param string $str2 Second string to compare.
137 public function compare( $str1, $str2 ) {} argument
272 * @param string $str2 The second string to compare.
280 function collator_compare( $coll, $str1, $str2 ) {} argument
/PHP-5.4/ext/standard/tests/array/
H A Darray_merge_recursive_variation8.phpt17 $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");
42 ["str2"]=>
65 ["str2"]=>
H A Darray_merge_recursive_variation6.phpt21 $arr1_string_key = array("str1" => "hello", "str2" => 111, "str1" => "world", "str2" => 111.111);
60 ["str2"]=>
101 ["str2"]=>
H A Darray_merge_recursive_variation10.phpt20 "array" => array("hello", "world", "str1" => "hello", "str2" => 'world'),
66 ["str2"]=>
113 ["str2"]=>
156 ["str2"]=>
167 ["str2"]=>
/PHP-5.4/ext/zlib/tests/
H A Dgzseek_variation1.phpt14 $str2 = "This is the second line.";
19 gzwrite($h, $str2);
24 echo gzread($h, strlen($str2))."\n";
H A Dgzseek_basic2.phpt14 $str2 = "This is the second line.";
21 gzwrite($h, $str2);
28 echo gzread($h, strlen($str2))."\n";
H A Dgzseek_variation4.phpt14 $str2 = "This is the second line.";
21 gzwrite($h, $str2);
28 echo gzread($h, strlen($str2))."\n";
/PHP-5.4/ext/mbstring/tests/
H A Dbug65045.phpt14 $str2 = "\xF0\xA4\xAD\xA2"."\xF0\xA4\xAD\xA2"."\xF0\xA4\xAD";
20 $expected2 === htmlspecialchars_decode(htmlspecialchars($str2, ENT_SUBSTITUTE, 'UTF-8')),
22 $expected2 === mb_convert_encoding($str2, 'UTF-8', 'UTF-8')
/PHP-5.4/Zend/tests/
H A Dbug53629.phpt15 $str2 = '
25 highlight_string($str2, true);
/PHP-5.4/ext/pcre/tests/
H A Dbug44925.phpt6 $str2 = 'b';
8 $array=Array("1",2,3,1.1,FALSE,NULL,Array(), $str1, &$str2);
18 $str2 = 'y';

Completed in 36 milliseconds

123