|
20 | 20 | */ |
21 | 21 | final class ECICharset{ |
22 | 22 |
|
23 | | - public const CP437 = 0; // Code page 437, DOS Latin US |
24 | | - public const ISO_IEC_8859_1_GLI = 1; // GLI encoding with characters 0 to 127 identical to ISO/IEC 646 and characters 128 to 255 identical to ISO 8859-1 |
25 | | - public const CP437_WO_GLI = 2; // An equivalent code table to CP437, without the return-to-GLI 0 logic |
26 | | - public const ISO_IEC_8859_1 = 3; // Latin-1 (Default) |
27 | | - public const ISO_IEC_8859_2 = 4; // Latin-2 |
28 | | - public const ISO_IEC_8859_3 = 5; // Latin-3 |
29 | | - public const ISO_IEC_8859_4 = 6; // Latin-4 |
30 | | - public const ISO_IEC_8859_5 = 7; // Latin/Cyrillic |
31 | | - public const ISO_IEC_8859_6 = 8; // Latin/Arabic |
32 | | - public const ISO_IEC_8859_7 = 9; // Latin/Greek |
33 | | - public const ISO_IEC_8859_8 = 10; // Latin/Hebrew |
34 | | - public const ISO_IEC_8859_9 = 11; // Latin-5 |
35 | | - public const ISO_IEC_8859_10 = 12; // Latin-6 |
36 | | - public const ISO_IEC_8859_11 = 13; // Latin/Thai |
| 23 | + public const int CP437 = 0; // Code page 437, DOS Latin US |
| 24 | + public const int ISO_IEC_8859_1_GLI = 1; // GLI encoding with characters 0 to 127 identical to ISO/IEC 646 and characters 128 to 255 identical to ISO 8859-1 |
| 25 | + public const int CP437_WO_GLI = 2; // An equivalent code table to CP437, without the return-to-GLI 0 logic |
| 26 | + public const int ISO_IEC_8859_1 = 3; // Latin-1 (Default) |
| 27 | + public const int ISO_IEC_8859_2 = 4; // Latin-2 |
| 28 | + public const int ISO_IEC_8859_3 = 5; // Latin-3 |
| 29 | + public const int ISO_IEC_8859_4 = 6; // Latin-4 |
| 30 | + public const int ISO_IEC_8859_5 = 7; // Latin/Cyrillic |
| 31 | + public const int ISO_IEC_8859_6 = 8; // Latin/Arabic |
| 32 | + public const int ISO_IEC_8859_7 = 9; // Latin/Greek |
| 33 | + public const int ISO_IEC_8859_8 = 10; // Latin/Hebrew |
| 34 | + public const int ISO_IEC_8859_9 = 11; // Latin-5 |
| 35 | + public const int ISO_IEC_8859_10 = 12; // Latin-6 |
| 36 | + public const int ISO_IEC_8859_11 = 13; // Latin/Thai |
37 | 37 | // 14 reserved |
38 | | - public const ISO_IEC_8859_13 = 15; // Latin-7 (Baltic Rim) |
39 | | - public const ISO_IEC_8859_14 = 16; // Latin-8 (Celtic) |
40 | | - public const ISO_IEC_8859_15 = 17; // Latin-9 |
41 | | - public const ISO_IEC_8859_16 = 18; // Latin-10 |
| 38 | + public const int ISO_IEC_8859_13 = 15; // Latin-7 (Baltic Rim) |
| 39 | + public const int ISO_IEC_8859_14 = 16; // Latin-8 (Celtic) |
| 40 | + public const int ISO_IEC_8859_15 = 17; // Latin-9 |
| 41 | + public const int ISO_IEC_8859_16 = 18; // Latin-10 |
42 | 42 | // 19 reserved |
43 | | - public const SHIFT_JIS = 20; // JIS X 0208 Annex 1 + JIS X 0201 |
44 | | - public const WINDOWS_1250_LATIN_2 = 21; // Superset of Latin-2, Central Europe |
45 | | - public const WINDOWS_1251_CYRILLIC = 22; // Latin/Cyrillic |
46 | | - public const WINDOWS_1252_LATIN_1 = 23; // Superset of Latin-1 |
47 | | - public const WINDOWS_1256_ARABIC = 24; |
48 | | - public const ISO_IEC_10646_UCS_2 = 25; // High order byte first (UTF-16BE) |
49 | | - public const ISO_IEC_10646_UTF_8 = 26; // UTF-8 |
50 | | - public const ISO_IEC_646_1991 = 27; // International Reference Version of ISO 7-bit coded character set (US-ASCII) |
51 | | - public const BIG5 = 28; // Big 5 (Taiwan) Chinese Character Set |
52 | | - public const GB18030 = 29; // GB (PRC) Chinese Character Set |
53 | | - public const EUC_KR = 30; // Korean Character Set |
| 43 | + public const int SHIFT_JIS = 20; // JIS X 0208 Annex 1 + JIS X 0201 |
| 44 | + public const int WINDOWS_1250_LATIN_2 = 21; // Superset of Latin-2, Central Europe |
| 45 | + public const int WINDOWS_1251_CYRILLIC = 22; // Latin/Cyrillic |
| 46 | + public const int WINDOWS_1252_LATIN_1 = 23; // Superset of Latin-1 |
| 47 | + public const int WINDOWS_1256_ARABIC = 24; |
| 48 | + public const int ISO_IEC_10646_UCS_2 = 25; // High order byte first (UTF-16BE) |
| 49 | + public const int ISO_IEC_10646_UTF_8 = 26; // UTF-8 |
| 50 | + public const int ISO_IEC_646_1991 = 27; // International Reference Version of ISO 7-bit coded character set (US-ASCII) |
| 51 | + public const int BIG5 = 28; // Big 5 (Taiwan) Chinese Character Set |
| 52 | + public const int GB18030 = 29; // GB (PRC) Chinese Character Set |
| 53 | + public const int EUC_KR = 30; // Korean Character Set |
54 | 54 |
|
55 | 55 | /** |
56 | 56 | * map of charset id -> name |
57 | 57 | * |
58 | 58 | * @see \mb_list_encodings() |
59 | 59 | */ |
60 | | - public const MB_ENCODINGS = [ |
| 60 | + public const array MB_ENCODINGS = [ |
61 | 61 | self::CP437 => null, |
62 | 62 | self::ISO_IEC_8859_1_GLI => null, |
63 | 63 | self::CP437_WO_GLI => null, |
|
0 commit comments