ByteSequence
last analyzed

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 27
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * League.Csv (https://csv.thephpleague.com)
5
 *
6
 * (c) Ignace Nyamagana Butera <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace League\Csv;
13
14
/**
15
 * Defines constants for common BOM sequences.
16
 */
17
interface ByteSequence
18
{
19
    /**
20
     *  UTF-8 BOM sequence.
21
     */
22
    const BOM_UTF8 = "\xEF\xBB\xBF";
23
24
    /**
25
     * UTF-16 BE BOM sequence.
26
     */
27
    const BOM_UTF16_BE = "\xFE\xFF";
28
29
    /**
30
     * UTF-16 LE BOM sequence.
31
     */
32
    const BOM_UTF16_LE = "\xFF\xFE";
33
34
    /**
35
     * UTF-32 BE BOM sequence.
36
     */
37
    const BOM_UTF32_BE = "\x00\x00\xFE\xFF";
38
39
    /**
40
     * UTF-32 LE BOM sequence.
41
     */
42
    const BOM_UTF32_LE = "\xFF\xFE\x00\x00";
43
}
44