Avoid potential negative array index access to cached text.
[LibreOffice.git] / sal / textenc / tcvttcn6.tab
blob7dedf3f4d253c552033221a2e84f6e17b5f2aeab
1 /*
2  * This file is part of the LibreOffice project.
3  *
4  * This Source Code Form is subject to the terms of the Mozilla Public
5  * License, v. 2.0. If a copy of the MPL was not distributed with this
6  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7  *
8  * This file incorporates work covered by the following license notice:
9  *
10  *   Licensed to the Apache Software Foundation (ASF) under one or more
11  *   contributor license agreements. See the NOTICE file distributed
12  *   with this work for additional information regarding copyright
13  *   ownership. The ASF licenses this file to you under the Apache
14  *   License, Version 2.0 (the "License"); you may not use this file
15  *   except in compliance with the License. You may obtain a copy of
16  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
17  */
19 #include <sal/config.h>
21 #include "tenchelp.hxx"
23 /* ======================================================================= */
25 /* This file contain the information tables for all */
26 /* chinese traditional (Taiwan/HongKong) charsets: */
27 /* BIG5, MS950, APPLE_CHINTRAD */
29 /* ======================================================================= */
31 ImplDBCSToUniLeadTab const aBIG5UniLeadTab[256] =
33     { 0x0000,    0,    0, nullptr },                               /* 0x00 */
34     { 0x0001,    0,    0, nullptr },                               /* 0x01 */
35     { 0x0002,    0,    0, nullptr },                               /* 0x02 */
36     { 0x0003,    0,    0, nullptr },                               /* 0x03 */
37     { 0x0004,    0,    0, nullptr },                               /* 0x04 */
38     { 0x0005,    0,    0, nullptr },                               /* 0x05 */
39     { 0x0006,    0,    0, nullptr },                               /* 0x06 */
40     { 0x0007,    0,    0, nullptr },                               /* 0x07 */
41     { 0x0008,    0,    0, nullptr },                               /* 0x08 */
42     { 0x0009,    0,    0, nullptr },                               /* 0x09 */
43     { 0x000A,    0,    0, nullptr },                               /* 0x0A */
44     { 0x000B,    0,    0, nullptr },                               /* 0x0B */
45     { 0x000C,    0,    0, nullptr },                               /* 0x0C */
46     { 0x000D,    0,    0, nullptr },                               /* 0x0D */
47     { 0x000E,    0,    0, nullptr },                               /* 0x0E */
48     { 0x000F,    0,    0, nullptr },                               /* 0x0F */
49     { 0x0010,    0,    0, nullptr },                               /* 0x10 */
50     { 0x0011,    0,    0, nullptr },                               /* 0x11 */
51     { 0x0012,    0,    0, nullptr },                               /* 0x12 */
52     { 0x0013,    0,    0, nullptr },                               /* 0x13 */
53     { 0x0014,    0,    0, nullptr },                               /* 0x14 */
54     { 0x0015,    0,    0, nullptr },                               /* 0x15 */
55     { 0x0016,    0,    0, nullptr },                               /* 0x16 */
56     { 0x0017,    0,    0, nullptr },                               /* 0x17 */
57     { 0x0018,    0,    0, nullptr },                               /* 0x18 */
58     { 0x0019,    0,    0, nullptr },                               /* 0x19 */
59     { 0x001A,    0,    0, nullptr },                               /* 0x1A */
60     { 0x001B,    0,    0, nullptr },                               /* 0x1B */
61     { 0x001C,    0,    0, nullptr },                               /* 0x1C */
62     { 0x001D,    0,    0, nullptr },                               /* 0x1D */
63     { 0x001E,    0,    0, nullptr },                               /* 0x1E */
64     { 0x001F,    0,    0, nullptr },                               /* 0x1F */
65     { 0x0020,    0,    0, nullptr },                               /* 0x20 */
66     { 0x0021,    0,    0, nullptr },                               /* 0x21 */
67     { 0x0022,    0,    0, nullptr },                               /* 0x22 */
68     { 0x0023,    0,    0, nullptr },                               /* 0x23 */
69     { 0x0024,    0,    0, nullptr },                               /* 0x24 */
70     { 0x0025,    0,    0, nullptr },                               /* 0x25 */
71     { 0x0026,    0,    0, nullptr },                               /* 0x26 */
72     { 0x0027,    0,    0, nullptr },                               /* 0x27 */
73     { 0x0028,    0,    0, nullptr },                               /* 0x28 */
74     { 0x0029,    0,    0, nullptr },                               /* 0x29 */
75     { 0x002A,    0,    0, nullptr },                               /* 0x2A */
76     { 0x002B,    0,    0, nullptr },                               /* 0x2B */
77     { 0x002C,    0,    0, nullptr },                               /* 0x2C */
78     { 0x002D,    0,    0, nullptr },                               /* 0x2D */
79     { 0x002E,    0,    0, nullptr },                               /* 0x2E */
80     { 0x002F,    0,    0, nullptr },                               /* 0x2F */
81     { 0x0030,    0,    0, nullptr },                               /* 0x30 */
82     { 0x0031,    0,    0, nullptr },                               /* 0x31 */
83     { 0x0032,    0,    0, nullptr },                               /* 0x32 */
84     { 0x0033,    0,    0, nullptr },                               /* 0x33 */
85     { 0x0034,    0,    0, nullptr },                               /* 0x34 */
86     { 0x0035,    0,    0, nullptr },                               /* 0x35 */
87     { 0x0036,    0,    0, nullptr },                               /* 0x36 */
88     { 0x0037,    0,    0, nullptr },                               /* 0x37 */
89     { 0x0038,    0,    0, nullptr },                               /* 0x38 */
90     { 0x0039,    0,    0, nullptr },                               /* 0x39 */
91     { 0x003A,    0,    0, nullptr },                               /* 0x3A */
92     { 0x003B,    0,    0, nullptr },                               /* 0x3B */
93     { 0x003C,    0,    0, nullptr },                               /* 0x3C */
94     { 0x003D,    0,    0, nullptr },                               /* 0x3D */
95     { 0x003E,    0,    0, nullptr },                               /* 0x3E */
96     { 0x003F,    0,    0, nullptr },                               /* 0x3F */
97     { 0x0040,    0,    0, nullptr },                               /* 0x40 */
98     { 0x0041,    0,    0, nullptr },                               /* 0x41 */
99     { 0x0042,    0,    0, nullptr },                               /* 0x42 */
100     { 0x0043,    0,    0, nullptr },                               /* 0x43 */
101     { 0x0044,    0,    0, nullptr },                               /* 0x44 */
102     { 0x0045,    0,    0, nullptr },                               /* 0x45 */
103     { 0x0046,    0,    0, nullptr },                               /* 0x46 */
104     { 0x0047,    0,    0, nullptr },                               /* 0x47 */
105     { 0x0048,    0,    0, nullptr },                               /* 0x48 */
106     { 0x0049,    0,    0, nullptr },                               /* 0x49 */
107     { 0x004A,    0,    0, nullptr },                               /* 0x4A */
108     { 0x004B,    0,    0, nullptr },                               /* 0x4B */
109     { 0x004C,    0,    0, nullptr },                               /* 0x4C */
110     { 0x004D,    0,    0, nullptr },                               /* 0x4D */
111     { 0x004E,    0,    0, nullptr },                               /* 0x4E */
112     { 0x004F,    0,    0, nullptr },                               /* 0x4F */
113     { 0x0050,    0,    0, nullptr },                               /* 0x50 */
114     { 0x0051,    0,    0, nullptr },                               /* 0x51 */
115     { 0x0052,    0,    0, nullptr },                               /* 0x52 */
116     { 0x0053,    0,    0, nullptr },                               /* 0x53 */
117     { 0x0054,    0,    0, nullptr },                               /* 0x54 */
118     { 0x0055,    0,    0, nullptr },                               /* 0x55 */
119     { 0x0056,    0,    0, nullptr },                               /* 0x56 */
120     { 0x0057,    0,    0, nullptr },                               /* 0x57 */
121     { 0x0058,    0,    0, nullptr },                               /* 0x58 */
122     { 0x0059,    0,    0, nullptr },                               /* 0x59 */
123     { 0x005A,    0,    0, nullptr },                               /* 0x5A */
124     { 0x005B,    0,    0, nullptr },                               /* 0x5B */
125     { 0x005C,    0,    0, nullptr },                               /* 0x5C */
126     { 0x005D,    0,    0, nullptr },                               /* 0x5D */
127     { 0x005E,    0,    0, nullptr },                               /* 0x5E */
128     { 0x005F,    0,    0, nullptr },                               /* 0x5F */
129     { 0x0060,    0,    0, nullptr },                               /* 0x60 */
130     { 0x0061,    0,    0, nullptr },                               /* 0x61 */
131     { 0x0062,    0,    0, nullptr },                               /* 0x62 */
132     { 0x0063,    0,    0, nullptr },                               /* 0x63 */
133     { 0x0064,    0,    0, nullptr },                               /* 0x64 */
134     { 0x0065,    0,    0, nullptr },                               /* 0x65 */
135     { 0x0066,    0,    0, nullptr },                               /* 0x66 */
136     { 0x0067,    0,    0, nullptr },                               /* 0x67 */
137     { 0x0068,    0,    0, nullptr },                               /* 0x68 */
138     { 0x0069,    0,    0, nullptr },                               /* 0x69 */
139     { 0x006A,    0,    0, nullptr },                               /* 0x6A */
140     { 0x006B,    0,    0, nullptr },                               /* 0x6B */
141     { 0x006C,    0,    0, nullptr },                               /* 0x6C */
142     { 0x006D,    0,    0, nullptr },                               /* 0x6D */
143     { 0x006E,    0,    0, nullptr },                               /* 0x6E */
144     { 0x006F,    0,    0, nullptr },                               /* 0x6F */
145     { 0x0070,    0,    0, nullptr },                               /* 0x70 */
146     { 0x0071,    0,    0, nullptr },                               /* 0x71 */
147     { 0x0072,    0,    0, nullptr },                               /* 0x72 */
148     { 0x0073,    0,    0, nullptr },                               /* 0x73 */
149     { 0x0074,    0,    0, nullptr },                               /* 0x74 */
150     { 0x0075,    0,    0, nullptr },                               /* 0x75 */
151     { 0x0076,    0,    0, nullptr },                               /* 0x76 */
152     { 0x0077,    0,    0, nullptr },                               /* 0x77 */
153     { 0x0078,    0,    0, nullptr },                               /* 0x78 */
154     { 0x0079,    0,    0, nullptr },                               /* 0x79 */
155     { 0x007A,    0,    0, nullptr },                               /* 0x7A */
156     { 0x007B,    0,    0, nullptr },                               /* 0x7B */
157     { 0x007C,    0,    0, nullptr },                               /* 0x7C */
158     { 0x007D,    0,    0, nullptr },                               /* 0x7D */
159     { 0x007E,    0,    0, nullptr },                               /* 0x7E */
160     { 0x007F,    0,    0, nullptr },                               /* 0x7F */
161     {      0,    1,    0, nullptr },                               /* 0x80 */
162     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x81 */ /* We convert this as double byte */
163     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x82 */ /* We convert this as double byte */
164     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x83 */ /* We convert this as double byte */
165     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x84 */ /* We convert this as double byte */
166     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x85 */ /* We convert this as double byte */
167     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x86 */ /* We convert this as double byte */
168     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x87 */ /* We convert this as double byte */
169     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x88 */ /* We convert this as double byte */
170     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x89 */ /* We convert this as double byte */
171     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x8A */ /* We convert this as double byte */
172     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x8B */ /* We convert this as double byte */
173     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x8C */ /* We convert this as double byte */
174     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x8D */ /* We convert this as double byte */
175     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x8E */ /* We convert this as double byte */
176     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x8F */ /* We convert this as double byte */
177     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x90 */ /* We convert this as double byte */
178     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x91 */ /* We convert this as double byte */
179     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x92 */ /* We convert this as double byte */
180     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x93 */ /* We convert this as double byte */
181     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x94 */ /* We convert this as double byte */
182     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x95 */ /* We convert this as double byte */
183     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x96 */ /* We convert this as double byte */
184     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x97 */ /* We convert this as double byte */
185     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x98 */ /* We convert this as double byte */
186     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x99 */ /* We convert this as double byte */
187     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x9A */ /* We convert this as double byte */
188     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x9B */ /* We convert this as double byte */
189     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x9C */ /* We convert this as double byte */
190     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x9D */ /* We convert this as double byte */
191     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x9E */ /* We convert this as double byte */
192     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x9F */ /* We convert this as double byte */
193     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0xA0 */ /* We convert this as double byte */
194     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_A1 },          /* 0xA1 */
195     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_A2 },          /* 0xA2 */
196     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_A3 },          /* 0xA3 */
197     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_A4 },          /* 0xA4 */
198     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_A5 },          /* 0xA5 */
199     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_A6 },          /* 0xA6 */
200     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_A7 },          /* 0xA7 */
201     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_A8 },          /* 0xA8 */
202     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_A9 },          /* 0xA9 */
203     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_AA },          /* 0xAA */
204     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_AB },          /* 0xAB */
205     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_AC },          /* 0xAC */
206     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_AD },          /* 0xAD */
207     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_AE },          /* 0xAE */
208     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_AF },          /* 0xAF */
209     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_B0 },          /* 0xB0 */
210     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_B1 },          /* 0xB1 */
211     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_B2 },          /* 0xB2 */
212     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_B3 },          /* 0xB3 */
213     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_B4 },          /* 0xB4 */
214     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_B5 },          /* 0xB5 */
215     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_B6 },          /* 0xB6 */
216     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_B7 },          /* 0xB7 */
217     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_B8 },          /* 0xB8 */
218     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_B9 },          /* 0xB9 */
219     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_BA },          /* 0xBA */
220     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_BB },          /* 0xBB */
221     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_BC },          /* 0xBC */
222     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_BD },          /* 0xBD */
223     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_BE },          /* 0xBE */
224     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_BF },          /* 0xBF */
225     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_C0 },          /* 0xC0 */
226     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_C1 },          /* 0xC1 */
227     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_C2 },          /* 0xC2 */
228     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_C3 },          /* 0xC3 */
229     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_C4 },          /* 0xC4 */
230     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_C5 },          /* 0xC5 */
231     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5ONLY_C6 },      /* 0xC6 */
232     {      0, 0x40, 0xFC, aImplDBCSToUniTab_BIG5ONLY_C7 },      /* 0xC7 */
233     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0xC8 */ /* We convert this as double byte */
234     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_C9 },          /* 0xC9 */
235     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_CA },          /* 0xCA */
236     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_CB },          /* 0xCB */
237     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_CC },          /* 0xCC */
238     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_CD },          /* 0xCD */
239     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_CE },          /* 0xCE */
240     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_CF },          /* 0xCF */
241     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_D0 },          /* 0xD0 */
242     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_D1 },          /* 0xD1 */
243     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_D2 },          /* 0xD2 */
244     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_D3 },          /* 0xD3 */
245     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_D4 },          /* 0xD4 */
246     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_D5 },          /* 0xD5 */
247     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_D6 },          /* 0xD6 */
248     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_D7 },          /* 0xD7 */
249     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_D8 },          /* 0xD8 */
250     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_D9 },          /* 0xD9 */
251     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_DA },          /* 0xDA */
252     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_DB },          /* 0xDB */
253     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_DC },          /* 0xDC */
254     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_DD },          /* 0xDD */
255     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_DE },          /* 0xDE */
256     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_DF },          /* 0xDF */
257     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_E0 },          /* 0xE0 */
258     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_E1 },          /* 0xE1 */
259     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_E2 },          /* 0xE2 */
260     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_E3 },          /* 0xE3 */
261     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_E4 },          /* 0xE4 */
262     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_E5 },          /* 0xE5 */
263     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_E6 },          /* 0xE6 */
264     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_E7 },          /* 0xE7 */
265     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_E8 },          /* 0xE8 */
266     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_E9 },          /* 0xE9 */
267     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_EA },          /* 0xEA */
268     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_EB },          /* 0xEB */
269     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_EC },          /* 0xEC */
270     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_ED },          /* 0xED */
271     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_EE },          /* 0xEE */
272     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_EF },          /* 0xEF */
273     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_F0 },          /* 0xF0 */
274     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_F1 },          /* 0xF1 */
275     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_F2 },          /* 0xF2 */
276     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_F3 },          /* 0xF3 */
277     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_F4 },          /* 0xF4 */
278     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_F5 },          /* 0xF5 */
279     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_F6 },          /* 0xF6 */
280     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_F7 },          /* 0xF7 */
281     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_F8 },          /* 0xF8 */
282     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_F9 },          /* 0xF9 */
283     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0xFA */ /* We convert this as double byte */
284     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0xFB */ /* We convert this as double byte */
285     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0xFC */ /* We convert this as double byte */
286     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0xFD */ /* We convert this as double byte */
287     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0xFE */ /* We convert this as double byte */
288     {      0,    1,    0, nullptr }                                /* 0xFF */
291 /* ----------------------------------------------------------------------- */
293 ImplUniToDBCSHighTab const aBIG5DBCSHighTab[256] =
295     { 0x00, 0xF7, aImplUniToDBCSTab_BIG5_00 },                  /* 0x00 */
296     {    1,    0, nullptr },                                       /* 0x01 */
297     { 0xC7, 0xD9, aImplUniToDBCSTab_BIG5_02 },                  /* 0x02 */
298     { 0x91, 0xC9, aImplUniToDBCSTab_BIG5_03 },                  /* 0x03 */
299     { 0x01, 0x51, aImplUniToDBCSTab_BIG5_04 },                  /* 0x04 */
300     {    1,    0, nullptr },                                       /* 0x05 */
301     {    1,    0, nullptr },                                       /* 0x06 */
302     {    1,    0, nullptr },                                       /* 0x07 */
303     {    1,    0, nullptr },                                       /* 0x08 */
304     {    1,    0, nullptr },                                       /* 0x09 */
305     {    1,    0, nullptr },                                       /* 0x0A */
306     {    1,    0, nullptr },                                       /* 0x0B */
307     {    1,    0, nullptr },                                       /* 0x0C */
308     {    1,    0, nullptr },                                       /* 0x0D */
309     {    1,    0, nullptr },                                       /* 0x0E */
310     {    1,    0, nullptr },                                       /* 0x0F */
311     {    1,    0, nullptr },                                       /* 0x10 */
312     {    1,    0, nullptr },                                       /* 0x11 */
313     {    1,    0, nullptr },                                       /* 0x12 */
314     {    1,    0, nullptr },                                       /* 0x13 */
315     {    1,    0, nullptr },                                       /* 0x14 */
316     {    1,    0, nullptr },                                       /* 0x15 */
317     {    1,    0, nullptr },                                       /* 0x16 */
318     {    1,    0, nullptr },                                       /* 0x17 */
319     {    1,    0, nullptr },                                       /* 0x18 */
320     {    1,    0, nullptr },                                       /* 0x19 */
321     {    1,    0, nullptr },                                       /* 0x1A */
322     {    1,    0, nullptr },                                       /* 0x1B */
323     {    1,    0, nullptr },                                       /* 0x1C */
324     {    1,    0, nullptr },                                       /* 0x1D */
325     {    1,    0, nullptr },                                       /* 0x1E */
326     {    1,    0, nullptr },                                       /* 0x1F */
327     { 0x13, 0xAC, aImplUniToDBCSTab_BIG5_20 },                  /* 0x20 */
328     { 0x03, 0x99, aImplUniToDBCSTab_BIG5_21 },                  /* 0x21 */
329     { 0x15, 0xEF, aImplUniToDBCSTab_BIG5_22 },                  /* 0x22 */
330     {    1,    0, nullptr },                                       /* 0x23 */
331     { 0x60, 0x7D, aImplUniToDBCSTab_BIG5_24 },                  /* 0x24 */
332     { 0x00, 0xE5, aImplUniToDBCSTab_BIG5_25 },                  /* 0x25 */
333     { 0x05, 0x42, aImplUniToDBCSTab_BIG5_26 },                  /* 0x25 */
334     {    1,    0, nullptr },                                       /* 0x27 */
335     {    1,    0, nullptr },                                       /* 0x28 */
336     {    1,    0, nullptr },                                       /* 0x29 */
337     {    1,    0, nullptr },                                       /* 0x2A */
338     {    1,    0, nullptr },                                       /* 0x2B */
339     {    1,    0, nullptr },                                       /* 0x2C */
340     {    1,    0, nullptr },                                       /* 0x2D */
341     {    1,    0, nullptr },                                       /* 0x2E */
342     {    1,    0, nullptr },                                       /* 0x2F */
343     { 0x00, 0xFE, aImplUniToDBCSTab_BIG5_30 },                  /* 0x30 */
344     { 0x05, 0x29, aImplUniToDBCSTab_BIG5_31 },                  /* 0x31 */
345     { 0xA3, 0xA3, aImplUniToDBCSTab_BIG5_32 },                  /* 0x32 */
346     { 0x8E, 0xD5, aImplUniToDBCSTab_BIG5_33 },                  /* 0x33 */
347     {    1,    0, nullptr },                                       /* 0x34 */
348     {    1,    0, nullptr },                                       /* 0x35 */
349     {    1,    0, nullptr },                                       /* 0x36 */
350     {    1,    0, nullptr },                                       /* 0x37 */
351     {    1,    0, nullptr },                                       /* 0x38 */
352     {    1,    0, nullptr },                                       /* 0x39 */
353     {    1,    0, nullptr },                                       /* 0x3A */
354     {    1,    0, nullptr },                                       /* 0x3B */
355     {    1,    0, nullptr },                                       /* 0x3C */
356     {    1,    0, nullptr },                                       /* 0x3D */
357     {    1,    0, nullptr },                                       /* 0x3E */
358     {    1,    0, nullptr },                                       /* 0x3F */
359     {    1,    0, nullptr },                                       /* 0x40 */
360     {    1,    0, nullptr },                                       /* 0x41 */
361     {    1,    0, nullptr },                                       /* 0x42 */
362     {    1,    0, nullptr },                                       /* 0x43 */
363     {    1,    0, nullptr },                                       /* 0x44 */
364     {    1,    0, nullptr },                                       /* 0x45 */
365     {    1,    0, nullptr },                                       /* 0x46 */
366     {    1,    0, nullptr },                                       /* 0x47 */
367     {    1,    0, nullptr },                                       /* 0x48 */
368     {    1,    0, nullptr },                                       /* 0x49 */
369     {    1,    0, nullptr },                                       /* 0x4A */
370     {    1,    0, nullptr },                                       /* 0x4B */
371     {    1,    0, nullptr },                                       /* 0x4C */
372     {    1,    0, nullptr },                                       /* 0x4D */
373     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_4E },                  /* 0x4E */
374     { 0x00, 0xFE, aImplUniToDBCSTab_BIG5_4F },                  /* 0x4F */
375     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_50 },                  /* 0x50 */
376     { 0x00, 0xFD, aImplUniToDBCSTab_BIG5_51 },                  /* 0x51 */
377     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_52 },                  /* 0x52 */
378     { 0x05, 0xFC, aImplUniToDBCSTab_BIG5_53 },                  /* 0x53 */
379     { 0x01, 0xFF, aImplUniToDBCSTab_BIG5_54 },                  /* 0x54 */
380     { 0x01, 0xFF, aImplUniToDBCSTab_BIG5_55 },                  /* 0x55 */
381     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_56 },                  /* 0x56 */
382     { 0x01, 0xFD, aImplUniToDBCSTab_BIG5_57 },                  /* 0x57 */
383     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_58 },                  /* 0x58 */
384     { 0x03, 0xFF, aImplUniToDBCSTab_BIG5_59 },                  /* 0x59 */
385     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_5A },                  /* 0x5A */
386     { 0x01, 0xFA, aImplUniToDBCSTab_BIG5_5B },                  /* 0x5B */
387     { 0x01, 0xFF, aImplUniToDBCSTab_BIG5_5C },                  /* 0x5C */
388     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_5D },                  /* 0x5D */
389     { 0x02, 0xFF, aImplUniToDBCSTab_BIG5_5E },                  /* 0x5E */
390     { 0x01, 0xFF, aImplUniToDBCSTab_BIG5_5F },                  /* 0x5F */
391     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_60 },                  /* 0x60 */
392     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_61 },                  /* 0x61 */
393     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_62 },                  /* 0x62 */
394     { 0x00, 0xF9, aImplUniToDBCSTab_BIG5_63 },                  /* 0x63 */
395     { 0x06, 0xFF, aImplUniToDBCSTab_BIG5_64 },                  /* 0x64 */
396     { 0x00, 0xFD, aImplUniToDBCSTab_BIG5_65 },                  /* 0x65 */
397     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_66 },                  /* 0x66 */
398     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_67 },                  /* 0x67 */
399     { 0x12, 0xFD, aImplUniToDBCSTab_BIG5_68 },                  /* 0x68 */
400     { 0x04, 0xFF, aImplUniToDBCSTab_BIG5_69 },                  /* 0x69 */
401     { 0x00, 0xFC, aImplUniToDBCSTab_BIG5_6A },                  /* 0x6A */
402     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_6B },                  /* 0x6B */
403     { 0x00, 0xF9, aImplUniToDBCSTab_BIG5_6C },                  /* 0x6C */
404     { 0x00, 0xFD, aImplUniToDBCSTab_BIG5_6D },                  /* 0x6D */
405     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_6E },                  /* 0x6E */
406     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_6F },                  /* 0x6F */
407     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_70 },                  /* 0x70 */
408     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_71 },                  /* 0x71 */
409     { 0x01, 0xFF, aImplUniToDBCSTab_BIG5_72 },                  /* 0x72 */
410     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_73 },                  /* 0x73 */
411     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_74 },                  /* 0x74 */
412     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_75 },                  /* 0x75 */
413     { 0x00, 0xFE, aImplUniToDBCSTab_BIG5_76 },                  /* 0x76 */
414     { 0x01, 0xFD, aImplUniToDBCSTab_BIG5_77 },                  /* 0x77 */
415     { 0x02, 0xFF, aImplUniToDBCSTab_BIG5_78 },                  /* 0x78 */
416     { 0x01, 0xFB, aImplUniToDBCSTab_BIG5_79 },                  /* 0x79 */
417     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_7A },                  /* 0x7A */
418     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_7B },                  /* 0x7B */
419     { 0x00, 0xFE, aImplUniToDBCSTab_BIG5_7C },                  /* 0x7C */
420     { 0x00, 0xFB, aImplUniToDBCSTab_BIG5_7D },                  /* 0x7D */
421     { 0x03, 0x9C, aImplUniToDBCSTab_BIG5_7E },                  /* 0x7E */
422     { 0x36, 0xFF, aImplUniToDBCSTab_BIG5_7F },                  /* 0x7F */
423     { 0x00, 0xFE, aImplUniToDBCSTab_BIG5_80 },                  /* 0x80 */
424     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_81 },                  /* 0x81 */
425     { 0x00, 0xFE, aImplUniToDBCSTab_BIG5_82 },                  /* 0x82 */
426     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_83 },                  /* 0x83 */
427     { 0x01, 0xFF, aImplUniToDBCSTab_BIG5_84 },                  /* 0x84 */
428     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_85 },                  /* 0x85 */
429     { 0x00, 0xFE, aImplUniToDBCSTab_BIG5_86 },                  /* 0x86 */
430     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_87 },                  /* 0x87 */
431     { 0x00, 0xFE, aImplUniToDBCSTab_BIG5_88 },                  /* 0x88 */
432     { 0x01, 0xFF, aImplUniToDBCSTab_BIG5_89 },                  /* 0x89 */
433     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_8A },                  /* 0x8A */
434     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_8B },                  /* 0x8B */
435     { 0x37, 0xFE, aImplUniToDBCSTab_BIG5_8C },                  /* 0x8C */
436     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_8D },                  /* 0x8D */
437     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_8E },                  /* 0x8E */
438     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_8F },                  /* 0x8F */
439     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_90 },                  /* 0x90 */
440     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_91 },                  /* 0x91 */
441     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_92 },                  /* 0x92 */
442     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_93 },                  /* 0x93 */
443     { 0x00, 0x83, aImplUniToDBCSTab_BIG5_94 },                  /* 0x94 */
444     { 0x77, 0xE5, aImplUniToDBCSTab_BIG5_95 },                  /* 0x95 */
445     { 0x1C, 0xFF, aImplUniToDBCSTab_BIG5_96 },                  /* 0x96 */
446     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_97 },                  /* 0x97 */
447     { 0x00, 0xFE, aImplUniToDBCSTab_BIG5_98 },                  /* 0x98 */
448     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_99 },                  /* 0x99 */
449     { 0x01, 0xFE, aImplUniToDBCSTab_BIG5_9A },                  /* 0x9A */
450     { 0x01, 0xFD, aImplUniToDBCSTab_BIG5_9B },                  /* 0x9B */
451     { 0x05, 0xFF, aImplUniToDBCSTab_BIG5_9C },                  /* 0x9C */
452     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_9D },                  /* 0x9D */
453     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_9E },                  /* 0x9E */
454     { 0x00, 0xA4, aImplUniToDBCSTab_BIG5_9F },                  /* 0x9F */
455     {    1,    0, nullptr },                                       /* 0xA0 */
456     {    1,    0, nullptr },                                       /* 0xA1 */
457     {    1,    0, nullptr },                                       /* 0xA2 */
458     {    1,    0, nullptr },                                       /* 0xA3 */
459     {    1,    0, nullptr },                                       /* 0xA4 */
460     {    1,    0, nullptr },                                       /* 0xA5 */
461     {    1,    0, nullptr },                                       /* 0xA6 */
462     {    1,    0, nullptr },                                       /* 0xA7 */
463     {    1,    0, nullptr },                                       /* 0xA8 */
464     {    1,    0, nullptr },                                       /* 0xA9 */
465     {    1,    0, nullptr },                                       /* 0xAA */
466     {    1,    0, nullptr },                                       /* 0xAB */
467     {    1,    0, nullptr },                                       /* 0xAC */
468     {    1,    0, nullptr },                                       /* 0xAD */
469     {    1,    0, nullptr },                                       /* 0xAE */
470     {    1,    0, nullptr },                                       /* 0xAF */
471     {    1,    0, nullptr },                                       /* 0xB0 */
472     {    1,    0, nullptr },                                       /* 0xB1 */
473     {    1,    0, nullptr },                                       /* 0xB2 */
474     {    1,    0, nullptr },                                       /* 0xB3 */
475     {    1,    0, nullptr },                                       /* 0xB4 */
476     {    1,    0, nullptr },                                       /* 0xB5 */
477     {    1,    0, nullptr },                                       /* 0xB6 */
478     {    1,    0, nullptr },                                       /* 0xB7 */
479     {    1,    0, nullptr },                                       /* 0xB8 */
480     {    1,    0, nullptr },                                       /* 0xB9 */
481     {    1,    0, nullptr },                                       /* 0xBA */
482     {    1,    0, nullptr },                                       /* 0xBB */
483     {    1,    0, nullptr },                                       /* 0xBC */
484     {    1,    0, nullptr },                                       /* 0xBD */
485     {    1,    0, nullptr },                                       /* 0xBE */
486     {    1,    0, nullptr },                                       /* 0xBF */
487     {    1,    0, nullptr },                                       /* 0xC0 */
488     {    1,    0, nullptr },                                       /* 0xC1 */
489     {    1,    0, nullptr },                                       /* 0xC2 */
490     {    1,    0, nullptr },                                       /* 0xC3 */
491     {    1,    0, nullptr },                                       /* 0xC4 */
492     {    1,    0, nullptr },                                       /* 0xC5 */
493     {    1,    0, nullptr },                                       /* 0xC6 */
494     {    1,    0, nullptr },                                       /* 0xC7 */
495     {    1,    0, nullptr },                                       /* 0xC8 */
496     {    1,    0, nullptr },                                       /* 0xC9 */
497     {    1,    0, nullptr },                                       /* 0xCA */
498     {    1,    0, nullptr },                                       /* 0xCB */
499     {    1,    0, nullptr },                                       /* 0xCC */
500     {    1,    0, nullptr },                                       /* 0xCD */
501     {    1,    0, nullptr },                                       /* 0xCE */
502     {    1,    0, nullptr },                                       /* 0xCF */
503     {    1,    0, nullptr },                                       /* 0xD0 */
504     {    1,    0, nullptr },                                       /* 0xD1 */
505     {    1,    0, nullptr },                                       /* 0xD2 */
506     {    1,    0, nullptr },                                       /* 0xD3 */
507     {    1,    0, nullptr },                                       /* 0xD4 */
508     {    1,    0, nullptr },                                       /* 0xD5 */
509     {    1,    0, nullptr },                                       /* 0xD6 */
510     {    1,    0, nullptr },                                       /* 0xD7 */
511     {    1,    0, nullptr },                                       /* 0xD8 */
512     {    1,    0, nullptr },                                       /* 0xD9 */
513     {    1,    0, nullptr },                                       /* 0xDA */
514     {    1,    0, nullptr },                                       /* 0xDB */
515     {    1,    0, nullptr },                                       /* 0xDC */
516     {    1,    0, nullptr },                                       /* 0xDD */
517     {    1,    0, nullptr },                                       /* 0xDE */
518     {    1,    0, nullptr },                                       /* 0xDF */
519     {    1,    0, nullptr },                                       /* 0xE0 */
520     {    1,    0, nullptr },                                       /* 0xE1 */
521     {    1,    0, nullptr },                                       /* 0xE2 */
522     {    1,    0, nullptr },                                       /* 0xE3 */
523     {    1,    0, nullptr },                                       /* 0xE4 */
524     {    1,    0, nullptr },                                       /* 0xE5 */
525     {    1,    0, nullptr },                                       /* 0xE6 */
526     {    1,    0, nullptr },                                       /* 0xE7 */
527     {    1,    0, nullptr },                                       /* 0xE8 */
528     {    1,    0, nullptr },                                       /* 0xE9 */
529     {    1,    0, nullptr },                                       /* 0xEA */
530     {    1,    0, nullptr },                                       /* 0xEB */
531     {    1,    0, nullptr },                                       /* 0xEC */
532     {    1,    0, nullptr },                                       /* 0xED */
533     {    1,    0, nullptr },                                       /* 0xEE */
534     {    1,    0, nullptr },                                       /* 0xEF */
535     {    1,    0, nullptr },                                       /* 0xF0 */
536     {    1,    0, nullptr },                                       /* 0xF1 */
537     {    1,    0, nullptr },                                       /* 0xF2 */
538     {    1,    0, nullptr },                                       /* 0xF3 */
539     {    1,    0, nullptr },                                       /* 0xF4 */
540     {    1,    0, nullptr },                                       /* 0xF5 */
541     {    1,    0, nullptr },                                       /* 0xF6 */
542     {    1,    0, nullptr },                                       /* 0xF7 */
543     {    1,    0, nullptr },                                       /* 0xF8 */
544     {    1,    0, nullptr },                                       /* 0xF9 */
545     { 0x0C, 0x0D, aImplUniToDBCSTab_BIG5_FA },                  /* 0xFA */
546     {    1,    0, nullptr },                                       /* 0xFB */
547     {    1,    0, nullptr },                                       /* 0xFC */
548     {    1,    0, nullptr },                                       /* 0xFD */
549     { 0x30, 0x6B, aImplUniToDBCSTab_BIG5_FE },                  /* 0xFE */
550     { 0x01, 0xFD, aImplUniToDBCSTab_BIG5_FF }                   /* 0xFF */
553 /* ----------------------------------------------------------------------- */
555 /* FA40-FEFE --> E000-E310 */
556 /* 8E40-A0FE --> E311-EEB7 */
557 /* 8140-8DFE --> EEB8-F6B0 */
558 /* C6A1-C6FE --> F6B1-F70E */
559 /* C740-C8FE --> F70F-F848 */
561 #define DBCS_EUDC_MS950_COUNT       5
562 ImplDBCSEUDCData const aImplMS950DBCSEUDCTab[DBCS_EUDC_MS950_COUNT] =
564     /* EUDC-Range */
565     /* Lead:    FA-FE */
566     /* Trail:   40-7E, A1-FE */
567     { 0xFA, 0xFE, 0x40, 0x7E, 0xA1, 0xFE, 0, 0, 2, 0x9D, 0xE000, 0xE310 },
568     /* Lead:    8E-A0 */
569     /* Trail:   40-7E, A1-FE */
570     { 0x8E, 0xA0, 0x40, 0x7E, 0xA1, 0xFE, 0, 0, 2, 0x9D, 0xE311, 0xEEB7 },
571     /* Lead:    81-8D */
572     /* Trail:   40-7E, A1-FE */
573     { 0x81, 0x8D, 0x40, 0x7E, 0xA1, 0xFE, 0, 0, 2, 0x9D, 0xEEB8, 0xF6B0 },
574     /* Lead:    C6-C6 */
575     /* Trail:   A1-FE */
576     { 0xC6, 0xC6, 0xA1, 0xFE, 0, 0, 0, 0, 1, 0x5E, 0xF6B1, 0xF70E },
577     /* Lead:    C7-C8 */
578     /* Trail:   40-7E, A1-FE */
579     { 0xC7, 0xC8, 0x40, 0x7E, 0xA1, 0xFE, 0, 0, 2, 0x9D, 0xF70F, 0xF848 }
582 /* ----------------------------------------------------------------------- */
584 ImplDBCSConvertData const aImplBIG5DBCSCvtData =
586     aBIG5UniLeadTab,
587     aBIG5DBCSHighTab,
588     aImplMS950DBCSEUDCTab,
589     DBCS_EUDC_MS950_COUNT,
590     0x00, 0xFF,
591     0x40, 0xFE,
594 /* ----------------------------------------------------------------------- */
596 ImplTextEncodingData const aImplBIG5TextEncodingData
597     = { { &aImplBIG5DBCSCvtData,
598           ImplDBCSToUnicode,
599           ImplUnicodeToDBCS,
600           nullptr,
601           nullptr,
602           nullptr,
603           nullptr,
604           nullptr,
605           nullptr },
606         "euc-tw",
607         "big5",
608         1,
609         2,
610         2,
611         136,
612         RTL_TEXTENCODING_INFO_MULTIBYTE | RTL_TEXTENCODING_INFO_MIME };
613     /* SCRIPT_CHINESE_TRADITIONAL, pc code page 950, mac encoding 2 */
615 /* ======================================================================= */
617 ImplDBCSToUniLeadTab const aMS950UniLeadTab[256] =
619     { 0x0000,    0,    0, nullptr },                               /* 0x00 */
620     { 0x0001,    0,    0, nullptr },                               /* 0x01 */
621     { 0x0002,    0,    0, nullptr },                               /* 0x02 */
622     { 0x0003,    0,    0, nullptr },                               /* 0x03 */
623     { 0x0004,    0,    0, nullptr },                               /* 0x04 */
624     { 0x0005,    0,    0, nullptr },                               /* 0x05 */
625     { 0x0006,    0,    0, nullptr },                               /* 0x06 */
626     { 0x0007,    0,    0, nullptr },                               /* 0x07 */
627     { 0x0008,    0,    0, nullptr },                               /* 0x08 */
628     { 0x0009,    0,    0, nullptr },                               /* 0x09 */
629     { 0x000A,    0,    0, nullptr },                               /* 0x0A */
630     { 0x000B,    0,    0, nullptr },                               /* 0x0B */
631     { 0x000C,    0,    0, nullptr },                               /* 0x0C */
632     { 0x000D,    0,    0, nullptr },                               /* 0x0D */
633     { 0x000E,    0,    0, nullptr },                               /* 0x0E */
634     { 0x000F,    0,    0, nullptr },                               /* 0x0F */
635     { 0x0010,    0,    0, nullptr },                               /* 0x10 */
636     { 0x0011,    0,    0, nullptr },                               /* 0x11 */
637     { 0x0012,    0,    0, nullptr },                               /* 0x12 */
638     { 0x0013,    0,    0, nullptr },                               /* 0x13 */
639     { 0x0014,    0,    0, nullptr },                               /* 0x14 */
640     { 0x0015,    0,    0, nullptr },                               /* 0x15 */
641     { 0x0016,    0,    0, nullptr },                               /* 0x16 */
642     { 0x0017,    0,    0, nullptr },                               /* 0x17 */
643     { 0x0018,    0,    0, nullptr },                               /* 0x18 */
644     { 0x0019,    0,    0, nullptr },                               /* 0x19 */
645     { 0x001A,    0,    0, nullptr },                               /* 0x1A */
646     { 0x001B,    0,    0, nullptr },                               /* 0x1B */
647     { 0x001C,    0,    0, nullptr },                               /* 0x1C */
648     { 0x001D,    0,    0, nullptr },                               /* 0x1D */
649     { 0x001E,    0,    0, nullptr },                               /* 0x1E */
650     { 0x001F,    0,    0, nullptr },                               /* 0x1F */
651     { 0x0020,    0,    0, nullptr },                               /* 0x20 */
652     { 0x0021,    0,    0, nullptr },                               /* 0x21 */
653     { 0x0022,    0,    0, nullptr },                               /* 0x22 */
654     { 0x0023,    0,    0, nullptr },                               /* 0x23 */
655     { 0x0024,    0,    0, nullptr },                               /* 0x24 */
656     { 0x0025,    0,    0, nullptr },                               /* 0x25 */
657     { 0x0026,    0,    0, nullptr },                               /* 0x26 */
658     { 0x0027,    0,    0, nullptr },                               /* 0x27 */
659     { 0x0028,    0,    0, nullptr },                               /* 0x28 */
660     { 0x0029,    0,    0, nullptr },                               /* 0x29 */
661     { 0x002A,    0,    0, nullptr },                               /* 0x2A */
662     { 0x002B,    0,    0, nullptr },                               /* 0x2B */
663     { 0x002C,    0,    0, nullptr },                               /* 0x2C */
664     { 0x002D,    0,    0, nullptr },                               /* 0x2D */
665     { 0x002E,    0,    0, nullptr },                               /* 0x2E */
666     { 0x002F,    0,    0, nullptr },                               /* 0x2F */
667     { 0x0030,    0,    0, nullptr },                               /* 0x30 */
668     { 0x0031,    0,    0, nullptr },                               /* 0x31 */
669     { 0x0032,    0,    0, nullptr },                               /* 0x32 */
670     { 0x0033,    0,    0, nullptr },                               /* 0x33 */
671     { 0x0034,    0,    0, nullptr },                               /* 0x34 */
672     { 0x0035,    0,    0, nullptr },                               /* 0x35 */
673     { 0x0036,    0,    0, nullptr },                               /* 0x36 */
674     { 0x0037,    0,    0, nullptr },                               /* 0x37 */
675     { 0x0038,    0,    0, nullptr },                               /* 0x38 */
676     { 0x0039,    0,    0, nullptr },                               /* 0x39 */
677     { 0x003A,    0,    0, nullptr },                               /* 0x3A */
678     { 0x003B,    0,    0, nullptr },                               /* 0x3B */
679     { 0x003C,    0,    0, nullptr },                               /* 0x3C */
680     { 0x003D,    0,    0, nullptr },                               /* 0x3D */
681     { 0x003E,    0,    0, nullptr },                               /* 0x3E */
682     { 0x003F,    0,    0, nullptr },                               /* 0x3F */
683     { 0x0040,    0,    0, nullptr },                               /* 0x40 */
684     { 0x0041,    0,    0, nullptr },                               /* 0x41 */
685     { 0x0042,    0,    0, nullptr },                               /* 0x42 */
686     { 0x0043,    0,    0, nullptr },                               /* 0x43 */
687     { 0x0044,    0,    0, nullptr },                               /* 0x44 */
688     { 0x0045,    0,    0, nullptr },                               /* 0x45 */
689     { 0x0046,    0,    0, nullptr },                               /* 0x46 */
690     { 0x0047,    0,    0, nullptr },                               /* 0x47 */
691     { 0x0048,    0,    0, nullptr },                               /* 0x48 */
692     { 0x0049,    0,    0, nullptr },                               /* 0x49 */
693     { 0x004A,    0,    0, nullptr },                               /* 0x4A */
694     { 0x004B,    0,    0, nullptr },                               /* 0x4B */
695     { 0x004C,    0,    0, nullptr },                               /* 0x4C */
696     { 0x004D,    0,    0, nullptr },                               /* 0x4D */
697     { 0x004E,    0,    0, nullptr },                               /* 0x4E */
698     { 0x004F,    0,    0, nullptr },                               /* 0x4F */
699     { 0x0050,    0,    0, nullptr },                               /* 0x50 */
700     { 0x0051,    0,    0, nullptr },                               /* 0x51 */
701     { 0x0052,    0,    0, nullptr },                               /* 0x52 */
702     { 0x0053,    0,    0, nullptr },                               /* 0x53 */
703     { 0x0054,    0,    0, nullptr },                               /* 0x54 */
704     { 0x0055,    0,    0, nullptr },                               /* 0x55 */
705     { 0x0056,    0,    0, nullptr },                               /* 0x56 */
706     { 0x0057,    0,    0, nullptr },                               /* 0x57 */
707     { 0x0058,    0,    0, nullptr },                               /* 0x58 */
708     { 0x0059,    0,    0, nullptr },                               /* 0x59 */
709     { 0x005A,    0,    0, nullptr },                               /* 0x5A */
710     { 0x005B,    0,    0, nullptr },                               /* 0x5B */
711     { 0x005C,    0,    0, nullptr },                               /* 0x5C */
712     { 0x005D,    0,    0, nullptr },                               /* 0x5D */
713     { 0x005E,    0,    0, nullptr },                               /* 0x5E */
714     { 0x005F,    0,    0, nullptr },                               /* 0x5F */
715     { 0x0060,    0,    0, nullptr },                               /* 0x60 */
716     { 0x0061,    0,    0, nullptr },                               /* 0x61 */
717     { 0x0062,    0,    0, nullptr },                               /* 0x62 */
718     { 0x0063,    0,    0, nullptr },                               /* 0x63 */
719     { 0x0064,    0,    0, nullptr },                               /* 0x64 */
720     { 0x0065,    0,    0, nullptr },                               /* 0x65 */
721     { 0x0066,    0,    0, nullptr },                               /* 0x66 */
722     { 0x0067,    0,    0, nullptr },                               /* 0x67 */
723     { 0x0068,    0,    0, nullptr },                               /* 0x68 */
724     { 0x0069,    0,    0, nullptr },                               /* 0x69 */
725     { 0x006A,    0,    0, nullptr },                               /* 0x6A */
726     { 0x006B,    0,    0, nullptr },                               /* 0x6B */
727     { 0x006C,    0,    0, nullptr },                               /* 0x6C */
728     { 0x006D,    0,    0, nullptr },                               /* 0x6D */
729     { 0x006E,    0,    0, nullptr },                               /* 0x6E */
730     { 0x006F,    0,    0, nullptr },                               /* 0x6F */
731     { 0x0070,    0,    0, nullptr },                               /* 0x70 */
732     { 0x0071,    0,    0, nullptr },                               /* 0x71 */
733     { 0x0072,    0,    0, nullptr },                               /* 0x72 */
734     { 0x0073,    0,    0, nullptr },                               /* 0x73 */
735     { 0x0074,    0,    0, nullptr },                               /* 0x74 */
736     { 0x0075,    0,    0, nullptr },                               /* 0x75 */
737     { 0x0076,    0,    0, nullptr },                               /* 0x76 */
738     { 0x0077,    0,    0, nullptr },                               /* 0x77 */
739     { 0x0078,    0,    0, nullptr },                               /* 0x78 */
740     { 0x0079,    0,    0, nullptr },                               /* 0x79 */
741     { 0x007A,    0,    0, nullptr },                               /* 0x7A */
742     { 0x007B,    0,    0, nullptr },                               /* 0x7B */
743     { 0x007C,    0,    0, nullptr },                               /* 0x7C */
744     { 0x007D,    0,    0, nullptr },                               /* 0x7D */
745     { 0x007E,    0,    0, nullptr },                               /* 0x7E */
746     { 0x007F,    0,    0, nullptr },                               /* 0x7F */
747     {      0,    1,    0, nullptr },                               /* 0x80 */
748     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x81 */ /* We convert this as double byte */
749     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x82 */ /* We convert this as double byte */
750     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x83 */ /* We convert this as double byte */
751     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x84 */ /* We convert this as double byte */
752     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x85 */ /* We convert this as double byte */
753     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x86 */ /* We convert this as double byte */
754     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x87 */ /* We convert this as double byte */
755     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x88 */ /* We convert this as double byte */
756     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x89 */ /* We convert this as double byte */
757     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x8A */ /* We convert this as double byte */
758     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x8B */ /* We convert this as double byte */
759     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x8C */ /* We convert this as double byte */
760     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x8D */ /* We convert this as double byte */
761     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x8E */ /* We convert this as double byte */
762     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x8F */ /* We convert this as double byte */
763     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x90 */ /* We convert this as double byte */
764     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x91 */ /* We convert this as double byte */
765     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x92 */ /* We convert this as double byte */
766     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x93 */ /* We convert this as double byte */
767     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x94 */ /* We convert this as double byte */
768     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x95 */ /* We convert this as double byte */
769     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x96 */ /* We convert this as double byte */
770     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x97 */ /* We convert this as double byte */
771     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x98 */ /* We convert this as double byte */
772     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x99 */ /* We convert this as double byte */
773     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x9A */ /* We convert this as double byte */
774     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x9B */ /* We convert this as double byte */
775     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x9C */ /* We convert this as double byte */
776     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x9D */ /* We convert this as double byte */
777     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x9E */ /* We convert this as double byte */
778     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x9F */ /* We convert this as double byte */
779     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0xA0 */ /* We convert this as double byte */
780     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_A1 },          /* 0xA1 */
781     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_A2 },          /* 0xA2 */
782     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_A3 },          /* 0xA3 */
783     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_A4 },          /* 0xA4 */
784     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_A5 },          /* 0xA5 */
785     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_A6 },          /* 0xA6 */
786     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_A7 },          /* 0xA7 */
787     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_A8 },          /* 0xA8 */
788     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_A9 },          /* 0xA9 */
789     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_AA },          /* 0xAA */
790     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_AB },          /* 0xAB */
791     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_AC },          /* 0xAC */
792     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_AD },          /* 0xAD */
793     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_AE },          /* 0xAE */
794     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_AF },          /* 0xAF */
795     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_B0 },          /* 0xB0 */
796     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_B1 },          /* 0xB1 */
797     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_B2 },          /* 0xB2 */
798     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_B3 },          /* 0xB3 */
799     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_B4 },          /* 0xB4 */
800     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_B5 },          /* 0xB5 */
801     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_B6 },          /* 0xB6 */
802     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_B7 },          /* 0xB7 */
803     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_B8 },          /* 0xB8 */
804     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_B9 },          /* 0xB9 */
805     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_BA },          /* 0xBA */
806     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_BB },          /* 0xBB */
807     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_BC },          /* 0xBC */
808     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_BD },          /* 0xBD */
809     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_BE },          /* 0xBE */
810     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_BF },          /* 0xBF */
811     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_C0 },          /* 0xC0 */
812     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_C1 },          /* 0xC1 */
813     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_C2 },          /* 0xC2 */
814     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_C3 },          /* 0xC3 */
815     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_C4 },          /* 0xC4 */
816     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_C5 },          /* 0xC5 */
817     {      0, 0x40, 0x7E, aImplDBCSToUniTab_BIG5_C6 },          /* 0xC6 */
818     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0xC7 */ /* We convert this as double byte */
819     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0xC8 */ /* We convert this as double byte */
820     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_C9 },          /* 0xC9 */
821     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_CA },          /* 0xCA */
822     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_CB },          /* 0xCB */
823     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_CC },          /* 0xCC */
824     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_CD },          /* 0xCD */
825     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_CE },          /* 0xCE */
826     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_CF },          /* 0xCF */
827     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_D0 },          /* 0xD0 */
828     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_D1 },          /* 0xD1 */
829     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_D2 },          /* 0xD2 */
830     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_D3 },          /* 0xD3 */
831     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_D4 },          /* 0xD4 */
832     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_D5 },          /* 0xD5 */
833     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_D6 },          /* 0xD6 */
834     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_D7 },          /* 0xD7 */
835     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_D8 },          /* 0xD8 */
836     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_D9 },          /* 0xD9 */
837     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_DA },          /* 0xDA */
838     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_DB },          /* 0xDB */
839     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_DC },          /* 0xDC */
840     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_DD },          /* 0xDD */
841     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_DE },          /* 0xDE */
842     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_DF },          /* 0xDF */
843     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_E0 },          /* 0xE0 */
844     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_E1 },          /* 0xE1 */
845     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_E2 },          /* 0xE2 */
846     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_E3 },          /* 0xE3 */
847     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_E4 },          /* 0xE4 */
848     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_E5 },          /* 0xE5 */
849     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_E6 },          /* 0xE6 */
850     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_E7 },          /* 0xE7 */
851     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_E8 },          /* 0xE8 */
852     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_E9 },          /* 0xE9 */
853     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_EA },          /* 0xEA */
854     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_EB },          /* 0xEB */
855     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_EC },          /* 0xEC */
856     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_ED },          /* 0xED */
857     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_EE },          /* 0xEE */
858     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_EF },          /* 0xEF */
859     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_F0 },          /* 0xF0 */
860     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_F1 },          /* 0xF1 */
861     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_F2 },          /* 0xF2 */
862     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_F3 },          /* 0xF3 */
863     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_F4 },          /* 0xF4 */
864     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_F5 },          /* 0xF5 */
865     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_F6 },          /* 0xF6 */
866     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_F7 },          /* 0xF7 */
867     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_F8 },          /* 0xF8 */
868     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_F9 },          /* 0xF9 */
869     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0xFA */ /* We convert this as double byte */
870     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0xFB */ /* We convert this as double byte */
871     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0xFC */ /* We convert this as double byte */
872     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0xFD */ /* We convert this as double byte */
873     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0xFE */ /* We convert this as double byte */
874     {      0,    1,    0, nullptr }                                /* 0xFF */
877 /* ----------------------------------------------------------------------- */
879 ImplUniToDBCSHighTab const aMS950DBCSHighTab[256] =
881     { 0x00, 0xF7, aImplUniToDBCSTab_BIG5_00 },                  /* 0x00 */
882     {    1,    0, nullptr },                                       /* 0x01 */
883     { 0xC7, 0xD9, aImplUniToDBCSTab_BIG5_02 },                  /* 0x02 */
884     { 0x91, 0xC9, aImplUniToDBCSTab_BIG5_03 },                  /* 0x03 */
885     { 0x01, 0x51, aImplUniToDBCSTab_BIG5_04 },                  /* 0x04 */
886     {    1,    0, nullptr },                                       /* 0x05 */
887     {    1,    0, nullptr },                                       /* 0x06 */
888     {    1,    0, nullptr },                                       /* 0x07 */
889     {    1,    0, nullptr },                                       /* 0x08 */
890     {    1,    0, nullptr },                                       /* 0x09 */
891     {    1,    0, nullptr },                                       /* 0x0A */
892     {    1,    0, nullptr },                                       /* 0x0B */
893     {    1,    0, nullptr },                                       /* 0x0C */
894     {    1,    0, nullptr },                                       /* 0x0D */
895     {    1,    0, nullptr },                                       /* 0x0E */
896     {    1,    0, nullptr },                                       /* 0x0F */
897     {    1,    0, nullptr },                                       /* 0x10 */
898     {    1,    0, nullptr },                                       /* 0x11 */
899     {    1,    0, nullptr },                                       /* 0x12 */
900     {    1,    0, nullptr },                                       /* 0x13 */
901     {    1,    0, nullptr },                                       /* 0x14 */
902     {    1,    0, nullptr },                                       /* 0x15 */
903     {    1,    0, nullptr },                                       /* 0x16 */
904     {    1,    0, nullptr },                                       /* 0x17 */
905     {    1,    0, nullptr },                                       /* 0x18 */
906     {    1,    0, nullptr },                                       /* 0x19 */
907     {    1,    0, nullptr },                                       /* 0x1A */
908     {    1,    0, nullptr },                                       /* 0x1B */
909     {    1,    0, nullptr },                                       /* 0x1C */
910     {    1,    0, nullptr },                                       /* 0x1D */
911     {    1,    0, nullptr },                                       /* 0x1E */
912     {    1,    0, nullptr },                                       /* 0x1F */
913     { 0x13, 0xAC, aImplUniToDBCSTab_BIG5_20 },                  /* 0x20 */
914     { 0x03, 0x99, aImplUniToDBCSTab_BIG5_21 },                  /* 0x21 */
915     { 0x15, 0xEF, aImplUniToDBCSTab_BIG5_22 },                  /* 0x22 */
916     {    1,    0, nullptr },                                       /* 0x23 */
917     { 0x60, 0x7D, aImplUniToDBCSTab_BIG5_24 },                  /* 0x24 */
918     { 0x00, 0xE5, aImplUniToDBCSTab_BIG5_25 },                  /* 0x25 */
919     { 0x05, 0x42, aImplUniToDBCSTab_BIG5_26 },                  /* 0x25 */
920     {    1,    0, nullptr },                                       /* 0x27 */
921     {    1,    0, nullptr },                                       /* 0x28 */
922     {    1,    0, nullptr },                                       /* 0x29 */
923     {    1,    0, nullptr },                                       /* 0x2A */
924     {    1,    0, nullptr },                                       /* 0x2B */
925     {    1,    0, nullptr },                                       /* 0x2C */
926     {    1,    0, nullptr },                                       /* 0x2D */
927     {    1,    0, nullptr },                                       /* 0x2E */
928     {    1,    0, nullptr },                                       /* 0x2F */
929     { 0x00, 0xFE, aImplUniToDBCSTab_BIG5_30 },                  /* 0x30 */
930     { 0x05, 0x29, aImplUniToDBCSTab_BIG5_31 },                  /* 0x31 */
931     { 0xA3, 0xA3, aImplUniToDBCSTab_BIG5_32 },                  /* 0x32 */
932     { 0x8E, 0xD5, aImplUniToDBCSTab_BIG5_33 },                  /* 0x33 */
933     {    1,    0, nullptr },                                       /* 0x34 */
934     {    1,    0, nullptr },                                       /* 0x35 */
935     {    1,    0, nullptr },                                       /* 0x36 */
936     {    1,    0, nullptr },                                       /* 0x37 */
937     {    1,    0, nullptr },                                       /* 0x38 */
938     {    1,    0, nullptr },                                       /* 0x39 */
939     {    1,    0, nullptr },                                       /* 0x3A */
940     {    1,    0, nullptr },                                       /* 0x3B */
941     {    1,    0, nullptr },                                       /* 0x3C */
942     {    1,    0, nullptr },                                       /* 0x3D */
943     {    1,    0, nullptr },                                       /* 0x3E */
944     {    1,    0, nullptr },                                       /* 0x3F */
945     {    1,    0, nullptr },                                       /* 0x40 */
946     {    1,    0, nullptr },                                       /* 0x41 */
947     {    1,    0, nullptr },                                       /* 0x42 */
948     {    1,    0, nullptr },                                       /* 0x43 */
949     {    1,    0, nullptr },                                       /* 0x44 */
950     {    1,    0, nullptr },                                       /* 0x45 */
951     {    1,    0, nullptr },                                       /* 0x46 */
952     {    1,    0, nullptr },                                       /* 0x47 */
953     {    1,    0, nullptr },                                       /* 0x48 */
954     {    1,    0, nullptr },                                       /* 0x49 */
955     {    1,    0, nullptr },                                       /* 0x4A */
956     {    1,    0, nullptr },                                       /* 0x4B */
957     {    1,    0, nullptr },                                       /* 0x4C */
958     {    1,    0, nullptr },                                       /* 0x4D */
959     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_4E },                  /* 0x4E */
960     { 0x00, 0xFE, aImplUniToDBCSTab_BIG5_4F },                  /* 0x4F */
961     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_50 },                  /* 0x50 */
962     { 0x00, 0xFD, aImplUniToDBCSTab_BIG5_51 },                  /* 0x51 */
963     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_52 },                  /* 0x52 */
964     { 0x05, 0xFC, aImplUniToDBCSTab_BIG5_53 },                  /* 0x53 */
965     { 0x01, 0xFF, aImplUniToDBCSTab_BIG5_54 },                  /* 0x54 */
966     { 0x01, 0xFF, aImplUniToDBCSTab_BIG5_55 },                  /* 0x55 */
967     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_56 },                  /* 0x56 */
968     { 0x01, 0xFD, aImplUniToDBCSTab_BIG5_57 },                  /* 0x57 */
969     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_58 },                  /* 0x58 */
970     { 0x03, 0xFF, aImplUniToDBCSTab_BIG5_59 },                  /* 0x59 */
971     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_5A },                  /* 0x5A */
972     { 0x01, 0xFA, aImplUniToDBCSTab_BIG5_5B },                  /* 0x5B */
973     { 0x01, 0xFF, aImplUniToDBCSTab_BIG5_5C },                  /* 0x5C */
974     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_5D },                  /* 0x5D */
975     { 0x02, 0xFF, aImplUniToDBCSTab_BIG5_5E },                  /* 0x5E */
976     { 0x01, 0xFF, aImplUniToDBCSTab_BIG5_5F },                  /* 0x5F */
977     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_60 },                  /* 0x60 */
978     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_61 },                  /* 0x61 */
979     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_62 },                  /* 0x62 */
980     { 0x00, 0xF9, aImplUniToDBCSTab_BIG5_63 },                  /* 0x63 */
981     { 0x06, 0xFF, aImplUniToDBCSTab_BIG5_64 },                  /* 0x64 */
982     { 0x00, 0xFD, aImplUniToDBCSTab_BIG5_65 },                  /* 0x65 */
983     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_66 },                  /* 0x66 */
984     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_67 },                  /* 0x67 */
985     { 0x12, 0xFD, aImplUniToDBCSTab_BIG5_68 },                  /* 0x68 */
986     { 0x04, 0xFF, aImplUniToDBCSTab_BIG5_69 },                  /* 0x69 */
987     { 0x00, 0xFC, aImplUniToDBCSTab_BIG5_6A },                  /* 0x6A */
988     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_6B },                  /* 0x6B */
989     { 0x00, 0xF9, aImplUniToDBCSTab_BIG5_6C },                  /* 0x6C */
990     { 0x00, 0xFD, aImplUniToDBCSTab_BIG5_6D },                  /* 0x6D */
991     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_6E },                  /* 0x6E */
992     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_6F },                  /* 0x6F */
993     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_70 },                  /* 0x70 */
994     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_71 },                  /* 0x71 */
995     { 0x01, 0xFF, aImplUniToDBCSTab_BIG5_72 },                  /* 0x72 */
996     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_73 },                  /* 0x73 */
997     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_74 },                  /* 0x74 */
998     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_75 },                  /* 0x75 */
999     { 0x00, 0xFE, aImplUniToDBCSTab_BIG5_76 },                  /* 0x76 */
1000     { 0x01, 0xFD, aImplUniToDBCSTab_BIG5_77 },                  /* 0x77 */
1001     { 0x02, 0xFF, aImplUniToDBCSTab_BIG5_78 },                  /* 0x78 */
1002     { 0x01, 0xFB, aImplUniToDBCSTab_BIG5_79 },                  /* 0x79 */
1003     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_7A },                  /* 0x7A */
1004     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_7B },                  /* 0x7B */
1005     { 0x00, 0xFE, aImplUniToDBCSTab_BIG5_7C },                  /* 0x7C */
1006     { 0x00, 0xFB, aImplUniToDBCSTab_BIG5_7D },                  /* 0x7D */
1007     { 0x03, 0x9C, aImplUniToDBCSTab_BIG5_7E },                  /* 0x7E */
1008     { 0x36, 0xFF, aImplUniToDBCSTab_BIG5_7F },                  /* 0x7F */
1009     { 0x00, 0xFE, aImplUniToDBCSTab_BIG5_80 },                  /* 0x80 */
1010     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_81 },                  /* 0x81 */
1011     { 0x00, 0xFE, aImplUniToDBCSTab_BIG5_82 },                  /* 0x82 */
1012     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_83 },                  /* 0x83 */
1013     { 0x01, 0xFF, aImplUniToDBCSTab_BIG5_84 },                  /* 0x84 */
1014     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_85 },                  /* 0x85 */
1015     { 0x00, 0xFE, aImplUniToDBCSTab_BIG5_86 },                  /* 0x86 */
1016     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_87 },                  /* 0x87 */
1017     { 0x00, 0xFE, aImplUniToDBCSTab_BIG5_88 },                  /* 0x88 */
1018     { 0x01, 0xFF, aImplUniToDBCSTab_BIG5_89 },                  /* 0x89 */
1019     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_8A },                  /* 0x8A */
1020     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_8B },                  /* 0x8B */
1021     { 0x37, 0xFE, aImplUniToDBCSTab_BIG5_8C },                  /* 0x8C */
1022     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_8D },                  /* 0x8D */
1023     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_8E },                  /* 0x8E */
1024     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_8F },                  /* 0x8F */
1025     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_90 },                  /* 0x90 */
1026     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_91 },                  /* 0x91 */
1027     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_92 },                  /* 0x92 */
1028     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_93 },                  /* 0x93 */
1029     { 0x00, 0x83, aImplUniToDBCSTab_BIG5_94 },                  /* 0x94 */
1030     { 0x77, 0xE5, aImplUniToDBCSTab_BIG5_95 },                  /* 0x95 */
1031     { 0x1C, 0xFF, aImplUniToDBCSTab_BIG5_96 },                  /* 0x96 */
1032     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_97 },                  /* 0x97 */
1033     { 0x00, 0xFE, aImplUniToDBCSTab_BIG5_98 },                  /* 0x98 */
1034     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_99 },                  /* 0x99 */
1035     { 0x01, 0xFE, aImplUniToDBCSTab_BIG5_9A },                  /* 0x9A */
1036     { 0x01, 0xFD, aImplUniToDBCSTab_BIG5_9B },                  /* 0x9B */
1037     { 0x05, 0xFF, aImplUniToDBCSTab_BIG5_9C },                  /* 0x9C */
1038     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_9D },                  /* 0x9D */
1039     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_9E },                  /* 0x9E */
1040     { 0x00, 0xA4, aImplUniToDBCSTab_BIG5_9F },                  /* 0x9F */
1041     {    1,    0, nullptr },                                       /* 0xA0 */
1042     {    1,    0, nullptr },                                       /* 0xA1 */
1043     {    1,    0, nullptr },                                       /* 0xA2 */
1044     {    1,    0, nullptr },                                       /* 0xA3 */
1045     {    1,    0, nullptr },                                       /* 0xA4 */
1046     {    1,    0, nullptr },                                       /* 0xA5 */
1047     {    1,    0, nullptr },                                       /* 0xA6 */
1048     {    1,    0, nullptr },                                       /* 0xA7 */
1049     {    1,    0, nullptr },                                       /* 0xA8 */
1050     {    1,    0, nullptr },                                       /* 0xA9 */
1051     {    1,    0, nullptr },                                       /* 0xAA */
1052     {    1,    0, nullptr },                                       /* 0xAB */
1053     {    1,    0, nullptr },                                       /* 0xAC */
1054     {    1,    0, nullptr },                                       /* 0xAD */
1055     {    1,    0, nullptr },                                       /* 0xAE */
1056     {    1,    0, nullptr },                                       /* 0xAF */
1057     {    1,    0, nullptr },                                       /* 0xB0 */
1058     {    1,    0, nullptr },                                       /* 0xB1 */
1059     {    1,    0, nullptr },                                       /* 0xB2 */
1060     {    1,    0, nullptr },                                       /* 0xB3 */
1061     {    1,    0, nullptr },                                       /* 0xB4 */
1062     {    1,    0, nullptr },                                       /* 0xB5 */
1063     {    1,    0, nullptr },                                       /* 0xB6 */
1064     {    1,    0, nullptr },                                       /* 0xB7 */
1065     {    1,    0, nullptr },                                       /* 0xB8 */
1066     {    1,    0, nullptr },                                       /* 0xB9 */
1067     {    1,    0, nullptr },                                       /* 0xBA */
1068     {    1,    0, nullptr },                                       /* 0xBB */
1069     {    1,    0, nullptr },                                       /* 0xBC */
1070     {    1,    0, nullptr },                                       /* 0xBD */
1071     {    1,    0, nullptr },                                       /* 0xBE */
1072     {    1,    0, nullptr },                                       /* 0xBF */
1073     {    1,    0, nullptr },                                       /* 0xC0 */
1074     {    1,    0, nullptr },                                       /* 0xC1 */
1075     {    1,    0, nullptr },                                       /* 0xC2 */
1076     {    1,    0, nullptr },                                       /* 0xC3 */
1077     {    1,    0, nullptr },                                       /* 0xC4 */
1078     {    1,    0, nullptr },                                       /* 0xC5 */
1079     {    1,    0, nullptr },                                       /* 0xC6 */
1080     {    1,    0, nullptr },                                       /* 0xC7 */
1081     {    1,    0, nullptr },                                       /* 0xC8 */
1082     {    1,    0, nullptr },                                       /* 0xC9 */
1083     {    1,    0, nullptr },                                       /* 0xCA */
1084     {    1,    0, nullptr },                                       /* 0xCB */
1085     {    1,    0, nullptr },                                       /* 0xCC */
1086     {    1,    0, nullptr },                                       /* 0xCD */
1087     {    1,    0, nullptr },                                       /* 0xCE */
1088     {    1,    0, nullptr },                                       /* 0xCF */
1089     {    1,    0, nullptr },                                       /* 0xD0 */
1090     {    1,    0, nullptr },                                       /* 0xD1 */
1091     {    1,    0, nullptr },                                       /* 0xD2 */
1092     {    1,    0, nullptr },                                       /* 0xD3 */
1093     {    1,    0, nullptr },                                       /* 0xD4 */
1094     {    1,    0, nullptr },                                       /* 0xD5 */
1095     {    1,    0, nullptr },                                       /* 0xD6 */
1096     {    1,    0, nullptr },                                       /* 0xD7 */
1097     {    1,    0, nullptr },                                       /* 0xD8 */
1098     {    1,    0, nullptr },                                       /* 0xD9 */
1099     {    1,    0, nullptr },                                       /* 0xDA */
1100     {    1,    0, nullptr },                                       /* 0xDB */
1101     {    1,    0, nullptr },                                       /* 0xDC */
1102     {    1,    0, nullptr },                                       /* 0xDD */
1103     {    1,    0, nullptr },                                       /* 0xDE */
1104     {    1,    0, nullptr },                                       /* 0xDF */
1105     {    1,    0, nullptr },                                       /* 0xE0 */
1106     {    1,    0, nullptr },                                       /* 0xE1 */
1107     {    1,    0, nullptr },                                       /* 0xE2 */
1108     {    1,    0, nullptr },                                       /* 0xE3 */
1109     {    1,    0, nullptr },                                       /* 0xE4 */
1110     {    1,    0, nullptr },                                       /* 0xE5 */
1111     {    1,    0, nullptr },                                       /* 0xE6 */
1112     {    1,    0, nullptr },                                       /* 0xE7 */
1113     {    1,    0, nullptr },                                       /* 0xE8 */
1114     {    1,    0, nullptr },                                       /* 0xE9 */
1115     {    1,    0, nullptr },                                       /* 0xEA */
1116     {    1,    0, nullptr },                                       /* 0xEB */
1117     {    1,    0, nullptr },                                       /* 0xEC */
1118     {    1,    0, nullptr },                                       /* 0xED */
1119     {    1,    0, nullptr },                                       /* 0xEE */
1120     {    1,    0, nullptr },                                       /* 0xEF */
1121     {    1,    0, nullptr },                                       /* 0xF0 */
1122     {    1,    0, nullptr },                                       /* 0xF1 */
1123     {    1,    0, nullptr },                                       /* 0xF2 */
1124     {    1,    0, nullptr },                                       /* 0xF3 */
1125     {    1,    0, nullptr },                                       /* 0xF4 */
1126     {    1,    0, nullptr },                                       /* 0xF5 */
1127     {    1,    0, nullptr },                                       /* 0xF6 */
1128     {    1,    0, nullptr },                                       /* 0xF7 */
1129     {    1,    0, nullptr },                                       /* 0xF8 */
1130     {    1,    0, nullptr },                                       /* 0xF9 */
1131     { 0x0C, 0x0D, aImplUniToDBCSTab_BIG5_FA },                  /* 0xFA */
1132     {    1,    0, nullptr },                                       /* 0xFB */
1133     {    1,    0, nullptr },                                       /* 0xFC */
1134     {    1,    0, nullptr },                                       /* 0xFD */
1135     { 0x30, 0x6B, aImplUniToDBCSTab_BIG5_FE },                  /* 0xFE */
1136     { 0x01, 0xFD, aImplUniToDBCSTab_BIG5_FF }                   /* 0xFF */
1139 /* ----------------------------------------------------------------------- */
1141 ImplDBCSConvertData const aImplMS950DBCSCvtData =
1143     aMS950UniLeadTab,
1144     aMS950DBCSHighTab,
1145     aImplMS950DBCSEUDCTab,
1146     DBCS_EUDC_MS950_COUNT,
1147     0x00, 0xFF,
1148     0x40, 0xFE,
1151 /* ----------------------------------------------------------------------- */
1153 ImplTextEncodingData const aImplMS950TextEncodingData
1154     = { { &aImplMS950DBCSCvtData,
1155           ImplDBCSToUnicode,
1156           ImplUnicodeToDBCS,
1157           nullptr,
1158           nullptr,
1159           nullptr,
1160           nullptr,
1161           nullptr,
1162           nullptr },
1163         "euc-tw",
1164         "big5",
1165         1,
1166         2,
1167         2,
1168         136,
1169         RTL_TEXTENCODING_INFO_MULTIBYTE };
1170     /* WIN/DOS/OS2, SCRIPT_CHINESE_TRADITIONAL, pc code page 950, mac encoding
1171        2 */
1173 /* ======================================================================= */
1175 ImplDBCSToUniLeadTab const aAPPLECHINTRADUniLeadTab[256] =
1177     { 0x0000,    0,    0, nullptr },                               /* 0x00 */
1178     { 0x0001,    0,    0, nullptr },                               /* 0x01 */
1179     { 0x0002,    0,    0, nullptr },                               /* 0x02 */
1180     { 0x0003,    0,    0, nullptr },                               /* 0x03 */
1181     { 0x0004,    0,    0, nullptr },                               /* 0x04 */
1182     { 0x0005,    0,    0, nullptr },                               /* 0x05 */
1183     { 0x0006,    0,    0, nullptr },                               /* 0x06 */
1184     { 0x0007,    0,    0, nullptr },                               /* 0x07 */
1185     { 0x0008,    0,    0, nullptr },                               /* 0x08 */
1186     { 0x0009,    0,    0, nullptr },                               /* 0x09 */
1187     { 0x000A,    0,    0, nullptr },                               /* 0x0A */
1188     { 0x000B,    0,    0, nullptr },                               /* 0x0B */
1189     { 0x000C,    0,    0, nullptr },                               /* 0x0C */
1190     { 0x000D,    0,    0, nullptr },                               /* 0x0D */
1191     { 0x000E,    0,    0, nullptr },                               /* 0x0E */
1192     { 0x000F,    0,    0, nullptr },                               /* 0x0F */
1193     { 0x0010,    0,    0, nullptr },                               /* 0x10 */
1194     { 0x0011,    0,    0, nullptr },                               /* 0x11 */
1195     { 0x0012,    0,    0, nullptr },                               /* 0x12 */
1196     { 0x0013,    0,    0, nullptr },                               /* 0x13 */
1197     { 0x0014,    0,    0, nullptr },                               /* 0x14 */
1198     { 0x0015,    0,    0, nullptr },                               /* 0x15 */
1199     { 0x0016,    0,    0, nullptr },                               /* 0x16 */
1200     { 0x0017,    0,    0, nullptr },                               /* 0x17 */
1201     { 0x0018,    0,    0, nullptr },                               /* 0x18 */
1202     { 0x0019,    0,    0, nullptr },                               /* 0x19 */
1203     { 0x001A,    0,    0, nullptr },                               /* 0x1A */
1204     { 0x001B,    0,    0, nullptr },                               /* 0x1B */
1205     { 0x001C,    0,    0, nullptr },                               /* 0x1C */
1206     { 0x001D,    0,    0, nullptr },                               /* 0x1D */
1207     { 0x001E,    0,    0, nullptr },                               /* 0x1E */
1208     { 0x001F,    0,    0, nullptr },                               /* 0x1F */
1209     { 0x0020,    0,    0, nullptr },                               /* 0x20 */
1210     { 0x0021,    0,    0, nullptr },                               /* 0x21 */
1211     { 0x0022,    0,    0, nullptr },                               /* 0x22 */
1212     { 0x0023,    0,    0, nullptr },                               /* 0x23 */
1213     { 0x0024,    0,    0, nullptr },                               /* 0x24 */
1214     { 0x0025,    0,    0, nullptr },                               /* 0x25 */
1215     { 0x0026,    0,    0, nullptr },                               /* 0x26 */
1216     { 0x0027,    0,    0, nullptr },                               /* 0x27 */
1217     { 0x0028,    0,    0, nullptr },                               /* 0x28 */
1218     { 0x0029,    0,    0, nullptr },                               /* 0x29 */
1219     { 0x002A,    0,    0, nullptr },                               /* 0x2A */
1220     { 0x002B,    0,    0, nullptr },                               /* 0x2B */
1221     { 0x002C,    0,    0, nullptr },                               /* 0x2C */
1222     { 0x002D,    0,    0, nullptr },                               /* 0x2D */
1223     { 0x002E,    0,    0, nullptr },                               /* 0x2E */
1224     { 0x002F,    0,    0, nullptr },                               /* 0x2F */
1225     { 0x0030,    0,    0, nullptr },                               /* 0x30 */
1226     { 0x0031,    0,    0, nullptr },                               /* 0x31 */
1227     { 0x0032,    0,    0, nullptr },                               /* 0x32 */
1228     { 0x0033,    0,    0, nullptr },                               /* 0x33 */
1229     { 0x0034,    0,    0, nullptr },                               /* 0x34 */
1230     { 0x0035,    0,    0, nullptr },                               /* 0x35 */
1231     { 0x0036,    0,    0, nullptr },                               /* 0x36 */
1232     { 0x0037,    0,    0, nullptr },                               /* 0x37 */
1233     { 0x0038,    0,    0, nullptr },                               /* 0x38 */
1234     { 0x0039,    0,    0, nullptr },                               /* 0x39 */
1235     { 0x003A,    0,    0, nullptr },                               /* 0x3A */
1236     { 0x003B,    0,    0, nullptr },                               /* 0x3B */
1237     { 0x003C,    0,    0, nullptr },                               /* 0x3C */
1238     { 0x003D,    0,    0, nullptr },                               /* 0x3D */
1239     { 0x003E,    0,    0, nullptr },                               /* 0x3E */
1240     { 0x003F,    0,    0, nullptr },                               /* 0x3F */
1241     { 0x0040,    0,    0, nullptr },                               /* 0x40 */
1242     { 0x0041,    0,    0, nullptr },                               /* 0x41 */
1243     { 0x0042,    0,    0, nullptr },                               /* 0x42 */
1244     { 0x0043,    0,    0, nullptr },                               /* 0x43 */
1245     { 0x0044,    0,    0, nullptr },                               /* 0x44 */
1246     { 0x0045,    0,    0, nullptr },                               /* 0x45 */
1247     { 0x0046,    0,    0, nullptr },                               /* 0x46 */
1248     { 0x0047,    0,    0, nullptr },                               /* 0x47 */
1249     { 0x0048,    0,    0, nullptr },                               /* 0x48 */
1250     { 0x0049,    0,    0, nullptr },                               /* 0x49 */
1251     { 0x004A,    0,    0, nullptr },                               /* 0x4A */
1252     { 0x004B,    0,    0, nullptr },                               /* 0x4B */
1253     { 0x004C,    0,    0, nullptr },                               /* 0x4C */
1254     { 0x004D,    0,    0, nullptr },                               /* 0x4D */
1255     { 0x004E,    0,    0, nullptr },                               /* 0x4E */
1256     { 0x004F,    0,    0, nullptr },                               /* 0x4F */
1257     { 0x0050,    0,    0, nullptr },                               /* 0x50 */
1258     { 0x0051,    0,    0, nullptr },                               /* 0x51 */
1259     { 0x0052,    0,    0, nullptr },                               /* 0x52 */
1260     { 0x0053,    0,    0, nullptr },                               /* 0x53 */
1261     { 0x0054,    0,    0, nullptr },                               /* 0x54 */
1262     { 0x0055,    0,    0, nullptr },                               /* 0x55 */
1263     { 0x0056,    0,    0, nullptr },                               /* 0x56 */
1264     { 0x0057,    0,    0, nullptr },                               /* 0x57 */
1265     { 0x0058,    0,    0, nullptr },                               /* 0x58 */
1266     { 0x0059,    0,    0, nullptr },                               /* 0x59 */
1267     { 0x005A,    0,    0, nullptr },                               /* 0x5A */
1268     { 0x005B,    0,    0, nullptr },                               /* 0x5B */
1269     { 0x005C,    0,    0, nullptr },                               /* 0x5C */
1270     { 0x005D,    0,    0, nullptr },                               /* 0x5D */
1271     { 0x005E,    0,    0, nullptr },                               /* 0x5E */
1272     { 0x005F,    0,    0, nullptr },                               /* 0x5F */
1273     { 0x0060,    0,    0, nullptr },                               /* 0x60 */
1274     { 0x0061,    0,    0, nullptr },                               /* 0x61 */
1275     { 0x0062,    0,    0, nullptr },                               /* 0x62 */
1276     { 0x0063,    0,    0, nullptr },                               /* 0x63 */
1277     { 0x0064,    0,    0, nullptr },                               /* 0x64 */
1278     { 0x0065,    0,    0, nullptr },                               /* 0x65 */
1279     { 0x0066,    0,    0, nullptr },                               /* 0x66 */
1280     { 0x0067,    0,    0, nullptr },                               /* 0x67 */
1281     { 0x0068,    0,    0, nullptr },                               /* 0x68 */
1282     { 0x0069,    0,    0, nullptr },                               /* 0x69 */
1283     { 0x006A,    0,    0, nullptr },                               /* 0x6A */
1284     { 0x006B,    0,    0, nullptr },                               /* 0x6B */
1285     { 0x006C,    0,    0, nullptr },                               /* 0x6C */
1286     { 0x006D,    0,    0, nullptr },                               /* 0x6D */
1287     { 0x006E,    0,    0, nullptr },                               /* 0x6E */
1288     { 0x006F,    0,    0, nullptr },                               /* 0x6F */
1289     { 0x0070,    0,    0, nullptr },                               /* 0x70 */
1290     { 0x0071,    0,    0, nullptr },                               /* 0x71 */
1291     { 0x0072,    0,    0, nullptr },                               /* 0x72 */
1292     { 0x0073,    0,    0, nullptr },                               /* 0x73 */
1293     { 0x0074,    0,    0, nullptr },                               /* 0x74 */
1294     { 0x0075,    0,    0, nullptr },                               /* 0x75 */
1295     { 0x0076,    0,    0, nullptr },                               /* 0x76 */
1296     { 0x0077,    0,    0, nullptr },                               /* 0x77 */
1297     { 0x0078,    0,    0, nullptr },                               /* 0x78 */
1298     { 0x0079,    0,    0, nullptr },                               /* 0x79 */
1299     { 0x007A,    0,    0, nullptr },                               /* 0x7A */
1300     { 0x007B,    0,    0, nullptr },                               /* 0x7B */
1301     { 0x007C,    0,    0, nullptr },                               /* 0x7C */
1302     { 0x007D,    0,    0, nullptr },                               /* 0x7D */
1303     { 0x007E,    0,    0, nullptr },                               /* 0x7E */
1304     { 0x007F,    0,    0, nullptr },                               /* 0x7F */
1305     {      0,    1,    0, nullptr },                               /* 0x80 */
1306     { 0xF880,    0,    0, nullptr },                               /* 0x81 */
1307     { 0xF881,    0,    0, nullptr },                               /* 0x82 */
1308     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x83 */ /* We convert this as double byte */
1309     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x84 */ /* We convert this as double byte */
1310     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x85 */ /* We convert this as double byte */
1311     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x86 */ /* We convert this as double byte */
1312     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x87 */ /* We convert this as double byte */
1313     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x88 */ /* We convert this as double byte */
1314     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x89 */ /* We convert this as double byte */
1315     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x8A */ /* We convert this as double byte */
1316     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x8B */ /* We convert this as double byte */
1317     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x8C */ /* We convert this as double byte */
1318     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x8D */ /* We convert this as double byte */
1319     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x8E */ /* We convert this as double byte */
1320     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x8F */ /* We convert this as double byte */
1321     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x90 */ /* We convert this as double byte */
1322     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x91 */ /* We convert this as double byte */
1323     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x92 */ /* We convert this as double byte */
1324     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x93 */ /* We convert this as double byte */
1325     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x94 */ /* We convert this as double byte */
1326     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x95 */ /* We convert this as double byte */
1327     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x96 */ /* We convert this as double byte */
1328     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x97 */ /* We convert this as double byte */
1329     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x98 */ /* We convert this as double byte */
1330     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x99 */ /* We convert this as double byte */
1331     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x9A */ /* We convert this as double byte */
1332     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x9B */ /* We convert this as double byte */
1333     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x9C */ /* We convert this as double byte */
1334     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x9D */ /* We convert this as double byte */
1335     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x9E */ /* We convert this as double byte */
1336     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0x9F */ /* We convert this as double byte */
1337     { 0x00A0,    0,    0, nullptr },                               /* 0xA0 */
1338     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_A1 },          /* 0xA1 */
1339     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_A2 },          /* 0xA2 */
1340     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_A3 },          /* 0xA3 */
1341     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_A4 },          /* 0xA4 */
1342     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_A5 },          /* 0xA5 */
1343     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_A6 },          /* 0xA6 */
1344     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_A7 },          /* 0xA7 */
1345     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_A8 },          /* 0xA8 */
1346     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_A9 },          /* 0xA9 */
1347     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_AA },          /* 0xAA */
1348     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_AB },          /* 0xAB */
1349     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_AC },          /* 0xAC */
1350     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_AD },          /* 0xAD */
1351     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_AE },          /* 0xAE */
1352     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_AF },          /* 0xAF */
1353     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_B0 },          /* 0xB0 */
1354     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_B1 },          /* 0xB1 */
1355     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_B2 },          /* 0xB2 */
1356     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_B3 },          /* 0xB3 */
1357     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_B4 },          /* 0xB4 */
1358     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_B5 },          /* 0xB5 */
1359     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_B6 },          /* 0xB6 */
1360     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_B7 },          /* 0xB7 */
1361     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_B8 },          /* 0xB8 */
1362     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_B9 },          /* 0xB9 */
1363     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_BA },          /* 0xBA */
1364     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_BB },          /* 0xBB */
1365     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_BC },          /* 0xBC */
1366     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_BD },          /* 0xBD */
1367     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_BE },          /* 0xBE */
1368     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_BF },          /* 0xBF */
1369     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_C0 },          /* 0xC0 */
1370     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_C1 },          /* 0xC1 */
1371     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_C2 },          /* 0xC2 */
1372     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_C3 },          /* 0xC3 */
1373     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_C4 },          /* 0xC4 */
1374     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_C5 },          /* 0xC5 */
1375     {      0, 0x40, 0x7E, aImplDBCSToUniTab_BIG5_C6 },          /* 0xC6 */
1376     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0xC7 */ /* We convert this as double byte */
1377     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0xC8 */ /* We convert this as double byte */
1378     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_C9 },          /* 0xC9 */
1379     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_CA },          /* 0xCA */
1380     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_CB },          /* 0xCB */
1381     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_CC },          /* 0xCC */
1382     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_CD },          /* 0xCD */
1383     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_CE },          /* 0xCE */
1384     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_CF },          /* 0xCF */
1385     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_D0 },          /* 0xD0 */
1386     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_D1 },          /* 0xD1 */
1387     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_D2 },          /* 0xD2 */
1388     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_D3 },          /* 0xD3 */
1389     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_D4 },          /* 0xD4 */
1390     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_D5 },          /* 0xD5 */
1391     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_D6 },          /* 0xD6 */
1392     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_D7 },          /* 0xD7 */
1393     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_D8 },          /* 0xD8 */
1394     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_D9 },          /* 0xD9 */
1395     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_DA },          /* 0xDA */
1396     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_DB },          /* 0xDB */
1397     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_DC },          /* 0xDC */
1398     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_DD },          /* 0xDD */
1399     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_DE },          /* 0xDE */
1400     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_DF },          /* 0xDF */
1401     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_E0 },          /* 0xE0 */
1402     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_E1 },          /* 0xE1 */
1403     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_E2 },          /* 0xE2 */
1404     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_E3 },          /* 0xE3 */
1405     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_E4 },          /* 0xE4 */
1406     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_E5 },          /* 0xE5 */
1407     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_E6 },          /* 0xE6 */
1408     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_E7 },          /* 0xE7 */
1409     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_E8 },          /* 0xE8 */
1410     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_E9 },          /* 0xE9 */
1411     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_EA },          /* 0xEA */
1412     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_EB },          /* 0xEB */
1413     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_EC },          /* 0xEC */
1414     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_ED },          /* 0xED */
1415     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_EE },          /* 0xEE */
1416     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_EF },          /* 0xEF */
1417     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_F0 },          /* 0xF0 */
1418     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_F1 },          /* 0xF1 */
1419     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_F2 },          /* 0xF2 */
1420     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_F3 },          /* 0xF3 */
1421     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_F4 },          /* 0xF4 */
1422     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_F5 },          /* 0xF5 */
1423     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_F6 },          /* 0xF6 */
1424     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_F7 },          /* 0xF7 */
1425     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_F8 },          /* 0xF8 */
1426     {      0, 0x40, 0xFE, aImplDBCSToUniTab_BIG5_F9 },          /* 0xF9 */
1427     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0xFA */ /* We convert this as double byte */
1428     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0xFB */ /* We convert this as double byte */
1429     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0xFC */ /* We convert this as double byte */
1430     { 0x00A9,    0,    0, nullptr },                               /* 0xFD */
1431     { 0x2122,    0,    0, nullptr },                               /* 0xFE */
1432     { 0x2026,    0,    0, nullptr }                                /* 0xFF */
1435 /* ----------------------------------------------------------------------- */
1437 ImplUniToDBCSHighTab const aAPPLECHINTRADDBCSHighTab[256] =
1439     { 0x00, 0xF7, aImplUniToDBCSTab_APPLECHINTRAD_00 },           /* 0x00 */
1440     {    1,    0, nullptr },                                       /* 0x01 */
1441     { 0xC7, 0xD9, aImplUniToDBCSTab_BIG5_02 },                  /* 0x02 */
1442     { 0x91, 0xC9, aImplUniToDBCSTab_BIG5_03 },                  /* 0x03 */
1443     { 0x01, 0x51, aImplUniToDBCSTab_BIG5_04 },                  /* 0x04 */
1444     {    1,    0, nullptr },                                       /* 0x05 */
1445     {    1,    0, nullptr },                                       /* 0x06 */
1446     {    1,    0, nullptr },                                       /* 0x07 */
1447     {    1,    0, nullptr },                                       /* 0x08 */
1448     {    1,    0, nullptr },                                       /* 0x09 */
1449     {    1,    0, nullptr },                                       /* 0x0A */
1450     {    1,    0, nullptr },                                       /* 0x0B */
1451     {    1,    0, nullptr },                                       /* 0x0C */
1452     {    1,    0, nullptr },                                       /* 0x0D */
1453     {    1,    0, nullptr },                                       /* 0x0E */
1454     {    1,    0, nullptr },                                       /* 0x0F */
1455     {    1,    0, nullptr },                                       /* 0x10 */
1456     {    1,    0, nullptr },                                       /* 0x11 */
1457     {    1,    0, nullptr },                                       /* 0x12 */
1458     {    1,    0, nullptr },                                       /* 0x13 */
1459     {    1,    0, nullptr },                                       /* 0x14 */
1460     {    1,    0, nullptr },                                       /* 0x15 */
1461     {    1,    0, nullptr },                                       /* 0x16 */
1462     {    1,    0, nullptr },                                       /* 0x17 */
1463     {    1,    0, nullptr },                                       /* 0x18 */
1464     {    1,    0, nullptr },                                       /* 0x19 */
1465     {    1,    0, nullptr },                                       /* 0x1A */
1466     {    1,    0, nullptr },                                       /* 0x1B */
1467     {    1,    0, nullptr },                                       /* 0x1C */
1468     {    1,    0, nullptr },                                       /* 0x1D */
1469     {    1,    0, nullptr },                                       /* 0x1E */
1470     {    1,    0, nullptr },                                       /* 0x1F */
1471     { 0x13, 0xAC, aImplUniToDBCSTab_BIG5_20 },                  /* 0x20 */
1472     { 0x03, 0x99, aImplUniToDBCSTab_APPLECHINTRAD_21 },         /* 0x21 */
1473     { 0x15, 0xEF, aImplUniToDBCSTab_BIG5_22 },                  /* 0x22 */
1474     {    1,    0, nullptr },                                       /* 0x23 */
1475     { 0x60, 0x7D, aImplUniToDBCSTab_BIG5_24 },                  /* 0x24 */
1476     { 0x00, 0xE5, aImplUniToDBCSTab_BIG5_25 },                  /* 0x25 */
1477     { 0x05, 0x42, aImplUniToDBCSTab_BIG5_26 },                  /* 0x25 */
1478     {    1,    0, nullptr },                                       /* 0x27 */
1479     {    1,    0, nullptr },                                       /* 0x28 */
1480     {    1,    0, nullptr },                                       /* 0x29 */
1481     {    1,    0, nullptr },                                       /* 0x2A */
1482     {    1,    0, nullptr },                                       /* 0x2B */
1483     {    1,    0, nullptr },                                       /* 0x2C */
1484     {    1,    0, nullptr },                                       /* 0x2D */
1485     {    1,    0, nullptr },                                       /* 0x2E */
1486     {    1,    0, nullptr },                                       /* 0x2F */
1487     { 0x00, 0xFE, aImplUniToDBCSTab_BIG5_30 },                  /* 0x30 */
1488     { 0x05, 0x29, aImplUniToDBCSTab_BIG5_31 },                  /* 0x31 */
1489     { 0xA3, 0xA3, aImplUniToDBCSTab_BIG5_32 },                  /* 0x32 */
1490     { 0x8E, 0xD5, aImplUniToDBCSTab_BIG5_33 },                  /* 0x33 */
1491     {    1,    0, nullptr },                                       /* 0x34 */
1492     {    1,    0, nullptr },                                       /* 0x35 */
1493     {    1,    0, nullptr },                                       /* 0x36 */
1494     {    1,    0, nullptr },                                       /* 0x37 */
1495     {    1,    0, nullptr },                                       /* 0x38 */
1496     {    1,    0, nullptr },                                       /* 0x39 */
1497     {    1,    0, nullptr },                                       /* 0x3A */
1498     {    1,    0, nullptr },                                       /* 0x3B */
1499     {    1,    0, nullptr },                                       /* 0x3C */
1500     {    1,    0, nullptr },                                       /* 0x3D */
1501     {    1,    0, nullptr },                                       /* 0x3E */
1502     {    1,    0, nullptr },                                       /* 0x3F */
1503     {    1,    0, nullptr },                                       /* 0x40 */
1504     {    1,    0, nullptr },                                       /* 0x41 */
1505     {    1,    0, nullptr },                                       /* 0x42 */
1506     {    1,    0, nullptr },                                       /* 0x43 */
1507     {    1,    0, nullptr },                                       /* 0x44 */
1508     {    1,    0, nullptr },                                       /* 0x45 */
1509     {    1,    0, nullptr },                                       /* 0x46 */
1510     {    1,    0, nullptr },                                       /* 0x47 */
1511     {    1,    0, nullptr },                                       /* 0x48 */
1512     {    1,    0, nullptr },                                       /* 0x49 */
1513     {    1,    0, nullptr },                                       /* 0x4A */
1514     {    1,    0, nullptr },                                       /* 0x4B */
1515     {    1,    0, nullptr },                                       /* 0x4C */
1516     {    1,    0, nullptr },                                       /* 0x4D */
1517     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_4E },                  /* 0x4E */
1518     { 0x00, 0xFE, aImplUniToDBCSTab_BIG5_4F },                  /* 0x4F */
1519     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_50 },                  /* 0x50 */
1520     { 0x00, 0xFD, aImplUniToDBCSTab_BIG5_51 },                  /* 0x51 */
1521     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_52 },                  /* 0x52 */
1522     { 0x05, 0xFC, aImplUniToDBCSTab_BIG5_53 },                  /* 0x53 */
1523     { 0x01, 0xFF, aImplUniToDBCSTab_BIG5_54 },                  /* 0x54 */
1524     { 0x01, 0xFF, aImplUniToDBCSTab_BIG5_55 },                  /* 0x55 */
1525     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_56 },                  /* 0x56 */
1526     { 0x01, 0xFD, aImplUniToDBCSTab_BIG5_57 },                  /* 0x57 */
1527     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_58 },                  /* 0x58 */
1528     { 0x03, 0xFF, aImplUniToDBCSTab_BIG5_59 },                  /* 0x59 */
1529     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_5A },                  /* 0x5A */
1530     { 0x01, 0xFA, aImplUniToDBCSTab_BIG5_5B },                  /* 0x5B */
1531     { 0x01, 0xFF, aImplUniToDBCSTab_BIG5_5C },                  /* 0x5C */
1532     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_5D },                  /* 0x5D */
1533     { 0x02, 0xFF, aImplUniToDBCSTab_BIG5_5E },                  /* 0x5E */
1534     { 0x01, 0xFF, aImplUniToDBCSTab_BIG5_5F },                  /* 0x5F */
1535     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_60 },                  /* 0x60 */
1536     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_61 },                  /* 0x61 */
1537     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_62 },                  /* 0x62 */
1538     { 0x00, 0xF9, aImplUniToDBCSTab_BIG5_63 },                  /* 0x63 */
1539     { 0x06, 0xFF, aImplUniToDBCSTab_BIG5_64 },                  /* 0x64 */
1540     { 0x00, 0xFD, aImplUniToDBCSTab_BIG5_65 },                  /* 0x65 */
1541     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_66 },                  /* 0x66 */
1542     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_67 },                  /* 0x67 */
1543     { 0x12, 0xFD, aImplUniToDBCSTab_BIG5_68 },                  /* 0x68 */
1544     { 0x04, 0xFF, aImplUniToDBCSTab_BIG5_69 },                  /* 0x69 */
1545     { 0x00, 0xFC, aImplUniToDBCSTab_BIG5_6A },                  /* 0x6A */
1546     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_6B },                  /* 0x6B */
1547     { 0x00, 0xF9, aImplUniToDBCSTab_BIG5_6C },                  /* 0x6C */
1548     { 0x00, 0xFD, aImplUniToDBCSTab_BIG5_6D },                  /* 0x6D */
1549     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_6E },                  /* 0x6E */
1550     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_6F },                  /* 0x6F */
1551     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_70 },                  /* 0x70 */
1552     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_71 },                  /* 0x71 */
1553     { 0x01, 0xFF, aImplUniToDBCSTab_BIG5_72 },                  /* 0x72 */
1554     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_73 },                  /* 0x73 */
1555     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_74 },                  /* 0x74 */
1556     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_75 },                  /* 0x75 */
1557     { 0x00, 0xFE, aImplUniToDBCSTab_BIG5_76 },                  /* 0x76 */
1558     { 0x01, 0xFD, aImplUniToDBCSTab_BIG5_77 },                  /* 0x77 */
1559     { 0x02, 0xFF, aImplUniToDBCSTab_BIG5_78 },                  /* 0x78 */
1560     { 0x01, 0xFB, aImplUniToDBCSTab_BIG5_79 },                  /* 0x79 */
1561     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_7A },                  /* 0x7A */
1562     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_7B },                  /* 0x7B */
1563     { 0x00, 0xFE, aImplUniToDBCSTab_BIG5_7C },                  /* 0x7C */
1564     { 0x00, 0xFB, aImplUniToDBCSTab_BIG5_7D },                  /* 0x7D */
1565     { 0x03, 0x9C, aImplUniToDBCSTab_BIG5_7E },                  /* 0x7E */
1566     { 0x36, 0xFF, aImplUniToDBCSTab_BIG5_7F },                  /* 0x7F */
1567     { 0x00, 0xFE, aImplUniToDBCSTab_BIG5_80 },                  /* 0x80 */
1568     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_81 },                  /* 0x81 */
1569     { 0x00, 0xFE, aImplUniToDBCSTab_BIG5_82 },                  /* 0x82 */
1570     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_83 },                  /* 0x83 */
1571     { 0x01, 0xFF, aImplUniToDBCSTab_BIG5_84 },                  /* 0x84 */
1572     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_85 },                  /* 0x85 */
1573     { 0x00, 0xFE, aImplUniToDBCSTab_BIG5_86 },                  /* 0x86 */
1574     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_87 },                  /* 0x87 */
1575     { 0x00, 0xFE, aImplUniToDBCSTab_BIG5_88 },                  /* 0x88 */
1576     { 0x01, 0xFF, aImplUniToDBCSTab_BIG5_89 },                  /* 0x89 */
1577     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_8A },                  /* 0x8A */
1578     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_8B },                  /* 0x8B */
1579     { 0x37, 0xFE, aImplUniToDBCSTab_BIG5_8C },                  /* 0x8C */
1580     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_8D },                  /* 0x8D */
1581     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_8E },                  /* 0x8E */
1582     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_8F },                  /* 0x8F */
1583     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_90 },                  /* 0x90 */
1584     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_91 },                  /* 0x91 */
1585     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_92 },                  /* 0x92 */
1586     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_93 },                  /* 0x93 */
1587     { 0x00, 0x83, aImplUniToDBCSTab_BIG5_94 },                  /* 0x94 */
1588     { 0x77, 0xE5, aImplUniToDBCSTab_BIG5_95 },                  /* 0x95 */
1589     { 0x1C, 0xFF, aImplUniToDBCSTab_BIG5_96 },                  /* 0x96 */
1590     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_97 },                  /* 0x97 */
1591     { 0x00, 0xFE, aImplUniToDBCSTab_BIG5_98 },                  /* 0x98 */
1592     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_99 },                  /* 0x99 */
1593     { 0x01, 0xFE, aImplUniToDBCSTab_BIG5_9A },                  /* 0x9A */
1594     { 0x01, 0xFD, aImplUniToDBCSTab_BIG5_9B },                  /* 0x9B */
1595     { 0x05, 0xFF, aImplUniToDBCSTab_BIG5_9C },                  /* 0x9C */
1596     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_9D },                  /* 0x9D */
1597     { 0x00, 0xFF, aImplUniToDBCSTab_BIG5_9E },                  /* 0x9E */
1598     { 0x00, 0xA4, aImplUniToDBCSTab_BIG5_9F },                  /* 0x9F */
1599     {    1,    0, nullptr },                                       /* 0xA0 */
1600     {    1,    0, nullptr },                                       /* 0xA1 */
1601     {    1,    0, nullptr },                                       /* 0xA2 */
1602     {    1,    0, nullptr },                                       /* 0xA3 */
1603     {    1,    0, nullptr },                                       /* 0xA4 */
1604     {    1,    0, nullptr },                                       /* 0xA5 */
1605     {    1,    0, nullptr },                                       /* 0xA6 */
1606     {    1,    0, nullptr },                                       /* 0xA7 */
1607     {    1,    0, nullptr },                                       /* 0xA8 */
1608     {    1,    0, nullptr },                                       /* 0xA9 */
1609     {    1,    0, nullptr },                                       /* 0xAA */
1610     {    1,    0, nullptr },                                       /* 0xAB */
1611     {    1,    0, nullptr },                                       /* 0xAC */
1612     {    1,    0, nullptr },                                       /* 0xAD */
1613     {    1,    0, nullptr },                                       /* 0xAE */
1614     {    1,    0, nullptr },                                       /* 0xAF */
1615     {    1,    0, nullptr },                                       /* 0xB0 */
1616     {    1,    0, nullptr },                                       /* 0xB1 */
1617     {    1,    0, nullptr },                                       /* 0xB2 */
1618     {    1,    0, nullptr },                                       /* 0xB3 */
1619     {    1,    0, nullptr },                                       /* 0xB4 */
1620     {    1,    0, nullptr },                                       /* 0xB5 */
1621     {    1,    0, nullptr },                                       /* 0xB6 */
1622     {    1,    0, nullptr },                                       /* 0xB7 */
1623     {    1,    0, nullptr },                                       /* 0xB8 */
1624     {    1,    0, nullptr },                                       /* 0xB9 */
1625     {    1,    0, nullptr },                                       /* 0xBA */
1626     {    1,    0, nullptr },                                       /* 0xBB */
1627     {    1,    0, nullptr },                                       /* 0xBC */
1628     {    1,    0, nullptr },                                       /* 0xBD */
1629     {    1,    0, nullptr },                                       /* 0xBE */
1630     {    1,    0, nullptr },                                       /* 0xBF */
1631     {    1,    0, nullptr },                                       /* 0xC0 */
1632     {    1,    0, nullptr },                                       /* 0xC1 */
1633     {    1,    0, nullptr },                                       /* 0xC2 */
1634     {    1,    0, nullptr },                                       /* 0xC3 */
1635     {    1,    0, nullptr },                                       /* 0xC4 */
1636     {    1,    0, nullptr },                                       /* 0xC5 */
1637     {    1,    0, nullptr },                                       /* 0xC6 */
1638     {    1,    0, nullptr },                                       /* 0xC7 */
1639     {    1,    0, nullptr },                                       /* 0xC8 */
1640     {    1,    0, nullptr },                                       /* 0xC9 */
1641     {    1,    0, nullptr },                                       /* 0xCA */
1642     {    1,    0, nullptr },                                       /* 0xCB */
1643     {    1,    0, nullptr },                                       /* 0xCC */
1644     {    1,    0, nullptr },                                       /* 0xCD */
1645     {    1,    0, nullptr },                                       /* 0xCE */
1646     {    1,    0, nullptr },                                       /* 0xCF */
1647     {    1,    0, nullptr },                                       /* 0xD0 */
1648     {    1,    0, nullptr },                                       /* 0xD1 */
1649     {    1,    0, nullptr },                                       /* 0xD2 */
1650     {    1,    0, nullptr },                                       /* 0xD3 */
1651     {    1,    0, nullptr },                                       /* 0xD4 */
1652     {    1,    0, nullptr },                                       /* 0xD5 */
1653     {    1,    0, nullptr },                                       /* 0xD6 */
1654     {    1,    0, nullptr },                                       /* 0xD7 */
1655     {    1,    0, nullptr },                                       /* 0xD8 */
1656     {    1,    0, nullptr },                                       /* 0xD9 */
1657     {    1,    0, nullptr },                                       /* 0xDA */
1658     {    1,    0, nullptr },                                       /* 0xDB */
1659     {    1,    0, nullptr },                                       /* 0xDC */
1660     {    1,    0, nullptr },                                       /* 0xDD */
1661     {    1,    0, nullptr },                                       /* 0xDE */
1662     {    1,    0, nullptr },                                       /* 0xDF */
1663     {    1,    0, nullptr },                                       /* 0xE0 */
1664     {    1,    0, nullptr },                                       /* 0xE1 */
1665     {    1,    0, nullptr },                                       /* 0xE2 */
1666     {    1,    0, nullptr },                                       /* 0xE3 */
1667     {    1,    0, nullptr },                                       /* 0xE4 */
1668     {    1,    0, nullptr },                                       /* 0xE5 */
1669     {    1,    0, nullptr },                                       /* 0xE6 */
1670     {    1,    0, nullptr },                                       /* 0xE7 */
1671     {    1,    0, nullptr },                                       /* 0xE8 */
1672     {    1,    0, nullptr },                                       /* 0xE9 */
1673     {    1,    0, nullptr },                                       /* 0xEA */
1674     {    1,    0, nullptr },                                       /* 0xEB */
1675     {    1,    0, nullptr },                                       /* 0xEC */
1676     {    1,    0, nullptr },                                       /* 0xED */
1677     {    1,    0, nullptr },                                       /* 0xEE */
1678     {    1,    0, nullptr },                                       /* 0xEF */
1679     {    1,    0, nullptr },                                       /* 0xF0 */
1680     {    1,    0, nullptr },                                       /* 0xF1 */
1681     {    1,    0, nullptr },                                       /* 0xF2 */
1682     {    1,    0, nullptr },                                       /* 0xF3 */
1683     {    1,    0, nullptr },                                       /* 0xF4 */
1684     {    1,    0, nullptr },                                       /* 0xF5 */
1685     {    1,    0, nullptr },                                       /* 0xF6 */
1686     {    1,    0, nullptr },                                       /* 0xF7 */
1687     { 0x80, 0x81, aImplUniToDBCSTab_APPLECHINTRAD_F8 },         /* 0xF8 */
1688     {    1,    0, nullptr },                                       /* 0xF9 */
1689     { 0x0C, 0x0D, aImplUniToDBCSTab_BIG5_FA },                  /* 0xFA */
1690     {    1,    0, nullptr },                                       /* 0xFB */
1691     {    1,    0, nullptr },                                       /* 0xFC */
1692     {    1,    0, nullptr },                                       /* 0xFD */
1693     { 0x30, 0x6B, aImplUniToDBCSTab_BIG5_FE },                  /* 0xFE */
1694     { 0x01, 0xFD, aImplUniToDBCSTab_BIG5_FF }                   /* 0xFF */
1697 /* ----------------------------------------------------------------------- */
1699 ImplDBCSConvertData const aImplAPPLECHINTRADDBCSCvtData =
1701     aAPPLECHINTRADUniLeadTab,
1702     aAPPLECHINTRADDBCSHighTab,
1703     nullptr,
1704     0,
1705     0x00, 0xFF,
1706     0x40, 0xFE,
1709 /* ----------------------------------------------------------------------- */
1711 ImplTextEncodingData const aImplAPPLECHINTRADTextEncodingData
1712     = { { &aImplAPPLECHINTRADDBCSCvtData,
1713           ImplDBCSToUnicode,
1714           ImplUnicodeToDBCS,
1715           nullptr,
1716           nullptr,
1717           nullptr,
1718           nullptr,
1719           nullptr,
1720           nullptr },
1721         "euc-tw",
1722         "big5",
1723         1,
1724         2,
1725         2,
1726         136,
1727         RTL_TEXTENCODING_INFO_MULTIBYTE };
1728     /* MAC, SCRIPT_CHINESE_TRADITIONAL, pc code page 950, mac encoding 2 */