Searched refs:code_point (Results 1 – 12 of 12) sorted by relevance
/webtrees/app/Encodings/ |
H A D | AbstractUTF16Encoding.php | 49 $code_point = ord($text[$n]); 51 if ($code_point <= 0x7F) { 52 $out .= $this->codePointToCharacter($code_point); 53 } elseif ($code_point <= 0xBF) { 56 } elseif ($code_point <= 0xDF) { 63 $out .= $this->codePointToCharacter($code_point << 6 + $byte2 & 0x3F); 65 } elseif ($code_point <= 0xEF) { 73 … $out .= $this->codePointToCharacter($code_point << 12 + ($byte2 & 0x3F) << 6 + $byte3 & 0x3F); 96 $code_point = $this->characterToCodePoint($character); 98 if ($code_point <= 0x7F) { [all …]
|
H A D | UTF16BE.php | 51 * @param int $code_point 55 protected function codePointToCharacter(int $code_point): string argument 57 if ($code_point >= 0xD800 && $code_point <= 0xDFFF) { 61 return chr(intdiv($code_point, 256)) . chr($code_point % 256);
|
H A D | UTF16LE.php | 51 * @param int $code_point 55 protected function codePointToCharacter(int $code_point): string argument 57 if ($code_point >= 0xD800 && $code_point <= 0xDFFF) { 61 return chr($code_point % 256) . chr(intdiv($code_point, 256));
|
/webtrees/tests/app/Encodings/ |
H A D | ISO88591Test.php | 47 foreach (range(0x80, 0x9F) as $code_point) { 48 $character = chr($code_point); 51 … static::assertSame(UTF8::REPLACEMENT_CHARACTER, $actual, dechex($code_point) . '=>' . $actual); 55 foreach ($range as $code_point) { 56 $character = chr($code_point); 61 … static::assertSame($expected, $actual, dechex($code_point) . '=>' . $actual . ' ' . $expected);
|
H A D | ISO88592Test.php | 47 foreach (range(0x80, 0x9F) as $code_point) { 48 $character = chr($code_point); 51 … static::assertSame(UTF8::REPLACEMENT_CHARACTER, $actual, dechex($code_point) . '=>' . $actual); 55 foreach ($range as $code_point) { 56 $character = chr($code_point); 61 … static::assertSame($expected, $actual, dechex($code_point) . '=>' . $actual . ' ' . $expected);
|
H A D | ASCIITest.php | 40 foreach (range(0, 127) as $code_point) { 41 $character = chr($code_point); 48 foreach (range(128, 255) as $code_point) { 49 $character = chr($code_point);
|
H A D | CP850Test.php | 39 foreach (range(0, 255) as $code_point) { 40 $character = chr($code_point); 44 … static::assertSame($expected, $actual, dechex($code_point) . '=>' . $actual . ' ' . $expected);
|
H A D | CP437Test.php | 41 foreach (range(0, 255) as $code_point) { 42 $character = chr($code_point); 46 … static::assertSame($expected, $actual, dechex($code_point) . '=>' . $actual . ' ' . $expected);
|
H A D | Windows1251Test.php | 41 foreach (range(0, 255) as $code_point) { 42 $character = chr($code_point); 47 … static::assertSame($expected, $actual, dechex($code_point) . '=>' . $actual . ' ' . $expected);
|
H A D | Windows1252Test.php | 41 foreach (range(0, 255) as $code_point) { 42 $character = chr($code_point); 47 … static::assertSame($expected, $actual, dechex($code_point) . '=>' . $actual . ' ' . $expected);
|
H A D | Windows1250Test.php | 41 foreach (range(0, 255) as $code_point) { 42 $character = chr($code_point); 47 … static::assertSame($expected, $actual, dechex($code_point) . '=>' . $actual . ' ' . $expected);
|
/webtrees/app/ |
H A D | I18N.php | 511 $code_point = $byte1; 517 $code_point = (($byte1 & 0x1F) << 6) + (ord($string[$pos + 1]) & 0x3F); 520 …$code_point = (($byte1 & 0x0F) << 12) + ((ord($string[$pos + 1]) & 0x3F) << 6) + (ord($string[$pos… 523 …$code_point = (($byte1 & 0x07) << 24) + ((ord($string[$pos + 1]) & 0x3F) << 12) + ((ord($string[$p… 531 if ($code_point >= $range[1] && $code_point <= $range[2]) {
|