ByteSequence.php
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * League.Csv (https://csv.thephpleague.com) |
| 5 | * |
| 6 | * (c) Ignace Nyamagana Butera <nyamsprod@gmail.com> |
| 7 | * |
| 8 | * For the full copyright and license information, please view the LICENSE |
| 9 | * file that was distributed with this source code. |
| 10 | */ |
| 11 | namespace IAWPSCOPED\League\Csv; |
| 12 | |
| 13 | /** |
| 14 | * Defines constants for common BOM sequences. |
| 15 | * @internal |
| 16 | */ |
| 17 | interface ByteSequence |
| 18 | { |
| 19 | /** |
| 20 | * UTF-8 BOM sequence. |
| 21 | */ |
| 22 | const BOM_UTF8 = ""; |
| 23 | /** |
| 24 | * UTF-16 BE BOM sequence. |
| 25 | */ |
| 26 | const BOM_UTF16_BE = "\xfe\xff"; |
| 27 | /** |
| 28 | * UTF-16 LE BOM sequence. |
| 29 | */ |
| 30 | const BOM_UTF16_LE = "\xff\xfe"; |
| 31 | /** |
| 32 | * UTF-32 BE BOM sequence. |
| 33 | */ |
| 34 | const BOM_UTF32_BE = "\x00\x00\xfe\xff"; |
| 35 | /** |
| 36 | * UTF-32 LE BOM sequence. |
| 37 | */ |
| 38 | const BOM_UTF32_LE = "\xff\xfe\x00\x00"; |
| 39 | } |
| 40 |