Home
last modified time | relevance | path

Searched refs:code_point (Results 1 – 12 of 12) sorted by relevance

/webtrees/app/Encodings/
H A DAbstractUTF16Encoding.php49 $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 DUTF16BE.php51 * @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 DUTF16LE.php51 * @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 DISO88591Test.php47 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 DISO88592Test.php47 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 DASCIITest.php40 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 DCP850Test.php39 foreach (range(0, 255) as $code_point) {
40 $character = chr($code_point);
44 … static::assertSame($expected, $actual, dechex($code_point) . '=>' . $actual . ' ' . $expected);
H A DCP437Test.php41 foreach (range(0, 255) as $code_point) {
42 $character = chr($code_point);
46 … static::assertSame($expected, $actual, dechex($code_point) . '=>' . $actual . ' ' . $expected);
H A DWindows1251Test.php41 foreach (range(0, 255) as $code_point) {
42 $character = chr($code_point);
47 … static::assertSame($expected, $actual, dechex($code_point) . '=>' . $actual . ' ' . $expected);
H A DWindows1252Test.php41 foreach (range(0, 255) as $code_point) {
42 $character = chr($code_point);
47 … static::assertSame($expected, $actual, dechex($code_point) . '=>' . $actual . ' ' . $expected);
H A DWindows1250Test.php41 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 DI18N.php511 $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]) {