|
@@ -985,16 +985,16 @@ |
|
|
block discarded – undo |
|
985
|
985
|
$str = self::chr_and_parse_int($code_point); |
|
986
|
986
|
} elseif ($code_point <= 0x7FF) { |
|
987
|
987
|
$str = self::chr_and_parse_int(($code_point >> 6) + 0xC0) . |
|
988
|
|
- self::chr_and_parse_int(($code_point & 0x3F) + 0x80); |
|
|
988
|
+ self::chr_and_parse_int(($code_point & 0x3F) + 0x80); |
|
989
|
989
|
} elseif ($code_point <= 0xFFFF) { |
|
990
|
990
|
$str = self::chr_and_parse_int(($code_point >> 12) + 0xE0) . |
|
991
|
|
- self::chr_and_parse_int((($code_point >> 6) & 0x3F) + 0x80) . |
|
992
|
|
- self::chr_and_parse_int(($code_point & 0x3F) + 0x80); |
|
|
991
|
+ self::chr_and_parse_int((($code_point >> 6) & 0x3F) + 0x80) . |
|
|
992
|
+ self::chr_and_parse_int(($code_point & 0x3F) + 0x80); |
|
993
|
993
|
} else { |
|
994
|
994
|
$str = self::chr_and_parse_int(($code_point >> 18) + 0xF0) . |
|
995
|
|
- self::chr_and_parse_int((($code_point >> 12) & 0x3F) + 0x80) . |
|
996
|
|
- self::chr_and_parse_int((($code_point >> 6) & 0x3F) + 0x80) . |
|
997
|
|
- self::chr_and_parse_int(($code_point & 0x3F) + 0x80); |
|
|
995
|
+ self::chr_and_parse_int((($code_point >> 12) & 0x3F) + 0x80) . |
|
|
996
|
+ self::chr_and_parse_int((($code_point >> 6) & 0x3F) + 0x80) . |
|
|
997
|
+ self::chr_and_parse_int(($code_point & 0x3F) + 0x80); |
|
998
|
998
|
} |
|
999
|
999
|
|
|
1000
|
1000
|
if ($encoding !== 'UTF-8') { |
Please login to merge, or discard this patch.