Home
last modified time | relevance | path

Searched refs:chr (Results 26 – 50 of 251) sorted by relevance

1234567891011

/php-src/ext/standard/tests/strings/
H A Dstrncasecmp_variation1.phpt10 …var_dump( strncasecmp( chr($ASCII), chr($ASCII), 1 ) ); //comparing uppercase letter with corresp…
11 …var_dump( strncasecmp( chr($ASCII), chr($ASCII + 32), 1 ) ); //comparing uppercase letter with co…
16 …var_dump( strncasecmp( chr($ASCII), chr($ASCII), 1 ) ); //comparing lowercase letter with corresp…
17 …var_dump( strncasecmp( chr($ASCII), chr($ASCII - 32), 1 ) ); //comparing lowercase letter with co…
H A Dstrncmp_variation1.phpt10 …var_dump( strncmp( chr($ASCII), chr($ASCII), 1 ) ); //comparing uppercase letters with uppercase …
11 …var_dump( strncmp( chr($ASCII), chr($ASCII + 32), 1 ) ); //comparing uppercase letters with lower…
16 …var_dump( strncmp( chr($ASCII), chr($ASCII), 1 ) ); //comparing lowercase letters with lowercase …
17 …var_dump( strncmp( chr($ASCII), chr($ASCII - 32), 1 ) ); //comparing lowercase letters with upper…
H A Dchop_variation4.phpt19 chr(0),
20 chr(0).chr(0),
21 chr(0).'hello'.chr(0),
22 'hello'.chr(0).'world'
H A Dstrspn_variation9.phpt32 chr(0).chr(0),
33 chr(0)."hello\0world".chr(0),
34 chr(0).'hello\0world'.chr(0),
35 "hello".chr(0)."world",
36 'hello'.chr(0).'world',
H A Dstrcspn_variation9.phpt32 chr(0).chr(0),
33 chr(0)."hello\0world".chr(0),
34 chr(0).'hello\0world'.chr(0),
35 "hello".chr(0)."world",
36 'hello'.chr(0).'world',
H A Dchr_variation1.phpt2 Test chr() function : usage variations - test values for $ascii argument
6 echo "*** Testing chr() function: with unexpected inputs for 'ascii' argument ***\n";
39 // loop through with each element of the $inputs array to test chr() function
43 var_dump( bin2hex(chr($input)) );
51 *** Testing chr() function: with unexpected inputs for 'ascii' argument ***
H A Dstr_pad_variation2.phpt9 $string = chr(0).chr(255).chr(128).chr(234).chr(143);
H A Dstrcspn_variation10.phpt23 chr(0).chr(0),
24 chr(0)."hello\0world".chr(0),
25 chr(0).'hello\0world'.chr(0),
26 "hello".chr(0)."world",
27 'hello'.chr(0).'world',
H A Dstrspn_variation10.phpt24 chr(0).chr(0),
25 chr(0)."hello\0world".chr(0),
26 chr(0).'hello\0world'.chr(0),
27 "hello".chr(0)."world",
28 'hello'.chr(0).'world',
H A Dbasename_basic.phpt44 array("foo".chr(0)."bar"),
45 array("/foo".chr(0)."bar"),
46 array("/foo".chr(0)."bar/"),
47 array("foo".chr(0)."bar/"),
48 array("foo".chr(0)."bar/test"),
49 array("/foo".chr(0)."bar/bar.gz", ".gz"),
50 array("/foo".chr(0)."bar/bar.gz")
H A Ddirname_basic.phpt37 "foo".chr(0)."bar",
38 "/foo".chr(0)."bar/",
39 "/foo".chr(0)."bar",
40 "foo".chr(0)."bar/",
41 "/foo".chr(0)."bar/t.gz"
H A Dbug62443.phpt5 crypt("foo", '$5$'.chr(0).'abc');
6 crypt("foo", '$6$'.chr(0).'abc');
/php-src/ext/standard/tests/file/
H A Dfnmatch_variation.phpt47 25 => chr(109).chr(97)."tch.tmp",
48 26 => chr(109).chr(97).chr(116).chr(99).chr(104).".tmp",
49 27 => chr(109).chr(97).chr(116).chr(99).chr(104).chr(46).chr(116).chr(120).chr(116),
50 28 => chr(109).chr(97).chr(116).chr(99).chr(104).".".chr(116).chr(120).chr(116),
H A Dbug72330.phpt13 $utf_1 = chr(0xD1) . chr(0x81); // U+0440;
14 $utf_2 = chr(0xD8) . chr(0x80); // U+0600
/php-src/Zend/tests/
H A Dbug70089.phpt9 chr(0)[0][] = 1;
14 unset(chr(0)[0][0]);
20 runtimetest(chr(0)[0]);
26 ++chr(0)[0];
/php-src/ext/mysqli/tests/
H A Dmysqli_real_escape_string_nobackslash.phpt31 assert("foo" . chr(0) . "bar" === "foo" . chr(0) . "bar");
32 … if ("foo" . chr(0) . "bar" !== ($tmp = mysqli_real_escape_string($link, "foo" . chr(0) . "bar")))
33 printf("[007] Expecting %s, got %s\n", "foo" . chr(0) . "bar", $tmp);
52 if ("foo\\0bar" !== ($tmp = mysqli_real_escape_string($link, "foo" . chr(0) . "bar")))
53 printf("[013] Expecting %s, got %s\n", "foo" . chr(0) . "bar", $tmp);
/php-src/ext/mbstring/tests/
H A Diso2022jp_encoding.phpt64 testValid(chr($i), "\x00" . chr($i), 'JIS');
65 …convertValidString("\x0F" . chr($i), "\x00" . chr($i), 'JIS', 'UTF-16BE', false); /* 0xF is 'Shift…
66 testValid("\x1B(B" . chr($i), "\x00" . chr($i), 'JIS');
67 testValid(chr($i), "\x00" . chr($i), 'ISO-2022-JP');
68 testValid("\x1B(B" . chr($i), "\x00" . chr($i), 'ISO-2022-JP');
74 testInvalid(chr($i), "\x00%", 'JIS');
89 $kana = chr(ord($jisx0201) - 128);
116 $testString = chr($i) . chr($j);
146 $testString = chr($i) . chr($j);
169 $escapeSequence = "\x1B" . chr($i) . chr($j);
[all …]
H A Dcp5022x_encoding.phpt77 $jisx0201Chars[chr($byte)] = pack('n', $codepoint);
131 testValid(chr($i), "\x00" . chr($i), 'CP50220');
132 testValid(chr($i), "\x00" . chr($i), 'CP50221');
133 testValid(chr($i), "\x00" . chr($i), 'CP50222');
134 testValid("\x1B(B" . chr($i), "\x00" . chr($i), 'CP50220');
135 testValid("\x1B(B" . chr($i), "\x00" . chr($i), 'CP50221');
136 testValid("\x1B(B" . chr($i), "\x00" . chr($i), 'CP50222');
137 testValid("\x0F" . chr($i), "\x00" . chr($i), 'CP50222', false); /* 0xF is 'Shift Out' code */
164 $kana = chr(ord($jisx0201) - 128);
221 $testString = chr($i) . chr($j);
[all …]
H A Diso2022kr_encoding.phpt46 testValid(chr($i), "\x00" . chr($i));
47 testValid("\x0F" . chr($i), "\x00" . chr($i)); /* 0xF is 'Shift In' code */
51 testInvalid(chr($i), "\x00%");
52 testInvalid("\x0F" . chr($i), "\x00%");
88 if (chr($i) != '$')
89 testInvalid("\x1B" . chr($i), "\x00%");
90 if (chr($i) != ')')
91 testInvalid("\x1B$" . chr($i), "\x00%");
92 if (chr($i) != 'C')
93 testInvalid("\x1B$)" . chr($i), "\x00%");
H A Diso2022jp_ms_encoding.phpt70 $jisx0201Chars[chr($byte)] = pack('N', $codepoint);
97 testValid(chr($i), "\x00\x00\x00" . chr($i), 'ISO-2022-JP-MS');
98 testValid("\x1B(B" . chr($i), "\x00\x00\x00" . chr($i), 'ISO-2022-JP-MS', false);
99 testValid("\x1B(J" . chr($i), "\x00\x00\x00" . chr($i), 'ISO-2022-JP-MS', false);
105 testInvalid(chr($i), "\x00\x00\x00%", 'ISO-2022-JP-MS');
106 testInvalid("\x1B(B" . chr($i), "\x00\x00\x00%", 'ISO-2022-JP-MS');
116 $kana = chr(ord($jisx0201) - 128);
149 $validChars[chr($i)] = chr($i);
151 $validChars[chr($i)] = $jisx0201Chars[chr($i)];
179 $validChars[chr($i)] = chr($i);
[all …]
/php-src/ext/hash/tests/
H A Dhmac-md5.phpt6 $ctx = hash_init('md5',HASH_HMAC,str_repeat(chr(0x0b), 16));
14 echo hash_hmac('md5', str_repeat(chr(0xDD), 50), str_repeat(chr(0xAA), 16)) . "\n";
/php-src/ext/phar/tests/
H A D015.phpt15 $files['a'] = array('cont'=>'a','comp'=>chr(75) . chr(4) . chr(0) /* 'a' gzdeflated */, 'flags'=>0x…
/php-src/ext/standard/tests/image/
H A Diptcembed_002.phpt29 $retval = chr(0x1C) . chr($rec) . chr($data);
30 if($length < 0x8000) { $retval .= chr($length >> 8) . chr($length & 0xFF); }
31 …se { $retval .= chr(0x80) . chr(0x04) . chr(($length >> 24) & 0xFF) . chr(($length >> 16) & 0xF…
/php-src/ext/iconv/tests/
H A Dbug51250.phpt11 var_dump(iconv_mime_decode("Illegal encoded-word: =?utf-8?B?".chr(0xA1)."?= .", $m));
12 var_dump(iconv_mime_decode("Illegal encoded-word: =?utf-8?Q?".chr(0xA1)."?= .", $m));
16 var_dump(iconv_mime_decode("Illegal encoded-word: =?utf-8?B?".chr(0xA1)."?= ."));
17 var_dump(iconv_mime_decode("Illegal encoded-word: =?utf-8?Q?".chr(0xA1)."?= ."));
/php-src/ext/mbstring/ucgendat/
H A Ductest.php89 $chr = mb_chr($code);
90 $upper = mb_strtoupper($chr);
91 $uppers[$upper][] = $chr;
92 $fold = mb_convert_case($chr, 3);
93 $folds[$fold][] = $chr;

Completed in 36 milliseconds

1234567891011