|
@@ 884-887 (lines=4) @@
|
| 881 |
|
if ($v >> 5 == 6) { // &110xxxxx 10xxxxx |
| 882 |
|
$next_byte = 0; // Tells, how many times subsequent bitmasks must rotate 6bits to the left |
| 883 |
|
$v = ($v - 192) << 6; |
| 884 |
|
} elseif ($v >> 4 == 14) { // &1110xxxx 10xxxxxx 10xxxxxx |
| 885 |
|
$next_byte = 1; |
| 886 |
|
$v = ($v - 224) << 12; |
| 887 |
|
} elseif ($v >> 3 == 30) { // &11110xxx 10xxxxxx 10xxxxxx 10xxxxxx |
| 888 |
|
$next_byte = 2; |
| 889 |
|
$v = ($v - 240) << 18; |
| 890 |
|
} elseif ($v >> 2 == 62) { // &111110xx 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx |
|
@@ 890-893 (lines=4) @@
|
| 887 |
|
} elseif ($v >> 3 == 30) { // &11110xxx 10xxxxxx 10xxxxxx 10xxxxxx |
| 888 |
|
$next_byte = 2; |
| 889 |
|
$v = ($v - 240) << 18; |
| 890 |
|
} elseif ($v >> 2 == 62) { // &111110xx 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx |
| 891 |
|
$next_byte = 3; |
| 892 |
|
$v = ($v - 248) << 24; |
| 893 |
|
} elseif ($v >> 1 == 126) { // &1111110x 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx |
| 894 |
|
$next_byte = 4; |
| 895 |
|
$v = ($v - 252) << 30; |
| 896 |
|
} else { |