Lines Matching refs:code
42 foreach (range(0, 0x7F) as $code) {
43 $char = chr($code % 256) . chr(intdiv($code, 256));
47 static::assertSame($expected, $actual, 'U+' . dechex($code));
50 foreach (range(0x80, 0xFF) as $code) {
51 $char = chr($code % 256) . chr(intdiv($code, 256));
54 static::assertSame(UTF8::REPLACEMENT_CHARACTER, $actual, 'U+' . dechex($code));
57 foreach (range(0x100, 0xD7FF) as $code) {
58 $char = chr($code % 256) . chr(intdiv($code, 256));
62 static::assertSame($expected, $actual, 'U+' . dechex($code));
65 foreach (range(0xD800, 0xDFFF) as $code) {
66 $char = chr($code % 256) . chr(intdiv($code, 256));
69 static::assertSame(UTF8::REPLACEMENT_CHARACTER, $actual, 'U+' . dechex($code));
72 foreach (range(0xE000, 0xFFFF) as $code) {
73 $char = chr($code % 256) . chr(intdiv($code, 256));
77 static::assertSame($expected, $actual, 'U+' . dechex($code));