|
@@ 699-701 (lines=3) @@
|
| 696 |
|
// UTF-16 (BE) |
| 697 |
|
/** @noinspection PhpUsageOfSilenceOperatorInspection */ |
| 698 |
|
/** @noinspection SubStrUsedAsStrPosInspection */ |
| 699 |
|
if (substr($str, 0, 2) == @pack('CC', 0xfe, 0xff)) { |
| 700 |
|
$str = substr($str, 2); |
| 701 |
|
} |
| 702 |
|
|
| 703 |
|
// UTF-16 (LE) |
| 704 |
|
/** @noinspection PhpUsageOfSilenceOperatorInspection */ |
|
@@ 706-708 (lines=3) @@
|
| 703 |
|
// UTF-16 (LE) |
| 704 |
|
/** @noinspection PhpUsageOfSilenceOperatorInspection */ |
| 705 |
|
/** @noinspection SubStrUsedAsStrPosInspection */ |
| 706 |
|
if (substr($str, 0, 2) == @pack('CC', 0xff, 0xfe)) { |
| 707 |
|
$str = substr($str, 2); |
| 708 |
|
} |
| 709 |
|
|
| 710 |
|
return $str; |
| 711 |
|
} |