|
@@ -969,16 +969,16 @@ |
|
|
block discarded – undo |
|
969
|
969
|
$str = self::chr_and_parse_int($code_point); |
|
970
|
970
|
} elseif (0x800 > $code_point) { |
|
971
|
971
|
$str = self::chr_and_parse_int(0xC0 | $code_point >> 6) . |
|
972
|
|
- self::chr_and_parse_int(0x80 | $code_point & 0x3F); |
|
|
972
|
+ self::chr_and_parse_int(0x80 | $code_point & 0x3F); |
|
973
|
973
|
} elseif (0x10000 > $code_point) { |
|
974
|
974
|
$str = self::chr_and_parse_int(0xE0 | $code_point >> 12) . |
|
975
|
|
- self::chr_and_parse_int(0x80 | $code_point >> 6 & 0x3F) . |
|
976
|
|
- self::chr_and_parse_int(0x80 | $code_point & 0x3F); |
|
|
975
|
+ self::chr_and_parse_int(0x80 | $code_point >> 6 & 0x3F) . |
|
|
976
|
+ self::chr_and_parse_int(0x80 | $code_point & 0x3F); |
|
977
|
977
|
} else { |
|
978
|
978
|
$str = self::chr_and_parse_int(0xF0 | $code_point >> 18) . |
|
979
|
|
- self::chr_and_parse_int(0x80 | $code_point >> 12 & 0x3F) . |
|
980
|
|
- self::chr_and_parse_int(0x80 | $code_point >> 6 & 0x3F) . |
|
981
|
|
- self::chr_and_parse_int(0x80 | $code_point & 0x3F); |
|
|
979
|
+ self::chr_and_parse_int(0x80 | $code_point >> 12 & 0x3F) . |
|
|
980
|
+ self::chr_and_parse_int(0x80 | $code_point >> 6 & 0x3F) . |
|
|
981
|
+ self::chr_and_parse_int(0x80 | $code_point & 0x3F); |
|
982
|
982
|
} |
|
983
|
983
|
|
|
984
|
984
|
if ($encoding !== 'UTF-8') { |
Please login to merge, or discard this patch.