forked from ruby/ruby
-
Notifications
You must be signed in to change notification settings - Fork 11
/
encdb.h
167 lines (166 loc) · 5.81 KB
/
encdb.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
ENC_DEFINE("ASCII-8BIT");
ENC_DEFINE("Big5");
ENC_DEFINE("Big5-HKSCS");
ENC_DEFINE("Big5-UAO");
ENC_DEFINE("CP949");
ENC_DEFINE("Emacs-Mule");
ENC_DEFINE("EUC-JP");
ENC_DEFINE("EUC-KR");
ENC_DEFINE("EUC-TW");
ENC_DEFINE("GB18030");
ENC_DEFINE("GBK");
ENC_DEFINE("ISO-8859-1");
ENC_DEFINE("ISO-8859-2");
ENC_DEFINE("ISO-8859-3");
ENC_DEFINE("ISO-8859-4");
ENC_DEFINE("ISO-8859-5");
ENC_DEFINE("ISO-8859-6");
ENC_DEFINE("ISO-8859-7");
ENC_DEFINE("ISO-8859-8");
ENC_DEFINE("ISO-8859-9");
ENC_DEFINE("ISO-8859-10");
ENC_DEFINE("ISO-8859-11");
ENC_DEFINE("ISO-8859-13");
ENC_DEFINE("ISO-8859-14");
ENC_DEFINE("ISO-8859-15");
ENC_DEFINE("ISO-8859-16");
ENC_DEFINE("KOI8-R");
ENC_DEFINE("KOI8-U");
ENC_DEFINE("Shift_JIS");
ENC_DEFINE("US-ASCII");
ENC_DEFINE("UTF-8");
ENC_DEFINE("UTF-16BE");
ENC_DEFINE("UTF-16LE");
ENC_DEFINE("UTF-32BE");
ENC_DEFINE("UTF-32LE");
ENC_DEFINE("Windows-1251");
ENC_ALIAS("BINARY", "ASCII-8BIT");
ENC_REPLICATE("IBM437", "ASCII-8BIT");
ENC_ALIAS("CP437", "IBM437");
ENC_REPLICATE("IBM737", "ASCII-8BIT");
ENC_ALIAS("CP737", "IBM737");
ENC_REPLICATE("IBM775", "ASCII-8BIT");
ENC_ALIAS("CP775", "IBM775");
ENC_REPLICATE("CP850", "ASCII-8BIT");
ENC_ALIAS("IBM850", "CP850");
ENC_REPLICATE("IBM852", "ASCII-8BIT");
ENC_REPLICATE("CP852", "IBM852");
ENC_REPLICATE("IBM855", "ASCII-8BIT");
ENC_REPLICATE("CP855", "IBM855");
ENC_REPLICATE("IBM857", "ASCII-8BIT");
ENC_ALIAS("CP857", "IBM857");
ENC_REPLICATE("IBM860", "ASCII-8BIT");
ENC_ALIAS("CP860", "IBM860");
ENC_REPLICATE("IBM861", "ASCII-8BIT");
ENC_ALIAS("CP861", "IBM861");
ENC_REPLICATE("IBM862", "ASCII-8BIT");
ENC_ALIAS("CP862", "IBM862");
ENC_REPLICATE("IBM863", "ASCII-8BIT");
ENC_ALIAS("CP863", "IBM863");
ENC_REPLICATE("IBM864", "ASCII-8BIT");
ENC_ALIAS("CP864", "IBM864");
ENC_REPLICATE("IBM865", "ASCII-8BIT");
ENC_ALIAS("CP865", "IBM865");
ENC_REPLICATE("IBM866", "ASCII-8BIT");
ENC_ALIAS("CP866", "IBM866");
ENC_REPLICATE("IBM869", "ASCII-8BIT");
ENC_ALIAS("CP869", "IBM869");
ENC_REPLICATE("Windows-1258", "ASCII-8BIT");
ENC_ALIAS("CP1258", "Windows-1258");
ENC_REPLICATE("GB1988", "ASCII-8BIT");
ENC_REPLICATE("macCentEuro", "ASCII-8BIT");
ENC_REPLICATE("macCroatian", "ASCII-8BIT");
ENC_REPLICATE("macCyrillic", "ASCII-8BIT");
ENC_REPLICATE("macGreek", "ASCII-8BIT");
ENC_REPLICATE("macIceland", "ASCII-8BIT");
ENC_REPLICATE("macRoman", "ASCII-8BIT");
ENC_REPLICATE("macRomania", "ASCII-8BIT");
ENC_REPLICATE("macThai", "ASCII-8BIT");
ENC_REPLICATE("macTurkish", "ASCII-8BIT");
ENC_REPLICATE("macUkraine", "ASCII-8BIT");
ENC_REPLICATE("CP950", "Big5");
ENC_SET_BASE("Big5-HKSCS", "Big5");
ENC_ALIAS("Big5-HKSCS:2008", "Big5-HKSCS");
ENC_REPLICATE("CP951", "Big5-HKSCS");
ENC_SET_BASE("Big5-UAO", "Big5");
ENC_REPLICATE("stateless-ISO-2022-JP", "Emacs-Mule");
ENC_ALIAS("eucJP", "EUC-JP") /* UI-OSF Application Platform Profile for Japanese Environment Version 1.1 */;
ENC_REPLICATE("eucJP-ms", "EUC-JP") /* TOG/JVC CDE/Motif Technical WG */;
ENC_ALIAS("euc-jp-ms", "eucJP-ms");
ENC_REPLICATE("CP51932", "EUC-JP");
ENC_ALIAS("eucKR", "EUC-KR");
ENC_ALIAS("eucTW", "EUC-TW");
ENC_ALIAS("EUC-CN", "GB2312");
ENC_ALIAS("eucCN", "GB2312");
ENC_REPLICATE("GB12345", "GB2312");
ENC_ALIAS("CP936", "GBK");
ENC_DUMMY("ISO-2022-JP");
ENC_ALIAS("ISO2022-JP", "ISO-2022-JP");
ENC_REPLICATE("ISO-2022-JP-2", "ISO-2022-JP");
ENC_ALIAS("ISO2022-JP2", "ISO-2022-JP-2");
ENC_REPLICATE("CP50220", "ISO-2022-JP");
ENC_REPLICATE("CP50221", "ISO-2022-JP");
ENC_ALIAS("ISO8859-1", "ISO-8859-1");
ENC_REPLICATE("Windows-1252", "ISO-8859-1");
ENC_ALIAS("CP1252", "Windows-1252");
ENC_ALIAS("ISO8859-2", "ISO-8859-2");
ENC_REPLICATE("Windows-1250", "ISO-8859-2");
ENC_ALIAS("CP1250", "Windows-1250");
ENC_ALIAS("ISO8859-3", "ISO-8859-3");
ENC_ALIAS("ISO8859-4", "ISO-8859-4");
ENC_ALIAS("ISO8859-5", "ISO-8859-5");
ENC_ALIAS("ISO8859-6", "ISO-8859-6");
ENC_REPLICATE("Windows-1256", "ISO-8859-6");
ENC_ALIAS("CP1256", "Windows-1256");
ENC_ALIAS("ISO8859-7", "ISO-8859-7");
ENC_REPLICATE("Windows-1253", "ISO-8859-7");
ENC_ALIAS("CP1253", "Windows-1253");
ENC_ALIAS("ISO8859-8", "ISO-8859-8");
ENC_REPLICATE("Windows-1255", "ISO-8859-8");
ENC_ALIAS("CP1255", "Windows-1255");
ENC_ALIAS("ISO8859-9", "ISO-8859-9");
ENC_REPLICATE("Windows-1254", "ISO-8859-9");
ENC_ALIAS("CP1254", "Windows-1254");
ENC_ALIAS("ISO8859-10", "ISO-8859-10");
ENC_ALIAS("ISO8859-11", "ISO-8859-11");
ENC_REPLICATE("TIS-620", "ISO-8859-11");
ENC_REPLICATE("Windows-874", "ISO-8859-11");
ENC_ALIAS("CP874", "Windows-874");
ENC_ALIAS("ISO8859-13", "ISO-8859-13");
ENC_REPLICATE("Windows-1257", "ISO-8859-13");
ENC_ALIAS("CP1257", "Windows-1257");
ENC_ALIAS("ISO8859-14", "ISO-8859-14");
ENC_ALIAS("ISO8859-15", "ISO-8859-15");
ENC_ALIAS("ISO8859-16", "ISO-8859-16");
ENC_ALIAS("CP878", "KOI8-R");
ENC_REPLICATE("Windows-31J", "Shift_JIS");
ENC_ALIAS("CP932", "Windows-31J");
ENC_ALIAS("csWindows31J", "Windows-31J") /* IANA. IE6 don't accept Windows-31J but csWindows31J. */;
ENC_ALIAS("SJIS", "Windows-31J");
ENC_ALIAS("PCK", "Windows-31J");
ENC_REPLICATE("MacJapanese", "Shift_JIS");
ENC_ALIAS("MacJapan", "MacJapanese");
ENC_ALIAS("ASCII", "US-ASCII");
ENC_ALIAS("ANSI_X3.4-1968", "US-ASCII");
ENC_ALIAS("646", "US-ASCII");
ENC_DUMMY("UTF-7");
ENC_ALIAS("CP65000", "UTF-7");
ENC_ALIAS("CP65001", "UTF-8");
ENC_REPLICATE("UTF8-MAC", "UTF-8");
ENC_ALIAS("UTF-8-MAC", "UTF8-MAC");
ENC_ALIAS("UTF-8-HFS", "UTF8-MAC") /* Emacs 23.2 */;
ENC_DUMMY("UTF-16");
ENC_DUMMY("UTF-32");
ENC_ALIAS("UCS-2BE", "UTF-16BE");
ENC_ALIAS("UCS-4BE", "UTF-32BE");
ENC_ALIAS("UCS-4LE", "UTF-32LE");
ENC_ALIAS("CP1251", "Windows-1251");
ENC_REPLICATE("UTF8-DoCoMo", "UTF-8");
ENC_REPLICATE("SJIS-DoCoMo", "Windows-31J");
ENC_REPLICATE("UTF8-KDDI", "UTF-8");
ENC_REPLICATE("SJIS-KDDI", "Windows-31J");
ENC_REPLICATE("ISO-2022-JP-KDDI", "ISO-2022-JP");
ENC_REPLICATE("stateless-ISO-2022-JP-KDDI", "stateless-ISO-2022-JP");
ENC_REPLICATE("UTF8-SoftBank", "UTF-8");
ENC_REPLICATE("SJIS-SoftBank", "Windows-31J");
#define ENCODING_COUNT 99