Home
last modified time | relevance | path

Searched refs:chr (Results 1 – 25 of 254) sorted by relevance

1234567891011

/php-src/ext/standard/tests/strings/
H A Dstr_replace_variation2.phpt15 ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)";
51 chr(128).chr(234).chr(65).chr(255).chr(256),
70 ?FOUND chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
77 ?FOUND chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
84 ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
91 ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
98 ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
105 ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
112 ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
119 ?Hello, World chr(0).chr(128).chr(234).chr(65).chr(255).chr(256)"
[all …]
H A Dstrpos_variation1.phpt5 $string = chr(0).chr(128).chr(129).chr(234).chr(235).chr(254).chr(255);
8 echo bin2hex( chr(128) ) ." => ";
9 var_dump( strpos($string, chr(128)) );
10 echo bin2hex( chr(255) ) ." => ";
11 var_dump( strpos($string, chr(255), 3) );
12 echo bin2hex( chr(256) ) ." => ";
13 var_dump( strpos($string, chr(256)) );
H A Dstrstr_variation1.phpt5 $string = chr(0).chr(128).chr(129).chr(234).chr(235).chr(254).chr(255);
8 echo bin2hex( chr(128) ) ." => ";
9 var_dump( bin2hex( strstr($string, chr(128) ) ) );
10 echo bin2hex( chr(255) ) ." => ";
11 var_dump( bin2hex( strstr($string, chr(255) ) ) );
12 echo bin2hex( chr(256) ) ." => ";
13 var_dump( bin2hex( strstr($string, chr(256) ) ) );
H A Dchr_basic.phpt2 Test chr() function : basic functionality
6 echo "*** Testing chr() : basic functionality ***\n";
8 echo chr(72). chr(101) . chr(108) . chr(108). chr(111); // Hello
9 echo chr(10); // "\n"
14 *** Testing chr() : basic functionality ***
H A Dchr_error.phpt2 Test chr() function : error conditions
6 echo "*** Testing chr() : error conditions ***\n";
8 echo "\n-- Testing chr() function with no arguments --\n";
10 var_dump( chr() );
15 echo "\n-- Testing chr() function with more than expected no. of arguments --\n";
18 var_dump( chr(72, $extra_arg) );
25 *** Testing chr() : error conditions ***
27 -- Testing chr() function with no arguments --
28 chr() expects exactly 1 argument, 0 given
30 -- Testing chr() function with more than expected no. of arguments --
[all …]
H A Dstr_repeat_variation1.phpt7 $str = chr(0).chr(128).chr(129).chr(234).chr(235).chr(254).chr(255);
9 $withCodePoint = str_repeat($str, chr(51)); // ASCII value of '3' given
H A Dsubstr_count_variation_002.phpt8 $str = chr(128).chr(129).chr(128).chr(256).chr(255).chr(254).chr(255);
9 var_dump(substr_count($str, chr(128)));
10 var_dump(substr_count($str, chr(255)));
11 var_dump(substr_count($str, chr(256)));
H A Dsubstr_count_variation_001.phpt17 $str = chr(128).chr(129).chr(128).chr(256).chr(255).chr(254).chr(255);
18 var_dump(substr_count($str, chr(128)));
19 var_dump(substr_count($str, chr(255)));
20 var_dump(substr_count($str, chr(256)));
H A Dhtmlentities-utf-3.phpt47 $s = chr($b1).chr($b2);
56 $s = chr($b1).chr($b2)."\x80";
59 $s = chr($b1).chr($b2)."\xBF";
67 $s = chr($b1).chr($b2)."\x80\x80";
70 $s = chr($b1).chr($b2)."\xBF\x80";
73 $s = chr($b1).chr($b2)."\x80\xBF";
76 $s = chr($b1).chr($b2)."\xBF\xBF";
H A Dstrrchr_variation12.phpt9 "Hello".chr(0)."World",
10 chr(0)."Hello World",
11 "Hello World".chr(0),
12 chr(0).chr(0).chr(0),
H A Dstrrpos_variation12.phpt11 "Hello".chr(0)."World",
12 chr(0)."Hello World",
13 "Hello World".chr(0),
14 chr(0).chr(0).chr(0),
H A Dstripos_variation12.phpt11 "Hello".chr(0)."World",
12 chr(0)."Hello World",
13 "Hello World".chr(0),
14 chr(0).chr(0).chr(0),
H A Dbug39032.phpt6 var_dump(strcspn(chr(0),"x"));
7 var_dump(strcspn(chr(0),""));
8 var_dump(strcspn(chr(0),"qweqwe"));
9 var_dump(strcspn(chr(1),"qweqwe"));
H A Dstripos_variation13.phpt13 "Hello".chr(0)."World",
14 chr(0)."Hello World",
15 "Hello World".chr(0),
16 chr(0).chr(0).chr(0),
H A Dexplode.phpt12 echo var_export(explode("\1", "a". chr(1). "b". chr(0). "d" . chr(1) . "f" . chr(1). "1" . chr(1) .…
14 echo md5(var_export(explode("\1", "a". chr(1). "b". chr(0). "d" . chr(1) . "f" . chr(1). "1" . chr(…
H A Daddslashes_variation2.phpt50 'hello'.chr(0).'world',
51 chr(0).'hello'.chr(0),
52 chr(0).chr(0).'hello',
53 chr(0),
57 "'\\0.0.0.0'".chr(0),
58 chr(0)."'c:\php\'",
60 '"c:\php\"'.chr(0)."'",
61 '"hello"'."'world'".chr(0).'//',
/php-src/Zend/tests/
H A Dbug70124.phpt7 echo base_convert([array_search(chr(48),chr(48),chr(48),chr(48),chr(48),$f("test"))],chr(48));
16 echo base_convert([array_search(chr(48),chr(48),chr(48),chr(48),chr(48),a::y("test"))],chr(48));
24 … echo base_convert([array_search(chr(48),chr(48),chr(48),chr(48),chr(48),$a->y("test"))],chr(48));
30 … echo base_convert([array_search(chr(48),chr(48),chr(48),chr(48),chr(48),\bar\y("test"))],chr(48));
36 echo base_convert([array_search(chr(48),chr(48),chr(48),chr(48),chr(48),y("test"))],chr(48));
/php-src/ext/standard/tests/math/
H A Dbug30695.phpt14 $char = chr( 0 );
17 $char = chr( $char_code );
20 $char = ( chr(0xc0 | (($char_code >> 6) & 0x1f)) .
21 chr(0x80 | ($char_code & 0x3f)) );
24 $char = ( chr(0xe0 | (($char_code >> 12) & 0x0f)) .
25 chr(0x80 | (($char_code >> 6) & 0x3f)) .
26 chr(0x80 | ($char_code & 0x3f)) );
31 chr(0x80 | (($char_code >> 6) & 0x3f)) .
32 chr(0x80 | ($char_code & 0x3f)) );
39 chr(0x80 | ($char_code & 0x3f)) );
[all …]
/php-src/ext/fileinfo/
H A Dcreate_data_file.php12 $map[chr($i)] = sprintf('\%03o', $i);
16 $map[chr(0)] = '\0';
20 $map[chr($i)] = chr($i);
25 $map[chr(0).chr($i)] = '\000'.chr($i);
40 $chunks[count($chunks) - 1] = str_pad($chunks[count($chunks) - 1], CHUNK_SIZE, chr(0));
/php-src/ext/pcre/tests/
H A Drequest47456.phpt8 preg_match_all('/(?J)(?<chr>[ac])(?<num>\d)|(?<chr>[b])/', 'a1bc3', $m, PREG_SET_ORDER);
12 preg_match_all('/(?<chr>[ac])(?<num>\d)|(?<chr>[b])/J', 'a1bc3', $m, PREG_SET_ORDER);
21 ["chr"]=>
34 ["chr"]=>
49 ["chr"]=>
64 ["chr"]=>
77 ["chr"]=>
92 ["chr"]=>
/php-src/ext/standard/tests/network/
H A Dinet.phpt6 $packed = chr(127) . chr(0) . chr(0) . chr(1);
9 $packed = chr(255) . chr(255) . chr(255) . chr(0);
/php-src/ext/gd/tests/
H A Dcreatefromwbmp2.phpt19 fputs($fp, chr($c), 1);
24 fputs($fp, chr($c), 1);
26 fputs($fp, chr($c), 1);
27 fputs($fp, chr($c), 1);
28 fputs($fp, chr($c), 1);
30 fputs($fp, chr($c), 1);
34 fputs($fp, chr($c), 1);
38 fwrite($fp, chr($c), 1);
H A Dcreatefromwbmp2_extern.phpt19 fputs($fp, chr($c), 1);
24 fputs($fp, chr($c), 1);
26 fputs($fp, chr($c), 1);
27 fputs($fp, chr($c), 1);
28 fputs($fp, chr($c), 1);
30 fputs($fp, chr($c), 1);
34 fputs($fp, chr($c), 1);
38 fwrite($fp, chr($c), 1);
/php-src/ext/pcre/pcre2lib/
H A Dpcre2_auto_possess.c331 uint32_t chr; in get_chr_property_list() local
407 list[2] = chr; in get_chr_property_list()
415 list[2] = chr; in get_chr_property_list()
418 if (chr < 128 || (chr < 256 && !utf && !ucp)) in get_chr_property_list()
423 list[3] = (chr < 256) ? fcc[chr] : chr; in get_chr_property_list()
550 uint32_t chr; in compare_opcodes() local
1020 switch(chr) in compare_opcodes()
1028 switch(chr) in compare_opcodes()
1037 switch(chr) in compare_opcodes()
1045 switch(chr) in compare_opcodes()
[all …]
/php-src/ext/mbstring/tests/
H A Dmb_ucfirst_lcfirst.phpt12 if (mb_ucfirst(chr($i)) !== chr($i - (97 - 65))) {
13 echo "mb_ucfirst compare failed: " . chr($i) . "\n";
16 if (mb_ucfirst(chr($i)) !== chr($i)) {
17 echo "mb_ucfirst compare failed: " . chr($i) . "\n";
27 if (mb_lcfirst(chr($i)) !== chr($i + (97 - 65))) {
28 echo "mb_lcfirst compare failed: " . chr($i) . "\n";
32 if (mb_lcfirst(chr($i)) !== chr($i)) {
33 echo "mb_lcfirst compare failed: " . chr($i) . "\n";

Completed in 32 milliseconds

1234567891011