Lines Matching refs:code_point
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) {
100 $utf8 .= chr($code_point);
101 } elseif ($code_point <= 0xFF) {
104 } elseif ($code_point <= 0x7FF) {
106 $utf8 .= chr(0xC0 | ($code_point >> 6));
107 $utf8 .= chr(0x80 | $code_point & 0x3F);
108 } elseif ($code_point <= 0xD7FF || $code_point >= 0xE000) {
110 $utf8 .= chr(0xE0 | ($code_point >> 12));
111 $utf8 .= chr(0x80 | ($code_point >> 6) & 0x3F);
112 $utf8 .= chr(0x80 | $code_point & 0x3F);
146 * @param int $code_point
150 abstract protected function codePointToCharacter(int $code_point): string; argument