update dev300-m58
[ooovba.git] / sal / textenc / tcvtkr6.tab
blob9a4215947000c71522c1c7c05e9845df676ae247
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  * 
5  * Copyright 2008 by Sun Microsystems, Inc.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * $RCSfile: tcvtkr6.tab,v $
10  * $Revision: 1.8 $
11  *
12  * This file is part of OpenOffice.org.
13  *
14  * OpenOffice.org is free software: you can redistribute it and/or modify
15  * it under the terms of the GNU Lesser General Public License version 3
16  * only, as published by the Free Software Foundation.
17  *
18  * OpenOffice.org is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21  * GNU Lesser General Public License version 3 for more details
22  * (a copy is included in the LICENSE file that accompanied this code).
23  *
24  * You should have received a copy of the GNU Lesser General Public License
25  * version 3 along with OpenOffice.org.  If not, see
26  * <http://www.openoffice.org/license.html>
27  * for a copy of the LGPLv3 License.
28  *
29  ************************************************************************/
31 /* ======================================================================= */
33 /* This file contain the information tables for all  */
34 /* korean charsets: */
35 /* CP949, JOHAB */
37 /* ======================================================================= */
39 static ImplDBCSToUniLeadTab const aKSC5601UniLeadTab[256] =
41     { 0x0000,    0,    0, NULL },                               /* 0x00 */
42     { 0x0001,    0,    0, NULL },                               /* 0x01 */
43     { 0x0002,    0,    0, NULL },                               /* 0x02 */
44     { 0x0003,    0,    0, NULL },                               /* 0x03 */
45     { 0x0004,    0,    0, NULL },                               /* 0x04 */
46     { 0x0005,    0,    0, NULL },                               /* 0x05 */
47     { 0x0006,    0,    0, NULL },                               /* 0x06 */
48     { 0x0007,    0,    0, NULL },                               /* 0x07 */
49     { 0x0008,    0,    0, NULL },                               /* 0x08 */
50     { 0x0009,    0,    0, NULL },                               /* 0x09 */
51     { 0x000A,    0,    0, NULL },                               /* 0x0A */
52     { 0x000B,    0,    0, NULL },                               /* 0x0B */
53     { 0x000C,    0,    0, NULL },                               /* 0x0C */
54     { 0x000D,    0,    0, NULL },                               /* 0x0D */
55     { 0x000E,    0,    0, NULL },                               /* 0x0E */
56     { 0x000F,    0,    0, NULL },                               /* 0x0F */
57     { 0x0010,    0,    0, NULL },                               /* 0x10 */
58     { 0x0011,    0,    0, NULL },                               /* 0x11 */
59     { 0x0012,    0,    0, NULL },                               /* 0x12 */
60     { 0x0013,    0,    0, NULL },                               /* 0x13 */
61     { 0x0014,    0,    0, NULL },                               /* 0x14 */
62     { 0x0015,    0,    0, NULL },                               /* 0x15 */
63     { 0x0016,    0,    0, NULL },                               /* 0x16 */
64     { 0x0017,    0,    0, NULL },                               /* 0x17 */
65     { 0x0018,    0,    0, NULL },                               /* 0x18 */
66     { 0x0019,    0,    0, NULL },                               /* 0x19 */
67     { 0x001A,    0,    0, NULL },                               /* 0x1A */
68     { 0x001B,    0,    0, NULL },                               /* 0x1B */
69     { 0x001C,    0,    0, NULL },                               /* 0x1C */
70     { 0x001D,    0,    0, NULL },                               /* 0x1D */
71     { 0x001E,    0,    0, NULL },                               /* 0x1E */
72     { 0x001F,    0,    0, NULL },                               /* 0x1F */
73     { 0x0020,    0,    0, NULL },                               /* 0x20 */
74     { 0x0021,    0,    0, NULL },                               /* 0x21 */
75     { 0x0022,    0,    0, NULL },                               /* 0x22 */
76     { 0x0023,    0,    0, NULL },                               /* 0x23 */
77     { 0x0024,    0,    0, NULL },                               /* 0x24 */
78     { 0x0025,    0,    0, NULL },                               /* 0x25 */
79     { 0x0026,    0,    0, NULL },                               /* 0x26 */
80     { 0x0027,    0,    0, NULL },                               /* 0x27 */
81     { 0x0028,    0,    0, NULL },                               /* 0x28 */
82     { 0x0029,    0,    0, NULL },                               /* 0x29 */
83     { 0x002A,    0,    0, NULL },                               /* 0x2A */
84     { 0x002B,    0,    0, NULL },                               /* 0x2B */
85     { 0x002C,    0,    0, NULL },                               /* 0x2C */
86     { 0x002D,    0,    0, NULL },                               /* 0x2D */
87     { 0x002E,    0,    0, NULL },                               /* 0x2E */
88     { 0x002F,    0,    0, NULL },                               /* 0x2F */
89     { 0x0030,    0,    0, NULL },                               /* 0x30 */
90     { 0x0031,    0,    0, NULL },                               /* 0x31 */
91     { 0x0032,    0,    0, NULL },                               /* 0x32 */
92     { 0x0033,    0,    0, NULL },                               /* 0x33 */
93     { 0x0034,    0,    0, NULL },                               /* 0x34 */
94     { 0x0035,    0,    0, NULL },                               /* 0x35 */
95     { 0x0036,    0,    0, NULL },                               /* 0x36 */
96     { 0x0037,    0,    0, NULL },                               /* 0x37 */
97     { 0x0038,    0,    0, NULL },                               /* 0x38 */
98     { 0x0039,    0,    0, NULL },                               /* 0x39 */
99     { 0x003A,    0,    0, NULL },                               /* 0x3A */
100     { 0x003B,    0,    0, NULL },                               /* 0x3B */
101     { 0x003C,    0,    0, NULL },                               /* 0x3C */
102     { 0x003D,    0,    0, NULL },                               /* 0x3D */
103     { 0x003E,    0,    0, NULL },                               /* 0x3E */
104     { 0x003F,    0,    0, NULL },                               /* 0x3F */
105     { 0x0040,    0,    0, NULL },                               /* 0x40 */
106     { 0x0041,    0,    0, NULL },                               /* 0x41 */
107     { 0x0042,    0,    0, NULL },                               /* 0x42 */
108     { 0x0043,    0,    0, NULL },                               /* 0x43 */
109     { 0x0044,    0,    0, NULL },                               /* 0x44 */
110     { 0x0045,    0,    0, NULL },                               /* 0x45 */
111     { 0x0046,    0,    0, NULL },                               /* 0x46 */
112     { 0x0047,    0,    0, NULL },                               /* 0x47 */
113     { 0x0048,    0,    0, NULL },                               /* 0x48 */
114     { 0x0049,    0,    0, NULL },                               /* 0x49 */
115     { 0x004A,    0,    0, NULL },                               /* 0x4A */
116     { 0x004B,    0,    0, NULL },                               /* 0x4B */
117     { 0x004C,    0,    0, NULL },                               /* 0x4C */
118     { 0x004D,    0,    0, NULL },                               /* 0x4D */
119     { 0x004E,    0,    0, NULL },                               /* 0x4E */
120     { 0x004F,    0,    0, NULL },                               /* 0x4F */
121     { 0x0050,    0,    0, NULL },                               /* 0x50 */
122     { 0x0051,    0,    0, NULL },                               /* 0x51 */
123     { 0x0052,    0,    0, NULL },                               /* 0x52 */
124     { 0x0053,    0,    0, NULL },                               /* 0x53 */
125     { 0x0054,    0,    0, NULL },                               /* 0x54 */
126     { 0x0055,    0,    0, NULL },                               /* 0x55 */
127     { 0x0056,    0,    0, NULL },                               /* 0x56 */
128     { 0x0057,    0,    0, NULL },                               /* 0x57 */
129     { 0x0058,    0,    0, NULL },                               /* 0x58 */
130     { 0x0059,    0,    0, NULL },                               /* 0x59 */
131     { 0x005A,    0,    0, NULL },                               /* 0x5A */
132     { 0x005B,    0,    0, NULL },                               /* 0x5B */
133     { 0x005C,    0,    0, NULL },                               /* 0x5C */
134     { 0x005D,    0,    0, NULL },                               /* 0x5D */
135     { 0x005E,    0,    0, NULL },                               /* 0x5E */
136     { 0x005F,    0,    0, NULL },                               /* 0x5F */
137     { 0x0060,    0,    0, NULL },                               /* 0x60 */
138     { 0x0061,    0,    0, NULL },                               /* 0x61 */
139     { 0x0062,    0,    0, NULL },                               /* 0x62 */
140     { 0x0063,    0,    0, NULL },                               /* 0x63 */
141     { 0x0064,    0,    0, NULL },                               /* 0x64 */
142     { 0x0065,    0,    0, NULL },                               /* 0x65 */
143     { 0x0066,    0,    0, NULL },                               /* 0x66 */
144     { 0x0067,    0,    0, NULL },                               /* 0x67 */
145     { 0x0068,    0,    0, NULL },                               /* 0x68 */
146     { 0x0069,    0,    0, NULL },                               /* 0x69 */
147     { 0x006A,    0,    0, NULL },                               /* 0x6A */
148     { 0x006B,    0,    0, NULL },                               /* 0x6B */
149     { 0x006C,    0,    0, NULL },                               /* 0x6C */
150     { 0x006D,    0,    0, NULL },                               /* 0x6D */
151     { 0x006E,    0,    0, NULL },                               /* 0x6E */
152     { 0x006F,    0,    0, NULL },                               /* 0x6F */
153     { 0x0070,    0,    0, NULL },                               /* 0x70 */
154     { 0x0071,    0,    0, NULL },                               /* 0x71 */
155     { 0x0072,    0,    0, NULL },                               /* 0x72 */
156     { 0x0073,    0,    0, NULL },                               /* 0x73 */
157     { 0x0074,    0,    0, NULL },                               /* 0x74 */
158     { 0x0075,    0,    0, NULL },                               /* 0x75 */
159     { 0x0076,    0,    0, NULL },                               /* 0x76 */
160     { 0x0077,    0,    0, NULL },                               /* 0x77 */
161     { 0x0078,    0,    0, NULL },                               /* 0x78 */
162     { 0x0079,    0,    0, NULL },                               /* 0x79 */
163     { 0x007A,    0,    0, NULL },                               /* 0x7A */
164     { 0x007B,    0,    0, NULL },                               /* 0x7B */
165     { 0x007C,    0,    0, NULL },                               /* 0x7C */
166     { 0x007D,    0,    0, NULL },                               /* 0x7D */
167     { 0x007E,    0,    0, NULL },                               /* 0x7E */
168     { 0x007F,    0,    0, NULL },                               /* 0x7F */
169     {      0,    1,    0, NULL },                               /* 0x80 */
170     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_81 },       /* 0x81 */
171     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_82 },       /* 0x82 */
172     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_83 },       /* 0x83 */
173     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_84 },       /* 0x84 */
174     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_85 },       /* 0x85 */
175     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_86 },       /* 0x86 */
176     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_87 },       /* 0x87 */
177     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_88 },       /* 0x88 */
178     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_89 },       /* 0x89 */
179     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_8A },       /* 0x8A */
180     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_8B },       /* 0x8B */
181     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_8C },       /* 0x8C */
182     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_8D },       /* 0x8D */
183     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_8E },       /* 0x8E */
184     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_8F },       /* 0x8F */
185     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_90 },       /* 0x90 */
186     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_91 },       /* 0x91 */
187     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_92 },       /* 0x92 */
188     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_93 },       /* 0x93 */
189     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_94 },       /* 0x94 */
190     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_95 },       /* 0x95 */
191     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_96 },       /* 0x96 */
192     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_97 },       /* 0x97 */
193     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_98 },       /* 0x98 */
194     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_99 },       /* 0x99 */
195     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_9A },       /* 0x9A */
196     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_9B },       /* 0x9B */
197     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_9C },       /* 0x9C */
198     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_9D },       /* 0x9D */
199     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_9E },       /* 0x9E */
200     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_9F },       /* 0x9F */
201     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_A0 },       /* 0xA0 */
202     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_A1 },       /* 0xA1 */
203     {      0, 0x41, 0xE7, aImplDBCSToUniTab_KSC5601_A2 },       /* 0xA2 */
204     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_A3 },       /* 0xA3 */
205     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_A4 },       /* 0xA4 */
206     {      0, 0x41, 0xF8, aImplDBCSToUniTab_KSC5601_A5 },       /* 0xA5 */
207     {      0, 0x41, 0xE4, aImplDBCSToUniTab_KSC5601_A6 },       /* 0xA6 */
208     {      0, 0x41, 0xEF, aImplDBCSToUniTab_KSC5601_A7 },       /* 0xA7 */
209     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_A8 },       /* 0xA8 */
210     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_A9 },       /* 0xA9 */
211     {      0, 0x41, 0xF3, aImplDBCSToUniTab_KSC5601_AA },       /* 0xAA */
212     {      0, 0x41, 0xF6, aImplDBCSToUniTab_KSC5601_AB },       /* 0xAB */
213     {      0, 0x41, 0xF1, aImplDBCSToUniTab_KSC5601_AC },       /* 0xAC */
214     {      0, 0x41, 0xA0, aImplDBCSToUniTab_KSC5601_AD },       /* 0xAD */
215     {      0, 0x41, 0xA0, aImplDBCSToUniTab_KSC5601_AE },       /* 0xAE */
216     {      0, 0x41, 0xA0, aImplDBCSToUniTab_KSC5601_AF },       /* 0xAF */
217     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_B0 },       /* 0xB0 */
218     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_B1 },       /* 0xB1 */
219     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_B2 },       /* 0xB2 */
220     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_B3 },       /* 0xB3 */
221     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_B4 },       /* 0xB4 */
222     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_B5 },       /* 0xB5 */
223     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_B6 },       /* 0xB6 */
224     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_B7 },       /* 0xB7 */
225     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_B8 },       /* 0xB8 */
226     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_B9 },       /* 0xB9 */
227     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_BA },       /* 0xBA */
228     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_BB },       /* 0xBB */
229     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_BC },       /* 0xBC */
230     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_BD },       /* 0xBD */
231     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_BE },       /* 0xBE */
232     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_BF },       /* 0xBF */
233     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_C0 },       /* 0xC0 */
234     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_C1 },       /* 0xC1 */
235     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_C2 },       /* 0xC2 */
236     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_C3 },       /* 0xC3 */
237     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_C4 },       /* 0xC4 */
238     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_C5 },       /* 0xC5 */
239     {      0, 0x41, 0xFE, aImplDBCSToUniTab_KSC5601_C6 },       /* 0xC6 */
240     {      0, 0xA1, 0xFE, aImplDBCSToUniTab_KSC5601_C7 },       /* 0xC7 */
241     {      0, 0xA1, 0xFE, aImplDBCSToUniTab_KSC5601_C8 },       /* 0xC8 */
242     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0xC9 */
243     {      0, 0xA1, 0xFE, aImplDBCSToUniTab_KSC5601_CA },       /* 0xCA */
244     {      0, 0xA1, 0xFE, aImplDBCSToUniTab_KSC5601_CB },       /* 0xCB */
245     {      0, 0xA1, 0xFE, aImplDBCSToUniTab_KSC5601_CC },       /* 0xCC */
246     {      0, 0xA1, 0xFE, aImplDBCSToUniTab_KSC5601_CD },       /* 0xCD */
247     {      0, 0xA1, 0xFE, aImplDBCSToUniTab_KSC5601_CE },       /* 0xCE */
248     {      0, 0xA1, 0xFE, aImplDBCSToUniTab_KSC5601_CF },       /* 0xCF */
249     {      0, 0xA1, 0xFE, aImplDBCSToUniTab_KSC5601_D0 },       /* 0xD0 */
250     {      0, 0xA1, 0xFE, aImplDBCSToUniTab_KSC5601_D1 },       /* 0xD1 */
251     {      0, 0xA1, 0xFE, aImplDBCSToUniTab_KSC5601_D2 },       /* 0xD2 */
252     {      0, 0xA1, 0xFE, aImplDBCSToUniTab_KSC5601_D3 },       /* 0xD3 */
253     {      0, 0xA1, 0xFE, aImplDBCSToUniTab_KSC5601_D4 },       /* 0xD4 */
254     {      0, 0xA1, 0xFE, aImplDBCSToUniTab_KSC5601_D5 },       /* 0xD5 */
255     {      0, 0xA1, 0xFE, aImplDBCSToUniTab_KSC5601_D6 },       /* 0xD6 */
256     {      0, 0xA1, 0xFE, aImplDBCSToUniTab_KSC5601_D7 },       /* 0xD7 */
257     {      0, 0xA1, 0xFE, aImplDBCSToUniTab_KSC5601_D8 },       /* 0xD8 */
258     {      0, 0xA1, 0xFE, aImplDBCSToUniTab_KSC5601_D9 },       /* 0xD9 */
259     {      0, 0xA1, 0xFE, aImplDBCSToUniTab_KSC5601_DA },       /* 0xDA */
260     {      0, 0xA1, 0xFE, aImplDBCSToUniTab_KSC5601_DB },       /* 0xDB */
261     {      0, 0xA1, 0xFE, aImplDBCSToUniTab_KSC5601_DC },       /* 0xDC */
262     {      0, 0xA1, 0xFE, aImplDBCSToUniTab_KSC5601_DD },       /* 0xDD */
263     {      0, 0xA1, 0xFE, aImplDBCSToUniTab_KSC5601_DE },       /* 0xDE */
264     {      0, 0xA1, 0xFE, aImplDBCSToUniTab_KSC5601_DF },       /* 0xDF */
265     {      0, 0xA1, 0xFE, aImplDBCSToUniTab_KSC5601_E0 },       /* 0xE0 */
266     {      0, 0xA1, 0xFE, aImplDBCSToUniTab_KSC5601_E1 },       /* 0xE1 */
267     {      0, 0xA1, 0xFE, aImplDBCSToUniTab_KSC5601_E2 },       /* 0xE2 */
268     {      0, 0xA1, 0xFE, aImplDBCSToUniTab_KSC5601_E3 },       /* 0xE3 */
269     {      0, 0xA1, 0xFE, aImplDBCSToUniTab_KSC5601_E4 },       /* 0xE4 */
270     {      0, 0xA1, 0xFE, aImplDBCSToUniTab_KSC5601_E5 },       /* 0xE5 */
271     {      0, 0xA1, 0xFE, aImplDBCSToUniTab_KSC5601_E6 },       /* 0xE6 */
272     {      0, 0xA1, 0xFE, aImplDBCSToUniTab_KSC5601_E7 },       /* 0xE7 */
273     {      0, 0xA1, 0xFE, aImplDBCSToUniTab_KSC5601_E8 },       /* 0xE8 */
274     {      0, 0xA1, 0xFE, aImplDBCSToUniTab_KSC5601_E9 },       /* 0xE9 */
275     {      0, 0xA1, 0xFE, aImplDBCSToUniTab_KSC5601_EA },       /* 0xEA */
276     {      0, 0xA1, 0xFE, aImplDBCSToUniTab_KSC5601_EB },       /* 0xEB */
277     {      0, 0xA1, 0xFE, aImplDBCSToUniTab_KSC5601_EC },       /* 0xEC */
278     {      0, 0xA1, 0xFE, aImplDBCSToUniTab_KSC5601_ED },       /* 0xED */
279     {      0, 0xA1, 0xFE, aImplDBCSToUniTab_KSC5601_EE },       /* 0xEE */
280     {      0, 0xA1, 0xFE, aImplDBCSToUniTab_KSC5601_EF },       /* 0xEF */
281     {      0, 0xA1, 0xFE, aImplDBCSToUniTab_KSC5601_F0 },       /* 0xF0 */
282     {      0, 0xA1, 0xFE, aImplDBCSToUniTab_KSC5601_F1 },       /* 0xF1 */
283     {      0, 0xA1, 0xFE, aImplDBCSToUniTab_KSC5601_F2 },       /* 0xF2 */
284     {      0, 0xA1, 0xFE, aImplDBCSToUniTab_KSC5601_F3 },       /* 0xF3 */
285     {      0, 0xA1, 0xFE, aImplDBCSToUniTab_KSC5601_F4 },       /* 0xF4 */
286     {      0, 0xA1, 0xFE, aImplDBCSToUniTab_KSC5601_F5 },       /* 0xF5 */
287     {      0, 0xA1, 0xFE, aImplDBCSToUniTab_KSC5601_F6 },       /* 0xF6 */
288     {      0, 0xA1, 0xFE, aImplDBCSToUniTab_KSC5601_F7 },       /* 0xF7 */
289     {      0, 0xA1, 0xFE, aImplDBCSToUniTab_KSC5601_F8 },       /* 0xF8 */
290     {      0, 0xA1, 0xFE, aImplDBCSToUniTab_KSC5601_F9 },       /* 0xF9 */
291     {      0, 0xA1, 0xFE, aImplDBCSToUniTab_KSC5601_FA },       /* 0xFA */
292     {      0, 0xA1, 0xFE, aImplDBCSToUniTab_KSC5601_FB },       /* 0xFB */
293     {      0, 0xA1, 0xFE, aImplDBCSToUniTab_KSC5601_FC },       /* 0xFC */
294     {      0, 0xA1, 0xFE, aImplDBCSToUniTab_KSC5601_FD },       /* 0xFD */
295     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0xFE */
296     {      0,    1,    0, NULL }                                /* 0xFF */
299 /* ----------------------------------------------------------------------- */
301 static ImplUniToDBCSHighTab const aKSC5601DBCSHighTab[256] =
303     { 0x00, 0xFE, aImplUniToDBCSTab_KSC5601_00 },               /* 0x00 */
304     { 0x11, 0x67, aImplUniToDBCSTab_KSC5601_01 },               /* 0x01 */
305     { 0xC7, 0xDD, aImplUniToDBCSTab_KSC5601_02 },               /* 0x02 */
306     { 0x91, 0xC9, aImplUniToDBCSTab_KSC5601_03 },               /* 0x03 */
307     { 0x01, 0x51, aImplUniToDBCSTab_KSC5601_04 },               /* 0x04 */
308     {    1,    0, NULL },                                       /* 0x05 */
309     {    1,    0, NULL },                                       /* 0x06 */
310     {    1,    0, NULL },                                       /* 0x07 */
311     {    1,    0, NULL },                                       /* 0x08 */
312     {    1,    0, NULL },                                       /* 0x09 */
313     {    1,    0, NULL },                                       /* 0x0A */
314     {    1,    0, NULL },                                       /* 0x0B */
315     {    1,    0, NULL },                                       /* 0x0C */
316     {    1,    0, NULL },                                       /* 0x0D */
317     {    1,    0, NULL },                                       /* 0x0E */
318     {    1,    0, NULL },                                       /* 0x0F */
319     {    1,    0, NULL },                                       /* 0x10 */
320     {    1,    0, NULL },                                       /* 0x11 */
321     {    1,    0, NULL },                                       /* 0x12 */
322     {    1,    0, NULL },                                       /* 0x13 */
323     {    1,    0, NULL },                                       /* 0x14 */
324     {    1,    0, NULL },                                       /* 0x15 */
325     {    1,    0, NULL },                                       /* 0x16 */
326     {    1,    0, NULL },                                       /* 0x17 */
327     {    1,    0, NULL },                                       /* 0x18 */
328     {    1,    0, NULL },                                       /* 0x19 */
329     {    1,    0, NULL },                                       /* 0x1A */
330     {    1,    0, NULL },                                       /* 0x1B */
331     {    1,    0, NULL },                                       /* 0x1C */
332     {    1,    0, NULL },                                       /* 0x1D */
333     {    1,    0, NULL },                                       /* 0x1E */
334     {    1,    0, NULL },                                       /* 0x1F */
335     { 0x15, 0xAC, aImplUniToDBCSTab_KSC5601_20 },               /* 0x20 */
336     { 0x03, 0xD4, aImplUniToDBCSTab_KSC5601_21 },               /* 0x21 */
337     { 0x00, 0xA5, aImplUniToDBCSTab_KSC5601_22 },               /* 0x22 */
338     { 0x12, 0x12, aImplUniToDBCSTab_KSC5601_23 },               /* 0x23 */
339     { 0x60, 0xE9, aImplUniToDBCSTab_KSC5601_24 },               /* 0x24 */
340     { 0x00, 0xD1, aImplUniToDBCSTab_KSC5601_25 },               /* 0x25 */
341     { 0x05, 0x6D, aImplUniToDBCSTab_KSC5601_26 },               /* 0x26 */
342     {    1,    0, NULL },                                       /* 0x27 */
343     {    1,    0, NULL },                                       /* 0x28 */
344     {    1,    0, NULL },                                       /* 0x29 */
345     {    1,    0, NULL },                                       /* 0x2A */
346     {    1,    0, NULL },                                       /* 0x2B */
347     {    1,    0, NULL },                                       /* 0x2C */
348     {    1,    0, NULL },                                       /* 0x2D */
349     {    1,    0, NULL },                                       /* 0x2E */
350     {    1,    0, NULL },                                       /* 0x2F */
351     { 0x00, 0xF7, aImplUniToDBCSTab_KSC5601_30 },               /* 0x30 */
352     { 0x31, 0xFE, aImplUniToDBCSTab_KSC5601_31 },               /* 0x31 */
353     { 0x00, 0x7F, aImplUniToDBCSTab_KSC5601_32 },               /* 0x32 */
354     { 0x80, 0xDD, aImplUniToDBCSTab_KSC5601_33 },               /* 0x33 */
355     {    1,    0, NULL },                                       /* 0x34 */
356     {    1,    0, NULL },                                       /* 0x35 */
357     {    1,    0, NULL },                                       /* 0x36 */
358     {    1,    0, NULL },                                       /* 0x37 */
359     {    1,    0, NULL },                                       /* 0x38 */
360     {    1,    0, NULL },                                       /* 0x39 */
361     {    1,    0, NULL },                                       /* 0x3A */
362     {    1,    0, NULL },                                       /* 0x3B */
363     {    1,    0, NULL },                                       /* 0x3C */
364     {    1,    0, NULL },                                       /* 0x3D */
365     {    1,    0, NULL },                                       /* 0x3E */
366     {    1,    0, NULL },                                       /* 0x3F */
367     {    1,    0, NULL },                                       /* 0x40 */
368     {    1,    0, NULL },                                       /* 0x41 */
369     {    1,    0, NULL },                                       /* 0x42 */
370     {    1,    0, NULL },                                       /* 0x43 */
371     {    1,    0, NULL },                                       /* 0x44 */
372     {    1,    0, NULL },                                       /* 0x45 */
373     {    1,    0, NULL },                                       /* 0x46 */
374     {    1,    0, NULL },                                       /* 0x47 */
375     {    1,    0, NULL },                                       /* 0x48 */
376     {    1,    0, NULL },                                       /* 0x49 */
377     {    1,    0, NULL },                                       /* 0x4A */
378     {    1,    0, NULL },                                       /* 0x4B */
379     {    1,    0, NULL },                                       /* 0x4C */
380     {    1,    0, NULL },                                       /* 0x4D */
381     { 0x00, 0xFB, aImplUniToDBCSTab_KSC5601_4E },               /* 0x4E */
382     { 0x01, 0xFA, aImplUniToDBCSTab_KSC5601_4F },               /* 0x4F */
383     { 0x02, 0xFF, aImplUniToDBCSTab_KSC5601_50 },               /* 0x50 */
384     { 0x00, 0xFD, aImplUniToDBCSTab_KSC5601_51 },               /* 0x51 */
385     { 0x00, 0xFF, aImplUniToDBCSTab_KSC5601_52 },               /* 0x52 */
386     { 0x05, 0xF8, aImplUniToDBCSTab_KSC5601_53 },               /* 0x53 */
387     { 0x03, 0xFA, aImplUniToDBCSTab_KSC5601_54 },               /* 0x54 */
388     { 0x04, 0xFE, aImplUniToDBCSTab_KSC5601_55 },               /* 0x55 */
389     { 0x06, 0xFA, aImplUniToDBCSTab_KSC5601_56 },               /* 0x56 */
390     { 0x03, 0xFC, aImplUniToDBCSTab_KSC5601_57 },               /* 0x57 */
391     { 0x00, 0xFD, aImplUniToDBCSTab_KSC5601_58 },               /* 0x58 */
392     { 0x07, 0xFF, aImplUniToDBCSTab_KSC5601_59 },               /* 0x59 */
393     { 0x01, 0xE9, aImplUniToDBCSTab_KSC5601_5A },               /* 0x5A */
394     { 0x05, 0xFA, aImplUniToDBCSTab_KSC5601_5B },               /* 0x5B */
395     { 0x01, 0xFD, aImplUniToDBCSTab_KSC5601_5C },               /* 0x5C */
396     { 0x07, 0xFE, aImplUniToDBCSTab_KSC5601_5D },               /* 0x5D */
397     { 0x02, 0xFB, aImplUniToDBCSTab_KSC5601_5E },               /* 0x5E */
398     { 0x01, 0xFF, aImplUniToDBCSTab_KSC5601_5F },               /* 0x5F */
399     { 0x07, 0xFB, aImplUniToDBCSTab_KSC5601_60 },               /* 0x60 */
400     { 0x01, 0xFF, aImplUniToDBCSTab_KSC5601_61 },               /* 0x61 */
401     { 0x00, 0xFF, aImplUniToDBCSTab_KSC5601_62 },               /* 0x62 */
402     { 0x01, 0xF7, aImplUniToDBCSTab_KSC5601_63 },               /* 0x63 */
403     { 0x0D, 0xFE, aImplUniToDBCSTab_KSC5601_64 },               /* 0x64 */
404     { 0x00, 0xFF, aImplUniToDBCSTab_KSC5601_65 },               /* 0x65 */
405     { 0x06, 0xFF, aImplUniToDBCSTab_KSC5601_66 },               /* 0x66 */
406     { 0x00, 0xFE, aImplUniToDBCSTab_KSC5601_67 },               /* 0x67 */
407     { 0x12, 0xFA, aImplUniToDBCSTab_KSC5601_68 },               /* 0x68 */
408     { 0x00, 0xFF, aImplUniToDBCSTab_KSC5601_69 },               /* 0x69 */
409     { 0x02, 0xFB, aImplUniToDBCSTab_KSC5601_6A },               /* 0x6A */
410     { 0x04, 0xEC, aImplUniToDBCSTab_KSC5601_6B },               /* 0x6B */
411     { 0x08, 0xF3, aImplUniToDBCSTab_KSC5601_6C },               /* 0x6C */
412     { 0x03, 0xFB, aImplUniToDBCSTab_KSC5601_6D },               /* 0x6D */
413     { 0x17, 0xFF, aImplUniToDBCSTab_KSC5601_6E },               /* 0x6E */
414     { 0x01, 0xFE, aImplUniToDBCSTab_KSC5601_6F },               /* 0x6F */
415     { 0x01, 0xFD, aImplUniToDBCSTab_KSC5601_70 },               /* 0x70 */
416     { 0x04, 0xFF, aImplUniToDBCSTab_KSC5601_71 },               /* 0x71 */
417     { 0x00, 0xFD, aImplUniToDBCSTab_KSC5601_72 },               /* 0x72 */
418     { 0x02, 0xFE, aImplUniToDBCSTab_KSC5601_73 },               /* 0x73 */
419     { 0x01, 0xF7, aImplUniToDBCSTab_KSC5601_74 },               /* 0x74 */
420     { 0x01, 0xFC, aImplUniToDBCSTab_KSC5601_75 },               /* 0x75 */
421     { 0x00, 0xFE, aImplUniToDBCSTab_KSC5601_76 },               /* 0x76 */
422     { 0x01, 0xFB, aImplUniToDBCSTab_KSC5601_77 },               /* 0x77 */
423     { 0x02, 0xFB, aImplUniToDBCSTab_KSC5601_78 },               /* 0x78 */
424     { 0x01, 0xFB, aImplUniToDBCSTab_KSC5601_79 },               /* 0x79 */
425     { 0x00, 0xFF, aImplUniToDBCSTab_KSC5601_7A },               /* 0x7A */
426     { 0x0F, 0xE9, aImplUniToDBCSTab_KSC5601_7B },               /* 0x7B */
427     { 0x07, 0xFE, aImplUniToDBCSTab_KSC5601_7C },               /* 0x7C */
428     { 0x00, 0xFB, aImplUniToDBCSTab_KSC5601_7D },               /* 0x7D */
429     { 0x09, 0x9C, aImplUniToDBCSTab_KSC5601_7E },               /* 0x7E */
430     { 0x36, 0xFC, aImplUniToDBCSTab_KSC5601_7F },               /* 0x7F */
431     { 0x00, 0xFD, aImplUniToDBCSTab_KSC5601_80 },               /* 0x80 */
432     { 0x02, 0xFE, aImplUniToDBCSTab_KSC5601_81 },               /* 0x81 */
433     { 0x05, 0xFE, aImplUniToDBCSTab_KSC5601_82 },               /* 0x82 */
434     { 0x01, 0xFD, aImplUniToDBCSTab_KSC5601_83 },               /* 0x83 */
435     { 0x03, 0xFC, aImplUniToDBCSTab_KSC5601_84 },               /* 0x84 */
436     { 0x11, 0xFF, aImplUniToDBCSTab_KSC5601_85 },               /* 0x85 */
437     { 0x02, 0xFE, aImplUniToDBCSTab_KSC5601_86 },               /* 0x86 */
438     { 0x00, 0xFE, aImplUniToDBCSTab_KSC5601_87 },               /* 0x87 */
439     { 0x05, 0xFD, aImplUniToDBCSTab_KSC5601_88 },               /* 0x88 */
440     { 0x07, 0xF8, aImplUniToDBCSTab_KSC5601_89 },               /* 0x89 */
441     { 0x00, 0xFE, aImplUniToDBCSTab_KSC5601_8A },               /* 0x8A */
442     { 0x00, 0x9A, aImplUniToDBCSTab_KSC5601_8B },               /* 0x8B */
443     { 0x37, 0xFD, aImplUniToDBCSTab_KSC5601_8C },               /* 0x8C */
444     { 0x04, 0xFB, aImplUniToDBCSTab_KSC5601_8D },               /* 0x8D */
445     { 0x0A, 0xFE, aImplUniToDBCSTab_KSC5601_8E },               /* 0x8E */
446     { 0x03, 0xFD, aImplUniToDBCSTab_KSC5601_8F },               /* 0x8F */
447     { 0x00, 0xFD, aImplUniToDBCSTab_KSC5601_90 },               /* 0x90 */
448     { 0x02, 0xF5, aImplUniToDBCSTab_KSC5601_91 },               /* 0x91 */
449     { 0x0D, 0xFC, aImplUniToDBCSTab_KSC5601_92 },               /* 0x92 */
450     { 0x04, 0xF6, aImplUniToDBCSTab_KSC5601_93 },               /* 0x93 */
451     { 0x04, 0x7F, aImplUniToDBCSTab_KSC5601_94 },               /* 0x94 */
452     { 0x77, 0xE2, aImplUniToDBCSTab_KSC5601_95 },               /* 0x95 */
453     { 0x1C, 0xFB, aImplUniToDBCSTab_KSC5601_96 },               /* 0x96 */
454     { 0x00, 0xFF, aImplUniToDBCSTab_KSC5601_97 },               /* 0x97 */
455     { 0x00, 0xFE, aImplUniToDBCSTab_KSC5601_98 },               /* 0x98 */
456     { 0x03, 0xFF, aImplUniToDBCSTab_KSC5601_99 },               /* 0x99 */
457     { 0x01, 0xEE, aImplUniToDBCSTab_KSC5601_9A },               /* 0x9A */
458     { 0x1A, 0xE8, aImplUniToDBCSTab_KSC5601_9B },               /* 0x9B */
459     { 0x0D, 0xF6, aImplUniToDBCSTab_KSC5601_9C },               /* 0x9C */
460     { 0x09, 0xFA, aImplUniToDBCSTab_KSC5601_9D },               /* 0x9D */
461     { 0x1A, 0xF4, aImplUniToDBCSTab_KSC5601_9E },               /* 0x9E */
462     { 0x07, 0x9C, aImplUniToDBCSTab_KSC5601_9F },               /* 0x9F */
463     {    1,    0, NULL },                                       /* 0xA0 */
464     {    1,    0, NULL },                                       /* 0xA1 */
465     {    1,    0, NULL },                                       /* 0xA2 */
466     {    1,    0, NULL },                                       /* 0xA3 */
467     {    1,    0, NULL },                                       /* 0xA4 */
468     {    1,    0, NULL },                                       /* 0xA5 */
469     {    1,    0, NULL },                                       /* 0xA6 */
470     {    1,    0, NULL },                                       /* 0xA7 */
471     {    1,    0, NULL },                                       /* 0xA8 */
472     {    1,    0, NULL },                                       /* 0xA9 */
473     {    1,    0, NULL },                                       /* 0xAA */
474     {    1,    0, NULL },                                       /* 0xAB */
475     { 0x00, 0xFF, aImplUniToDBCSTab_KSC5601_AC },               /* 0xAC */
476     { 0x00, 0xFF, aImplUniToDBCSTab_KSC5601_AD },               /* 0xAD */
477     { 0x00, 0xFF, aImplUniToDBCSTab_KSC5601_AE },               /* 0xAE */
478     { 0x00, 0xFF, aImplUniToDBCSTab_KSC5601_AF },               /* 0xAF */
479     { 0x00, 0xFF, aImplUniToDBCSTab_KSC5601_B0 },               /* 0xB0 */
480     { 0x00, 0xFF, aImplUniToDBCSTab_KSC5601_B1 },               /* 0xB1 */
481     { 0x00, 0xFF, aImplUniToDBCSTab_KSC5601_B2 },               /* 0xB2 */
482     { 0x00, 0xFF, aImplUniToDBCSTab_KSC5601_B3 },               /* 0xB3 */
483     { 0x00, 0xFF, aImplUniToDBCSTab_KSC5601_B4 },               /* 0xB4 */
484     { 0x00, 0xFF, aImplUniToDBCSTab_KSC5601_B5 },               /* 0xB5 */
485     { 0x00, 0xFF, aImplUniToDBCSTab_KSC5601_B6 },               /* 0xB6 */
486     { 0x00, 0xFF, aImplUniToDBCSTab_KSC5601_B7 },               /* 0xB7 */
487     { 0x00, 0xFF, aImplUniToDBCSTab_KSC5601_B8 },               /* 0xB8 */
488     { 0x00, 0xFF, aImplUniToDBCSTab_KSC5601_B9 },               /* 0xB9 */
489     { 0x00, 0xFF, aImplUniToDBCSTab_KSC5601_BA },               /* 0xBA */
490     { 0x00, 0xFF, aImplUniToDBCSTab_KSC5601_BB },               /* 0xBB */
491     { 0x00, 0xFF, aImplUniToDBCSTab_KSC5601_BC },               /* 0xBC */
492     { 0x00, 0xFF, aImplUniToDBCSTab_KSC5601_BD },               /* 0xBD */
493     { 0x00, 0xFF, aImplUniToDBCSTab_KSC5601_BE },               /* 0xBE */
494     { 0x00, 0xFF, aImplUniToDBCSTab_KSC5601_BF },               /* 0xBF */
495     { 0x00, 0xFF, aImplUniToDBCSTab_KSC5601_C0 },               /* 0xC0 */
496     { 0x00, 0xFF, aImplUniToDBCSTab_KSC5601_C1 },               /* 0xC1 */
497     { 0x00, 0xFF, aImplUniToDBCSTab_KSC5601_C2 },               /* 0xC2 */
498     { 0x00, 0xFF, aImplUniToDBCSTab_KSC5601_C3 },               /* 0xC3 */
499     { 0x00, 0xFF, aImplUniToDBCSTab_KSC5601_C4 },               /* 0xC4 */
500     { 0x00, 0xFF, aImplUniToDBCSTab_KSC5601_C5 },               /* 0xC5 */
501     { 0x00, 0xFF, aImplUniToDBCSTab_KSC5601_C6 },               /* 0xC6 */
502     { 0x00, 0xFF, aImplUniToDBCSTab_KSC5601_C7 },               /* 0xC7 */
503     { 0x00, 0xFF, aImplUniToDBCSTab_KSC5601_C8 },               /* 0xC8 */
504     { 0x00, 0xFF, aImplUniToDBCSTab_KSC5601_C9 },               /* 0xC9 */
505     { 0x00, 0xFF, aImplUniToDBCSTab_KSC5601_CA },               /* 0xCA */
506     { 0x00, 0xFF, aImplUniToDBCSTab_KSC5601_CB },               /* 0xCB */
507     { 0x00, 0xFF, aImplUniToDBCSTab_KSC5601_CC },               /* 0xCC */
508     { 0x00, 0xFF, aImplUniToDBCSTab_KSC5601_CD },               /* 0xCD */
509     { 0x00, 0xFF, aImplUniToDBCSTab_KSC5601_CE },               /* 0xCE */
510     { 0x00, 0xFF, aImplUniToDBCSTab_KSC5601_CF },               /* 0xCF */
511     { 0x00, 0xFF, aImplUniToDBCSTab_KSC5601_D0 },               /* 0xD0 */
512     { 0x00, 0xFF, aImplUniToDBCSTab_KSC5601_D1 },               /* 0xD1 */
513     { 0x00, 0xFF, aImplUniToDBCSTab_KSC5601_D2 },               /* 0xD2 */
514     { 0x00, 0xFF, aImplUniToDBCSTab_KSC5601_D3 },               /* 0xD3 */
515     { 0x00, 0xFF, aImplUniToDBCSTab_KSC5601_D4 },               /* 0xD4 */
516     { 0x00, 0xFF, aImplUniToDBCSTab_KSC5601_D5 },               /* 0xD5 */
517     { 0x00, 0xFF, aImplUniToDBCSTab_KSC5601_D6 },               /* 0xD6 */
518     { 0x00, 0xA3, aImplUniToDBCSTab_KSC5601_D7 },               /* 0xD7 */
519     {    1,    0, NULL },                                       /* 0xD8 */
520     {    1,    0, NULL },                                       /* 0xD9 */
521     {    1,    0, NULL },                                       /* 0xDA */
522     {    1,    0, NULL },                                       /* 0xDB */
523     {    1,    0, NULL },                                       /* 0xDC */
524     {    1,    0, NULL },                                       /* 0xDD */
525     {    1,    0, NULL },                                       /* 0xDE */
526     {    1,    0, NULL },                                       /* 0xDF */
527     {    1,    0, NULL },                                       /* 0xE0 */
528     {    1,    0, NULL },                                       /* 0xE1 */
529     {    1,    0, NULL },                                       /* 0xE2 */
530     {    1,    0, NULL },                                       /* 0xE3 */
531     {    1,    0, NULL },                                       /* 0xE4 */
532     {    1,    0, NULL },                                       /* 0xE5 */
533     {    1,    0, NULL },                                       /* 0xE6 */
534     {    1,    0, NULL },                                       /* 0xE7 */
535     {    1,    0, NULL },                                       /* 0xE8 */
536     {    1,    0, NULL },                                       /* 0xE9 */
537     {    1,    0, NULL },                                       /* 0xEA */
538     {    1,    0, NULL },                                       /* 0xEB */
539     {    1,    0, NULL },                                       /* 0xEC */
540     {    1,    0, NULL },                                       /* 0xED */
541     {    1,    0, NULL },                                       /* 0xEE */
542     {    1,    0, NULL },                                       /* 0xEF */
543     {    1,    0, NULL },                                       /* 0xF0 */
544     {    1,    0, NULL },                                       /* 0xF1 */
545     {    1,    0, NULL },                                       /* 0xF2 */
546     {    1,    0, NULL },                                       /* 0xF3 */
547     {    1,    0, NULL },                                       /* 0xF4 */
548     {    1,    0, NULL },                                       /* 0xF5 */
549     {    1,    0, NULL },                                       /* 0xF6 */
550     {    1,    0, NULL },                                       /* 0xF7 */
551     {    1,    0, NULL },                                       /* 0xF8 */
552     { 0x00, 0xFF, aImplUniToDBCSTab_KSC5601_F9 },               /* 0xF9 */
553     { 0x00, 0x0B, aImplUniToDBCSTab_KSC5601_FA },               /* 0xFA */
554     {    1,    0, NULL },                                       /* 0xFB */
555     {    1,    0, NULL },                                       /* 0xFC */
556     {    1,    0, NULL },                                       /* 0xFD */
557     {    1,    0, NULL },                                       /* 0xFE */
558     { 0x01, 0xE6, aImplUniToDBCSTab_KSC5601_FF }                /* 0xFF */
561 /* ----------------------------------------------------------------------- */
563 /* C9A1-C9FE    -> E000-E05D */
564 /* FEA1-FEFE    -> E05E-E0BB */
566 #define DBCS_EUDC_MS949_COUNT    2
567 static ImplDBCSEUDCData const aImplMS949DBCSEUDCTab[DBCS_EUDC_MS949_COUNT] =
569     /* EUDC-Range */
570     /* Lead:    C9-C9 */
571     /* Trail:   A1-FE */
572     { 0xC9, 0xC9, 0xA1, 0xFE, 0, 0, 0, 0, 1, 0x5E, 0xE000, 0xE05D },
573     /* Lead:    FE-FE */
574     /* Trail:   A1-FE */
575     { 0xFE, 0xFE, 0xA1, 0xFE, 0, 0, 0, 0, 1, 0x5E, 0xE05E, 0xE0BB }
578 /* ----------------------------------------------------------------------- */
580 static ImplDBCSConvertData const aImplKSC5601DBCSCvtData =
582     aKSC5601UniLeadTab,
583     aKSC5601DBCSHighTab,
584     0xA1, 0xFE,
585     0xA1, 0xFE,
586     aImplMS949DBCSEUDCTab,
587     DBCS_EUDC_MS949_COUNT
590 /* ----------------------------------------------------------------------- */
592 static ImplDBCSConvertData const aImplMS949DBCSCvtData =
594     aKSC5601UniLeadTab,
595     aKSC5601DBCSHighTab,
596     0x00, 0xFF,
597     0x41, 0xFE,
598     aImplMS949DBCSEUDCTab,
599     DBCS_EUDC_MS949_COUNT
602 /* ======================================================================= */
604 static ImplTextEncodingData const aImplEUCKRTextEncodingData
605     = { { &aImplKSC5601DBCSCvtData,
606           ImplDBCSToUnicode,
607           ImplUnicodeToDBCS,
608           NULL,
609           NULL,
610           NULL,
611           NULL,
612           NULL,
613           NULL },
614         1,
615         2,
616         2,
617         129,
618         "euc-kr",
619         "euc-kr",
620         RTL_TEXTENCODING_INFO_ASCII
621             | RTL_TEXTENCODING_INFO_MULTIBYTE
622             | RTL_TEXTENCODING_INFO_MIME };
623     /* SCRIPT_KOREAN, pc code page 934, mac encoding 3 */
625 /* ======================================================================= */
627 static ImplTextEncodingData const aImplMS949TextEncodingData
628     = { { &aImplMS949DBCSCvtData,
629           ImplDBCSToUnicode,
630           ImplUnicodeToDBCS,
631           NULL,
632           NULL,
633           NULL,
634           NULL,
635           NULL,
636           NULL },
637         1,
638         2,
639         2,
640         129,
641         "euc-kr",
642         "euc-kr",
643         RTL_TEXTENCODING_INFO_MULTIBYTE };
644     /* WIN/DOS/OS2, SCRIPT_KOREAN, pc code page 934, mac encoding 3 */
646 /* ======================================================================= */
648 /* Apple has some extension, which we don't support */
650 static ImplTextEncodingData const aImplAPPLEKOREANTextEncodingData
651     = { { &aImplMS949DBCSCvtData,
652           ImplDBCSToUnicode,
653           ImplUnicodeToDBCS,
654           NULL,
655           NULL,
656           NULL,
657           NULL,
658           NULL,
659           NULL },
660         1,
661         2,
662         2,
663         129,
664         "euc-kr",
665         "euc-kr",
666         RTL_TEXTENCODING_INFO_MULTIBYTE };
667     /* MAC, SCRIPT_KOREAN, pc code page 934, mac encoding 3 */
669 /* ======================================================================= */
671 static ImplDBCSToUniLeadTab const aJOHABUniLeadTab[256] =
673     { 0x0000,    0,    0, NULL },                               /* 0x00 */
674     { 0x0001,    0,    0, NULL },                               /* 0x01 */
675     { 0x0002,    0,    0, NULL },                               /* 0x02 */
676     { 0x0003,    0,    0, NULL },                               /* 0x03 */
677     { 0x0004,    0,    0, NULL },                               /* 0x04 */
678     { 0x0005,    0,    0, NULL },                               /* 0x05 */
679     { 0x0006,    0,    0, NULL },                               /* 0x06 */
680     { 0x0007,    0,    0, NULL },                               /* 0x07 */
681     { 0x0008,    0,    0, NULL },                               /* 0x08 */
682     { 0x0009,    0,    0, NULL },                               /* 0x09 */
683     { 0x000A,    0,    0, NULL },                               /* 0x0A */
684     { 0x000B,    0,    0, NULL },                               /* 0x0B */
685     { 0x000C,    0,    0, NULL },                               /* 0x0C */
686     { 0x000D,    0,    0, NULL },                               /* 0x0D */
687     { 0x000E,    0,    0, NULL },                               /* 0x0E */
688     { 0x000F,    0,    0, NULL },                               /* 0x0F */
689     { 0x0010,    0,    0, NULL },                               /* 0x10 */
690     { 0x0011,    0,    0, NULL },                               /* 0x11 */
691     { 0x0012,    0,    0, NULL },                               /* 0x12 */
692     { 0x0013,    0,    0, NULL },                               /* 0x13 */
693     { 0x0014,    0,    0, NULL },                               /* 0x14 */
694     { 0x0015,    0,    0, NULL },                               /* 0x15 */
695     { 0x0016,    0,    0, NULL },                               /* 0x16 */
696     { 0x0017,    0,    0, NULL },                               /* 0x17 */
697     { 0x0018,    0,    0, NULL },                               /* 0x18 */
698     { 0x0019,    0,    0, NULL },                               /* 0x19 */
699     { 0x001A,    0,    0, NULL },                               /* 0x1A */
700     { 0x001B,    0,    0, NULL },                               /* 0x1B */
701     { 0x001C,    0,    0, NULL },                               /* 0x1C */
702     { 0x001D,    0,    0, NULL },                               /* 0x1D */
703     { 0x001E,    0,    0, NULL },                               /* 0x1E */
704     { 0x001F,    0,    0, NULL },                               /* 0x1F */
705     { 0x0020,    0,    0, NULL },                               /* 0x20 */
706     { 0x0021,    0,    0, NULL },                               /* 0x21 */
707     { 0x0022,    0,    0, NULL },                               /* 0x22 */
708     { 0x0023,    0,    0, NULL },                               /* 0x23 */
709     { 0x0024,    0,    0, NULL },                               /* 0x24 */
710     { 0x0025,    0,    0, NULL },                               /* 0x25 */
711     { 0x0026,    0,    0, NULL },                               /* 0x26 */
712     { 0x0027,    0,    0, NULL },                               /* 0x27 */
713     { 0x0028,    0,    0, NULL },                               /* 0x28 */
714     { 0x0029,    0,    0, NULL },                               /* 0x29 */
715     { 0x002A,    0,    0, NULL },                               /* 0x2A */
716     { 0x002B,    0,    0, NULL },                               /* 0x2B */
717     { 0x002C,    0,    0, NULL },                               /* 0x2C */
718     { 0x002D,    0,    0, NULL },                               /* 0x2D */
719     { 0x002E,    0,    0, NULL },                               /* 0x2E */
720     { 0x002F,    0,    0, NULL },                               /* 0x2F */
721     { 0x0030,    0,    0, NULL },                               /* 0x30 */
722     { 0x0031,    0,    0, NULL },                               /* 0x31 */
723     { 0x0032,    0,    0, NULL },                               /* 0x32 */
724     { 0x0033,    0,    0, NULL },                               /* 0x33 */
725     { 0x0034,    0,    0, NULL },                               /* 0x34 */
726     { 0x0035,    0,    0, NULL },                               /* 0x35 */
727     { 0x0036,    0,    0, NULL },                               /* 0x36 */
728     { 0x0037,    0,    0, NULL },                               /* 0x37 */
729     { 0x0038,    0,    0, NULL },                               /* 0x38 */
730     { 0x0039,    0,    0, NULL },                               /* 0x39 */
731     { 0x003A,    0,    0, NULL },                               /* 0x3A */
732     { 0x003B,    0,    0, NULL },                               /* 0x3B */
733     { 0x003C,    0,    0, NULL },                               /* 0x3C */
734     { 0x003D,    0,    0, NULL },                               /* 0x3D */
735     { 0x003E,    0,    0, NULL },                               /* 0x3E */
736     { 0x003F,    0,    0, NULL },                               /* 0x3F */
737     { 0x0040,    0,    0, NULL },                               /* 0x40 */
738     { 0x0041,    0,    0, NULL },                               /* 0x41 */
739     { 0x0042,    0,    0, NULL },                               /* 0x42 */
740     { 0x0043,    0,    0, NULL },                               /* 0x43 */
741     { 0x0044,    0,    0, NULL },                               /* 0x44 */
742     { 0x0045,    0,    0, NULL },                               /* 0x45 */
743     { 0x0046,    0,    0, NULL },                               /* 0x46 */
744     { 0x0047,    0,    0, NULL },                               /* 0x47 */
745     { 0x0048,    0,    0, NULL },                               /* 0x48 */
746     { 0x0049,    0,    0, NULL },                               /* 0x49 */
747     { 0x004A,    0,    0, NULL },                               /* 0x4A */
748     { 0x004B,    0,    0, NULL },                               /* 0x4B */
749     { 0x004C,    0,    0, NULL },                               /* 0x4C */
750     { 0x004D,    0,    0, NULL },                               /* 0x4D */
751     { 0x004E,    0,    0, NULL },                               /* 0x4E */
752     { 0x004F,    0,    0, NULL },                               /* 0x4F */
753     { 0x0050,    0,    0, NULL },                               /* 0x50 */
754     { 0x0051,    0,    0, NULL },                               /* 0x51 */
755     { 0x0052,    0,    0, NULL },                               /* 0x52 */
756     { 0x0053,    0,    0, NULL },                               /* 0x53 */
757     { 0x0054,    0,    0, NULL },                               /* 0x54 */
758     { 0x0055,    0,    0, NULL },                               /* 0x55 */
759     { 0x0056,    0,    0, NULL },                               /* 0x56 */
760     { 0x0057,    0,    0, NULL },                               /* 0x57 */
761     { 0x0058,    0,    0, NULL },                               /* 0x58 */
762     { 0x0059,    0,    0, NULL },                               /* 0x59 */
763     { 0x005A,    0,    0, NULL },                               /* 0x5A */
764     { 0x005B,    0,    0, NULL },                               /* 0x5B */
765     { 0x005C,    0,    0, NULL },                               /* 0x5C */
766     { 0x005D,    0,    0, NULL },                               /* 0x5D */
767     { 0x005E,    0,    0, NULL },                               /* 0x5E */
768     { 0x005F,    0,    0, NULL },                               /* 0x5F */
769     { 0x0060,    0,    0, NULL },                               /* 0x60 */
770     { 0x0061,    0,    0, NULL },                               /* 0x61 */
771     { 0x0062,    0,    0, NULL },                               /* 0x62 */
772     { 0x0063,    0,    0, NULL },                               /* 0x63 */
773     { 0x0064,    0,    0, NULL },                               /* 0x64 */
774     { 0x0065,    0,    0, NULL },                               /* 0x65 */
775     { 0x0066,    0,    0, NULL },                               /* 0x66 */
776     { 0x0067,    0,    0, NULL },                               /* 0x67 */
777     { 0x0068,    0,    0, NULL },                               /* 0x68 */
778     { 0x0069,    0,    0, NULL },                               /* 0x69 */
779     { 0x006A,    0,    0, NULL },                               /* 0x6A */
780     { 0x006B,    0,    0, NULL },                               /* 0x6B */
781     { 0x006C,    0,    0, NULL },                               /* 0x6C */
782     { 0x006D,    0,    0, NULL },                               /* 0x6D */
783     { 0x006E,    0,    0, NULL },                               /* 0x6E */
784     { 0x006F,    0,    0, NULL },                               /* 0x6F */
785     { 0x0070,    0,    0, NULL },                               /* 0x70 */
786     { 0x0071,    0,    0, NULL },                               /* 0x71 */
787     { 0x0072,    0,    0, NULL },                               /* 0x72 */
788     { 0x0073,    0,    0, NULL },                               /* 0x73 */
789     { 0x0074,    0,    0, NULL },                               /* 0x74 */
790     { 0x0075,    0,    0, NULL },                               /* 0x75 */
791     { 0x0076,    0,    0, NULL },                               /* 0x76 */
792     { 0x0077,    0,    0, NULL },                               /* 0x77 */
793     { 0x0078,    0,    0, NULL },                               /* 0x78 */
794     { 0x0079,    0,    0, NULL },                               /* 0x79 */
795     { 0x007A,    0,    0, NULL },                               /* 0x7A */
796     { 0x007B,    0,    0, NULL },                               /* 0x7B */
797     { 0x007C,    0,    0, NULL },                               /* 0x7C */
798     { 0x007D,    0,    0, NULL },                               /* 0x7D */
799     { 0x007E,    0,    0, NULL },                               /* 0x7E */
800     { 0x007F,    0,    0, NULL },                               /* 0x7F */
801     { 0x0080,    0,    0, NULL },                               /* 0x80 */
802     { 0x0081,    0,    0, NULL },                               /* 0x81 */
803     { 0x0082,    0,    0, NULL },                               /* 0x82 */
804     { 0x0083,    0,    0, NULL },                               /* 0x83 */
805     {      0, 0x44, 0xE1, aImplDBCSToUniTab_JOHAB_84 },         /* 0x84 */
806     {      0, 0x41, 0xE1, aImplDBCSToUniTab_JOHAB_85 },         /* 0x85 */
807     {      0, 0x41, 0xE1, aImplDBCSToUniTab_JOHAB_86 },         /* 0x86 */
808     {      0, 0x41, 0xA1, aImplDBCSToUniTab_JOHAB_87 },         /* 0x87 */
809     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_88 },         /* 0x88 */
810     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_89 },         /* 0x89 */
811     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_8A },         /* 0x8A */
812     {      0, 0x41, 0xBD, aImplDBCSToUniTab_JOHAB_8B },         /* 0x8B */
813     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_8C },         /* 0x8C */
814     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_8D },         /* 0x8D */
815     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_8E },         /* 0x8E */
816     {      0, 0x41, 0xBD, aImplDBCSToUniTab_JOHAB_8F },         /* 0x8F */
817     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_90 },         /* 0x90 */
818     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_91 },         /* 0x91 */
819     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_92 },         /* 0x92 */
820     {      0, 0x41, 0xBD, aImplDBCSToUniTab_JOHAB_93 },         /* 0x93 */
821     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_94 },         /* 0x94 */
822     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_95 },         /* 0x95 */
823     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_96 },         /* 0x96 */
824     {      0, 0x41, 0xBD, aImplDBCSToUniTab_JOHAB_97 },         /* 0x97 */
825     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_98 },         /* 0x98 */
826     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_99 },         /* 0x99 */
827     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_9A },         /* 0x9A */
828     {      0, 0x41, 0xBD, aImplDBCSToUniTab_JOHAB_9B },         /* 0x9B */
829     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_9C },         /* 0x9C */
830     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_9D },         /* 0x9D */
831     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_9E },         /* 0x9E */
832     {      0, 0x41, 0xBD, aImplDBCSToUniTab_JOHAB_9F },         /* 0x9F */
833     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_A0 },         /* 0xA0 */
834     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_A1 },         /* 0xA1 */
835     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_A2 },         /* 0xA2 */
836     {      0, 0x41, 0xBD, aImplDBCSToUniTab_JOHAB_A3 },         /* 0xA3 */
837     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_A4 },         /* 0xA4 */
838     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_A5 },         /* 0xA5 */
839     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_A6 },         /* 0xA6 */
840     {      0, 0x41, 0xBD, aImplDBCSToUniTab_JOHAB_A7 },         /* 0xA7 */
841     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_A8 },         /* 0xA8 */
842     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_A9 },         /* 0xA9 */
843     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_AA },         /* 0xAA */
844     {      0, 0x41, 0xBD, aImplDBCSToUniTab_JOHAB_AB },         /* 0xAB */
845     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_AC },         /* 0xAC */
846     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_AD },         /* 0xAD */
847     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_AE },         /* 0xAE */
848     {      0, 0x41, 0xBD, aImplDBCSToUniTab_JOHAB_AF },         /* 0xAF */
849     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_B0 },         /* 0xB0 */
850     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_B1 },         /* 0xB1 */
851     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_B2 },         /* 0xB2 */
852     {      0, 0x41, 0xBD, aImplDBCSToUniTab_JOHAB_B3 },         /* 0xB3 */
853     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_B4 },         /* 0xB4 */
854     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_B5 },         /* 0xB5 */
855     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_B6 },         /* 0xB6 */
856     {      0, 0x41, 0xBD, aImplDBCSToUniTab_JOHAB_B7 },         /* 0xB7 */
857     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_B8 },         /* 0xB8 */
858     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_B9 },         /* 0xB9 */
859     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_BA },         /* 0xBA */
860     {      0, 0x41, 0xBD, aImplDBCSToUniTab_JOHAB_BB },         /* 0xBB */
861     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_BC },         /* 0xBC */
862     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_BD },         /* 0xBD */
863     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_BE },         /* 0xBE */
864     {      0, 0x41, 0xBD, aImplDBCSToUniTab_JOHAB_BF },         /* 0xBF */
865     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_C0 },         /* 0xC0 */
866     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_C1 },         /* 0xC1 */
867     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_C2 },         /* 0xC2 */
868     {      0, 0x41, 0xBD, aImplDBCSToUniTab_JOHAB_C3 },         /* 0xC3 */
869     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_C4 },         /* 0xC4 */
870     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_C5 },         /* 0xC5 */
871     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_C6 },         /* 0xC6 */
872     {      0, 0x41, 0xBD, aImplDBCSToUniTab_JOHAB_C7 },         /* 0xC7 */
873     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_C8 },         /* 0xC8 */
874     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_C9 },         /* 0xC9 */
875     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_CA },         /* 0xCA */
876     {      0, 0x41, 0xBD, aImplDBCSToUniTab_JOHAB_CB },         /* 0xCB */
877     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_CC },         /* 0xCC */
878     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_CD },         /* 0xCD */
879     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_CE },         /* 0xCE */
880     {      0, 0x41, 0xBD, aImplDBCSToUniTab_JOHAB_CF },         /* 0xCF */
881     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_D0 },         /* 0xD0 */
882     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_D1 },         /* 0xD1 */
883     {      0, 0x41, 0xFD, aImplDBCSToUniTab_JOHAB_D2 },         /* 0xD2 */
884     {      0, 0x41, 0xBD, aImplDBCSToUniTab_JOHAB_D3 },         /* 0xD3 */
885     {      0,    1,    0, NULL },                               /* 0xD4 */
886     {      0,    1,    0, NULL },                               /* 0xD5 */
887     {      0,    1,    0, NULL },                               /* 0xD6 */
888     {      0,    1,    0, NULL },                               /* 0xD7 */
889     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0xD8 */ /* We convert this as double byte */
890     {      0, 0x31, 0xE5, aImplDBCSToUniTab_JOHAB_D9 },         /* 0xD9 */
891     {      0, 0x31, 0xFE, aImplDBCSToUniTab_JOHAB_DA },         /* 0xDA */
892     {      0, 0x31, 0xE4, aImplDBCSToUniTab_JOHAB_DB },         /* 0xDB */
893     {      0, 0x31, 0xFE, aImplDBCSToUniTab_JOHAB_DC },         /* 0xDC */
894     {      0, 0x31, 0xF3, aImplDBCSToUniTab_JOHAB_DD },         /* 0xDD */
895     {      0, 0x31, 0xF1, aImplDBCSToUniTab_JOHAB_DE },         /* 0xDE */
896     {      0,    1,    0, aImplDoubleByteIdentifierTab },       /* 0xDF */ /* We convert this as double byte */
897     {      0, 0x31, 0xFE, aImplDBCSToUniTab_JOHAB_E0 },         /* 0xE0 */
898     {      0, 0x31, 0xFE, aImplDBCSToUniTab_JOHAB_E1 },         /* 0xE1 */
899     {      0, 0x31, 0xFE, aImplDBCSToUniTab_JOHAB_E2 },         /* 0xE2 */
900     {      0, 0x31, 0xFE, aImplDBCSToUniTab_JOHAB_E3 },         /* 0xE3 */
901     {      0, 0x31, 0xFE, aImplDBCSToUniTab_JOHAB_E4 },         /* 0xE4 */
902     {      0, 0x31, 0xFE, aImplDBCSToUniTab_JOHAB_E5 },         /* 0xE5 */
903     {      0, 0x31, 0xFE, aImplDBCSToUniTab_JOHAB_E6 },         /* 0xE6 */
904     {      0, 0x31, 0xFE, aImplDBCSToUniTab_JOHAB_E7 },         /* 0xE7 */
905     {      0, 0x31, 0xFE, aImplDBCSToUniTab_JOHAB_E8 },         /* 0xE8 */
906     {      0, 0x31, 0xFE, aImplDBCSToUniTab_JOHAB_E9 },         /* 0xE9 */
907     {      0, 0x31, 0xFE, aImplDBCSToUniTab_JOHAB_EA },         /* 0xEA */
908     {      0, 0x31, 0xFE, aImplDBCSToUniTab_JOHAB_EB },         /* 0xEB */
909     {      0, 0x31, 0xFE, aImplDBCSToUniTab_JOHAB_EC },         /* 0xEC */
910     {      0, 0x31, 0xFE, aImplDBCSToUniTab_JOHAB_ED },         /* 0xED */
911     {      0, 0x31, 0xFE, aImplDBCSToUniTab_JOHAB_EE },         /* 0xEE */
912     {      0, 0x31, 0xFE, aImplDBCSToUniTab_JOHAB_EF },         /* 0xEF */
913     {      0, 0x31, 0xFE, aImplDBCSToUniTab_JOHAB_F0 },         /* 0xF0 */
914     {      0, 0x31, 0xFE, aImplDBCSToUniTab_JOHAB_F1 },         /* 0xF1 */
915     {      0, 0x31, 0xFE, aImplDBCSToUniTab_JOHAB_F2 },         /* 0xF2 */
916     {      0, 0x31, 0xFE, aImplDBCSToUniTab_JOHAB_F3 },         /* 0xF3 */
917     {      0, 0x31, 0xFE, aImplDBCSToUniTab_JOHAB_F4 },         /* 0xF4 */
918     {      0, 0x31, 0xFE, aImplDBCSToUniTab_JOHAB_F5 },         /* 0xF5 */
919     {      0, 0x31, 0xFE, aImplDBCSToUniTab_JOHAB_F6 },         /* 0xF6 */
920     {      0, 0x31, 0xFE, aImplDBCSToUniTab_JOHAB_F7 },         /* 0xF7 */
921     {      0, 0x31, 0xFE, aImplDBCSToUniTab_JOHAB_F8 },         /* 0xF8 */
922     {      0, 0x31, 0xFE, aImplDBCSToUniTab_JOHAB_F9 },         /* 0xF9 */
923     {      0,    1,    0, NULL },                               /* 0xFA */
924     {      0,    1,    0, NULL },                               /* 0xFB */
925     {      0,    1,    0, NULL },                               /* 0xFC */
926     {      0,    1,    0, NULL },                               /* 0xFD */
927     {      0,    1,    0, NULL },                               /* 0xFE */
928     {      0,    1,    0, NULL }                                /* 0xFF */
931 /* ----------------------------------------------------------------------- */
933 static ImplUniToDBCSHighTab const aJOHABDBCSHighTab[256] =
935     { 0x00, 0xFE, aImplUniToDBCSTab_JOHAB_00 },                 /* 0x00 */
936     { 0x11, 0x67, aImplUniToDBCSTab_JOHAB_01 },                 /* 0x01 */
937     { 0xC7, 0xDD, aImplUniToDBCSTab_JOHAB_02 },                 /* 0x02 */
938     { 0x91, 0xC9, aImplUniToDBCSTab_JOHAB_03 },                 /* 0x03 */
939     { 0x01, 0x51, aImplUniToDBCSTab_JOHAB_04 },                 /* 0x04 */
940     {    1,    0, NULL },                                       /* 0x05 */
941     {    1,    0, NULL },                                       /* 0x06 */
942     {    1,    0, NULL },                                       /* 0x07 */
943     {    1,    0, NULL },                                       /* 0x08 */
944     {    1,    0, NULL },                                       /* 0x09 */
945     {    1,    0, NULL },                                       /* 0x0A */
946     {    1,    0, NULL },                                       /* 0x0B */
947     {    1,    0, NULL },                                       /* 0x0C */
948     {    1,    0, NULL },                                       /* 0x0D */
949     {    1,    0, NULL },                                       /* 0x0E */
950     {    1,    0, NULL },                                       /* 0x0F */
951     {    1,    0, NULL },                                       /* 0x10 */
952     {    1,    0, NULL },                                       /* 0x11 */
953     {    1,    0, NULL },                                       /* 0x12 */
954     {    1,    0, NULL },                                       /* 0x13 */
955     {    1,    0, NULL },                                       /* 0x14 */
956     {    1,    0, NULL },                                       /* 0x15 */
957     {    1,    0, NULL },                                       /* 0x16 */
958     {    1,    0, NULL },                                       /* 0x17 */
959     {    1,    0, NULL },                                       /* 0x18 */
960     {    1,    0, NULL },                                       /* 0x19 */
961     {    1,    0, NULL },                                       /* 0x1A */
962     {    1,    0, NULL },                                       /* 0x1B */
963     {    1,    0, NULL },                                       /* 0x1C */
964     {    1,    0, NULL },                                       /* 0x1D */
965     {    1,    0, NULL },                                       /* 0x1E */
966     {    1,    0, NULL },                                       /* 0x1F */
967     { 0x15, 0xA9, aImplUniToDBCSTab_JOHAB_20 },                 /* 0x20 */
968     { 0x03, 0xD4, aImplUniToDBCSTab_JOHAB_21 },                 /* 0x21 */
969     { 0x00, 0xA5, aImplUniToDBCSTab_JOHAB_22 },                 /* 0x22 */
970     { 0x12, 0x12, aImplUniToDBCSTab_JOHAB_23 },                 /* 0x23 */
971     { 0x60, 0xE9, aImplUniToDBCSTab_JOHAB_24 },                 /* 0x24 */
972     { 0x00, 0xD1, aImplUniToDBCSTab_JOHAB_25 },                 /* 0x25 */
973     { 0x05, 0x6D, aImplUniToDBCSTab_JOHAB_26 },                 /* 0x26 */
974     {    1,    0, NULL },                                       /* 0x27 */
975     {    1,    0, NULL },                                       /* 0x28 */
976     {    1,    0, NULL },                                       /* 0x29 */
977     {    1,    0, NULL },                                       /* 0x2A */
978     {    1,    0, NULL },                                       /* 0x2B */
979     {    1,    0, NULL },                                       /* 0x2C */
980     {    1,    0, NULL },                                       /* 0x2D */
981     {    1,    0, NULL },                                       /* 0x2E */
982     {    1,    0, NULL },                                       /* 0x2F */
983     { 0x00, 0xF7, aImplUniToDBCSTab_JOHAB_30 },                 /* 0x30 */
984     { 0x31, 0x8E, aImplUniToDBCSTab_JOHAB_31 },                 /* 0x31 */
985     { 0x00, 0x7F, aImplUniToDBCSTab_JOHAB_32 },                 /* 0x32 */
986     { 0x80, 0xDD, aImplUniToDBCSTab_JOHAB_33 },                 /* 0x33 */
987     {    1,    0, NULL },                                       /* 0x34 */
988     {    1,    0, NULL },                                       /* 0x35 */
989     {    1,    0, NULL },                                       /* 0x36 */
990     {    1,    0, NULL },                                       /* 0x37 */
991     {    1,    0, NULL },                                       /* 0x38 */
992     {    1,    0, NULL },                                       /* 0x39 */
993     {    1,    0, NULL },                                       /* 0x3A */
994     {    1,    0, NULL },                                       /* 0x3B */
995     {    1,    0, NULL },                                       /* 0x3C */
996     {    1,    0, NULL },                                       /* 0x3D */
997     {    1,    0, NULL },                                       /* 0x3E */
998     {    1,    0, NULL },                                       /* 0x3F */
999     {    1,    0, NULL },                                       /* 0x40 */
1000     {    1,    0, NULL },                                       /* 0x41 */
1001     {    1,    0, NULL },                                       /* 0x42 */
1002     {    1,    0, NULL },                                       /* 0x43 */
1003     {    1,    0, NULL },                                       /* 0x44 */
1004     {    1,    0, NULL },                                       /* 0x45 */
1005     {    1,    0, NULL },                                       /* 0x46 */
1006     {    1,    0, NULL },                                       /* 0x47 */
1007     {    1,    0, NULL },                                       /* 0x48 */
1008     {    1,    0, NULL },                                       /* 0x49 */
1009     {    1,    0, NULL },                                       /* 0x4A */
1010     {    1,    0, NULL },                                       /* 0x4B */
1011     {    1,    0, NULL },                                       /* 0x4C */
1012     {    1,    0, NULL },                                       /* 0x4D */
1013     { 0x00, 0xFB, aImplUniToDBCSTab_JOHAB_4E },                 /* 0x4E */
1014     { 0x01, 0xFA, aImplUniToDBCSTab_JOHAB_4F },                 /* 0x4F */
1015     { 0x02, 0xFF, aImplUniToDBCSTab_JOHAB_50 },                 /* 0x50 */
1016     { 0x00, 0xFD, aImplUniToDBCSTab_JOHAB_51 },                 /* 0x51 */
1017     { 0x00, 0xFF, aImplUniToDBCSTab_JOHAB_52 },                 /* 0x52 */
1018     { 0x05, 0xF8, aImplUniToDBCSTab_JOHAB_53 },                 /* 0x53 */
1019     { 0x03, 0xFA, aImplUniToDBCSTab_JOHAB_54 },                 /* 0x54 */
1020     { 0x04, 0xFE, aImplUniToDBCSTab_JOHAB_55 },                 /* 0x55 */
1021     { 0x06, 0xFA, aImplUniToDBCSTab_JOHAB_56 },                 /* 0x56 */
1022     { 0x03, 0xFC, aImplUniToDBCSTab_JOHAB_57 },                 /* 0x57 */
1023     { 0x00, 0xFD, aImplUniToDBCSTab_JOHAB_58 },                 /* 0x58 */
1024     { 0x07, 0xFF, aImplUniToDBCSTab_JOHAB_59 },                 /* 0x59 */
1025     { 0x01, 0xE9, aImplUniToDBCSTab_JOHAB_5A },                 /* 0x5A */
1026     { 0x05, 0xFA, aImplUniToDBCSTab_JOHAB_5B },                 /* 0x5B */
1027     { 0x01, 0xFD, aImplUniToDBCSTab_JOHAB_5C },                 /* 0x5C */
1028     { 0x07, 0xFE, aImplUniToDBCSTab_JOHAB_5D },                 /* 0x5D */
1029     { 0x02, 0xFB, aImplUniToDBCSTab_JOHAB_5E },                 /* 0x5E */
1030     { 0x01, 0xFF, aImplUniToDBCSTab_JOHAB_5F },                 /* 0x5F */
1031     { 0x07, 0xFB, aImplUniToDBCSTab_JOHAB_60 },                 /* 0x60 */
1032     { 0x01, 0xFF, aImplUniToDBCSTab_JOHAB_61 },                 /* 0x61 */
1033     { 0x00, 0xFF, aImplUniToDBCSTab_JOHAB_62 },                 /* 0x62 */
1034     { 0x01, 0xF7, aImplUniToDBCSTab_JOHAB_63 },                 /* 0x63 */
1035     { 0x0D, 0xFE, aImplUniToDBCSTab_JOHAB_64 },                 /* 0x64 */
1036     { 0x00, 0xFF, aImplUniToDBCSTab_JOHAB_65 },                 /* 0x65 */
1037     { 0x06, 0xFF, aImplUniToDBCSTab_JOHAB_66 },                 /* 0x66 */
1038     { 0x00, 0xFE, aImplUniToDBCSTab_JOHAB_67 },                 /* 0x67 */
1039     { 0x12, 0xFA, aImplUniToDBCSTab_JOHAB_68 },                 /* 0x68 */
1040     { 0x00, 0xFF, aImplUniToDBCSTab_JOHAB_69 },                 /* 0x69 */
1041     { 0x02, 0xFB, aImplUniToDBCSTab_JOHAB_6A },                 /* 0x6A */
1042     { 0x04, 0xEC, aImplUniToDBCSTab_JOHAB_6B },                 /* 0x6B */
1043     { 0x08, 0xF3, aImplUniToDBCSTab_JOHAB_6C },                 /* 0x6C */
1044     { 0x03, 0xFB, aImplUniToDBCSTab_JOHAB_6D },                 /* 0x6D */
1045     { 0x17, 0xFF, aImplUniToDBCSTab_JOHAB_6E },                 /* 0x6E */
1046     { 0x01, 0xFE, aImplUniToDBCSTab_JOHAB_6F },                 /* 0x6F */
1047     { 0x01, 0xFD, aImplUniToDBCSTab_JOHAB_70 },                 /* 0x70 */
1048     { 0x04, 0xFF, aImplUniToDBCSTab_JOHAB_71 },                 /* 0x71 */
1049     { 0x00, 0xFD, aImplUniToDBCSTab_JOHAB_72 },                 /* 0x72 */
1050     { 0x02, 0xFE, aImplUniToDBCSTab_JOHAB_73 },                 /* 0x73 */
1051     { 0x01, 0xF7, aImplUniToDBCSTab_JOHAB_74 },                 /* 0x74 */
1052     { 0x01, 0xFC, aImplUniToDBCSTab_JOHAB_75 },                 /* 0x75 */
1053     { 0x00, 0xFE, aImplUniToDBCSTab_JOHAB_76 },                 /* 0x76 */
1054     { 0x01, 0xFB, aImplUniToDBCSTab_JOHAB_77 },                 /* 0x77 */
1055     { 0x02, 0xFB, aImplUniToDBCSTab_JOHAB_78 },                 /* 0x78 */
1056     { 0x01, 0xFB, aImplUniToDBCSTab_JOHAB_79 },                 /* 0x79 */
1057     { 0x00, 0xFF, aImplUniToDBCSTab_JOHAB_7A },                 /* 0x7A */
1058     { 0x0F, 0xE9, aImplUniToDBCSTab_JOHAB_7B },                 /* 0x7B */
1059     { 0x07, 0xFE, aImplUniToDBCSTab_JOHAB_7C },                 /* 0x7C */
1060     { 0x00, 0xFB, aImplUniToDBCSTab_JOHAB_7D },                 /* 0x7D */
1061     { 0x09, 0x9C, aImplUniToDBCSTab_JOHAB_7E },                 /* 0x7E */
1062     { 0x36, 0xFC, aImplUniToDBCSTab_JOHAB_7F },                 /* 0x7F */
1063     { 0x00, 0xFD, aImplUniToDBCSTab_JOHAB_80 },                 /* 0x80 */
1064     { 0x02, 0xFE, aImplUniToDBCSTab_JOHAB_81 },                 /* 0x81 */
1065     { 0x05, 0xFE, aImplUniToDBCSTab_JOHAB_82 },                 /* 0x82 */
1066     { 0x01, 0xFD, aImplUniToDBCSTab_JOHAB_83 },                 /* 0x83 */
1067     { 0x03, 0xFC, aImplUniToDBCSTab_JOHAB_84 },                 /* 0x84 */
1068     { 0x11, 0xFF, aImplUniToDBCSTab_JOHAB_85 },                 /* 0x85 */
1069     { 0x02, 0xFE, aImplUniToDBCSTab_JOHAB_86 },                 /* 0x86 */
1070     { 0x00, 0xFE, aImplUniToDBCSTab_JOHAB_87 },                 /* 0x87 */
1071     { 0x05, 0xFD, aImplUniToDBCSTab_JOHAB_88 },                 /* 0x88 */
1072     { 0x07, 0xF8, aImplUniToDBCSTab_JOHAB_89 },                 /* 0x89 */
1073     { 0x00, 0xFE, aImplUniToDBCSTab_JOHAB_8A },                 /* 0x8A */
1074     { 0x00, 0x9A, aImplUniToDBCSTab_JOHAB_8B },                 /* 0x8B */
1075     { 0x37, 0xFD, aImplUniToDBCSTab_JOHAB_8C },                 /* 0x8C */
1076     { 0x04, 0xFB, aImplUniToDBCSTab_JOHAB_8D },                 /* 0x8D */
1077     { 0x0A, 0xFE, aImplUniToDBCSTab_JOHAB_8E },                 /* 0x8E */
1078     { 0x03, 0xFD, aImplUniToDBCSTab_JOHAB_8F },                 /* 0x8F */
1079     { 0x00, 0xFD, aImplUniToDBCSTab_JOHAB_90 },                 /* 0x90 */
1080     { 0x02, 0xF5, aImplUniToDBCSTab_JOHAB_91 },                 /* 0x91 */
1081     { 0x0D, 0xFC, aImplUniToDBCSTab_JOHAB_92 },                 /* 0x92 */
1082     { 0x04, 0xF6, aImplUniToDBCSTab_JOHAB_93 },                 /* 0x93 */
1083     { 0x04, 0x7F, aImplUniToDBCSTab_JOHAB_94 },                 /* 0x94 */
1084     { 0x77, 0xE2, aImplUniToDBCSTab_JOHAB_95 },                 /* 0x95 */
1085     { 0x1C, 0xFB, aImplUniToDBCSTab_JOHAB_96 },                 /* 0x96 */
1086     { 0x00, 0xFF, aImplUniToDBCSTab_JOHAB_97 },                 /* 0x97 */
1087     { 0x00, 0xFE, aImplUniToDBCSTab_JOHAB_98 },                 /* 0x98 */
1088     { 0x03, 0xFF, aImplUniToDBCSTab_JOHAB_99 },                 /* 0x99 */
1089     { 0x01, 0xEE, aImplUniToDBCSTab_JOHAB_9A },                 /* 0x9A */
1090     { 0x1A, 0xE8, aImplUniToDBCSTab_JOHAB_9B },                 /* 0x9B */
1091     { 0x0D, 0xF6, aImplUniToDBCSTab_JOHAB_9C },                 /* 0x9C */
1092     { 0x09, 0xFA, aImplUniToDBCSTab_JOHAB_9D },                 /* 0x9D */
1093     { 0x1A, 0xF4, aImplUniToDBCSTab_JOHAB_9E },                 /* 0x9E */
1094     { 0x07, 0x9C, aImplUniToDBCSTab_JOHAB_9F },                 /* 0x9F */
1095     {    1,    0, NULL },                                       /* 0xA0 */
1096     {    1,    0, NULL },                                       /* 0xA1 */
1097     {    1,    0, NULL },                                       /* 0xA2 */
1098     {    1,    0, NULL },                                       /* 0xA3 */
1099     {    1,    0, NULL },                                       /* 0xA4 */
1100     {    1,    0, NULL },                                       /* 0xA5 */
1101     {    1,    0, NULL },                                       /* 0xA6 */
1102     {    1,    0, NULL },                                       /* 0xA7 */
1103     {    1,    0, NULL },                                       /* 0xA8 */
1104     {    1,    0, NULL },                                       /* 0xA9 */
1105     {    1,    0, NULL },                                       /* 0xAA */
1106     {    1,    0, NULL },                                       /* 0xAB */
1107     { 0x00, 0xFF, aImplUniToDBCSTab_JOHAB_AC },                 /* 0xAC */
1108     { 0x00, 0xFF, aImplUniToDBCSTab_JOHAB_AD },                 /* 0xAD */
1109     { 0x00, 0xFF, aImplUniToDBCSTab_JOHAB_AE },                 /* 0xAE */
1110     { 0x00, 0xFF, aImplUniToDBCSTab_JOHAB_AF },                 /* 0xAF */
1111     { 0x00, 0xFF, aImplUniToDBCSTab_JOHAB_B0 },                 /* 0xB0 */
1112     { 0x00, 0xFF, aImplUniToDBCSTab_JOHAB_B1 },                 /* 0xB1 */
1113     { 0x00, 0xFF, aImplUniToDBCSTab_JOHAB_B2 },                 /* 0xB2 */
1114     { 0x00, 0xFF, aImplUniToDBCSTab_JOHAB_B3 },                 /* 0xB3 */
1115     { 0x00, 0xFF, aImplUniToDBCSTab_JOHAB_B4 },                 /* 0xB4 */
1116     { 0x00, 0xFF, aImplUniToDBCSTab_JOHAB_B5 },                 /* 0xB5 */
1117     { 0x00, 0xFF, aImplUniToDBCSTab_JOHAB_B6 },                 /* 0xB6 */
1118     { 0x00, 0xFF, aImplUniToDBCSTab_JOHAB_B7 },                 /* 0xB7 */
1119     { 0x00, 0xFF, aImplUniToDBCSTab_JOHAB_B8 },                 /* 0xB8 */
1120     { 0x00, 0xFF, aImplUniToDBCSTab_JOHAB_B9 },                 /* 0xB9 */
1121     { 0x00, 0xFF, aImplUniToDBCSTab_JOHAB_BA },                 /* 0xBA */
1122     { 0x00, 0xFF, aImplUniToDBCSTab_JOHAB_BB },                 /* 0xBB */
1123     { 0x00, 0xFF, aImplUniToDBCSTab_JOHAB_BC },                 /* 0xBC */
1124     { 0x00, 0xFF, aImplUniToDBCSTab_JOHAB_BD },                 /* 0xBD */
1125     { 0x00, 0xFF, aImplUniToDBCSTab_JOHAB_BE },                 /* 0xBE */
1126     { 0x00, 0xFF, aImplUniToDBCSTab_JOHAB_BF },                 /* 0xBF */
1127     { 0x00, 0xFF, aImplUniToDBCSTab_JOHAB_C0 },                 /* 0xC0 */
1128     { 0x00, 0xFF, aImplUniToDBCSTab_JOHAB_C1 },                 /* 0xC1 */
1129     { 0x00, 0xFF, aImplUniToDBCSTab_JOHAB_C2 },                 /* 0xC2 */
1130     { 0x00, 0xFF, aImplUniToDBCSTab_JOHAB_C3 },                 /* 0xC3 */
1131     { 0x00, 0xFF, aImplUniToDBCSTab_JOHAB_C4 },                 /* 0xC4 */
1132     { 0x00, 0xFF, aImplUniToDBCSTab_JOHAB_C5 },                 /* 0xC5 */
1133     { 0x00, 0xFF, aImplUniToDBCSTab_JOHAB_C6 },                 /* 0xC6 */
1134     { 0x00, 0xFF, aImplUniToDBCSTab_JOHAB_C7 },                 /* 0xC7 */
1135     { 0x00, 0xFF, aImplUniToDBCSTab_JOHAB_C8 },                 /* 0xC8 */
1136     { 0x00, 0xFF, aImplUniToDBCSTab_JOHAB_C9 },                 /* 0xC9 */
1137     { 0x00, 0xFF, aImplUniToDBCSTab_JOHAB_CA },                 /* 0xCA */
1138     { 0x00, 0xFF, aImplUniToDBCSTab_JOHAB_CB },                 /* 0xCB */
1139     { 0x00, 0xFF, aImplUniToDBCSTab_JOHAB_CC },                 /* 0xCC */
1140     { 0x00, 0xFF, aImplUniToDBCSTab_JOHAB_CD },                 /* 0xCD */
1141     { 0x00, 0xFF, aImplUniToDBCSTab_JOHAB_CE },                 /* 0xCE */
1142     { 0x00, 0xFF, aImplUniToDBCSTab_JOHAB_CF },                 /* 0xCF */
1143     { 0x00, 0xFF, aImplUniToDBCSTab_JOHAB_D0 },                 /* 0xD0 */
1144     { 0x00, 0xFF, aImplUniToDBCSTab_JOHAB_D1 },                 /* 0xD1 */
1145     { 0x00, 0xFF, aImplUniToDBCSTab_JOHAB_D2 },                 /* 0xD2 */
1146     { 0x00, 0xFF, aImplUniToDBCSTab_JOHAB_D3 },                 /* 0xD3 */
1147     { 0x00, 0xFF, aImplUniToDBCSTab_JOHAB_D4 },                 /* 0xD4 */
1148     { 0x00, 0xFF, aImplUniToDBCSTab_JOHAB_D5 },                 /* 0xD5 */
1149     { 0x00, 0xFF, aImplUniToDBCSTab_JOHAB_D6 },                 /* 0xD6 */
1150     { 0x00, 0xA3, aImplUniToDBCSTab_JOHAB_D7 },                 /* 0xD7 */
1151     {    1,    0, NULL },                                       /* 0xD8 */
1152     {    1,    0, NULL },                                       /* 0xD9 */
1153     {    1,    0, NULL },                                       /* 0xDA */
1154     {    1,    0, NULL },                                       /* 0xDB */
1155     {    1,    0, NULL },                                       /* 0xDC */
1156     {    1,    0, NULL },                                       /* 0xDD */
1157     {    1,    0, NULL },                                       /* 0xDE */
1158     {    1,    0, NULL },                                       /* 0xDF */
1159     {    1,    0, NULL },                                       /* 0xE0 */
1160     {    1,    0, NULL },                                       /* 0xE1 */
1161     {    1,    0, NULL },                                       /* 0xE2 */
1162     {    1,    0, NULL },                                       /* 0xE3 */
1163     {    1,    0, NULL },                                       /* 0xE4 */
1164     {    1,    0, NULL },                                       /* 0xE5 */
1165     {    1,    0, NULL },                                       /* 0xE6 */
1166     {    1,    0, NULL },                                       /* 0xE7 */
1167     {    1,    0, NULL },                                       /* 0xE8 */
1168     {    1,    0, NULL },                                       /* 0xE9 */
1169     {    1,    0, NULL },                                       /* 0xEA */
1170     {    1,    0, NULL },                                       /* 0xEB */
1171     {    1,    0, NULL },                                       /* 0xEC */
1172     {    1,    0, NULL },                                       /* 0xED */
1173     {    1,    0, NULL },                                       /* 0xEE */
1174     {    1,    0, NULL },                                       /* 0xEF */
1175     {    1,    0, NULL },                                       /* 0xF0 */
1176     {    1,    0, NULL },                                       /* 0xF1 */
1177     {    1,    0, NULL },                                       /* 0xF2 */
1178     {    1,    0, NULL },                                       /* 0xF3 */
1179     {    1,    0, NULL },                                       /* 0xF4 */
1180     {    1,    0, NULL },                                       /* 0xF5 */
1181     {    1,    0, NULL },                                       /* 0xF6 */
1182     {    1,    0, NULL },                                       /* 0xF7 */
1183     {    1,    0, NULL },                                       /* 0xF8 */
1184     { 0x00, 0xFF, aImplUniToDBCSTab_JOHAB_F9 },                 /* 0xF9 */
1185     { 0x00, 0x0B, aImplUniToDBCSTab_JOHAB_FA },                 /* 0xFA */
1186     {    1,    0, NULL },                                       /* 0xFB */
1187     {    1,    0, NULL },                                       /* 0xFC */
1188     {    1,    0, NULL },                                       /* 0xFD */
1189     {    1,    0, NULL },                                       /* 0xFE */
1190     { 0x01, 0xE6, aImplUniToDBCSTab_JOHAB_FF }                  /* 0xFF */
1193 /* ----------------------------------------------------------------------- */
1195 /* D831-D87E    -> E000-E05D */
1196 /* D891-D8FE    -> E05E-E0BB */
1198 #define DBCS_EUDC_MS1361_COUNT    2
1199 static ImplDBCSEUDCData const aImplMS1361DBCSEUDCTab[DBCS_EUDC_MS1361_COUNT] =
1201     /* EUDC-Range */
1202     /* Lead:    D8-D8 */
1203     /* Trail:   31-7E */
1204     { 0xD8, 0xD8, 0x31, 0x7E, 0, 0, 0, 0, 1, 0x5D, 0xE000, 0xE05D },
1205     /* Lead:    D8-D8 */
1206     /* Trail:   91-FE */
1207     { 0xD8, 0xD8, 0x91, 0xFE, 0, 0, 0, 0, 1, 0x5D, 0xE05E, 0xE0BB }
1210 /* ----------------------------------------------------------------------- */
1212 static ImplDBCSConvertData const aImplJOHABDBCSCvtData =
1214     aJOHABUniLeadTab,
1215     aJOHABDBCSHighTab,
1216     0x00, 0xFF,
1217     0x31, 0xFE,
1218     aImplMS1361DBCSEUDCTab,
1219     DBCS_EUDC_MS1361_COUNT
1222 /* ======================================================================= */
1224 static ImplTextEncodingData const aImplMS1361TextEncodingData
1225     = { { &aImplJOHABDBCSCvtData,
1226           ImplDBCSToUnicode,
1227           ImplUnicodeToDBCS,
1228           NULL,
1229           NULL,
1230           NULL,
1231           NULL,
1232           NULL,
1233           NULL },
1234         1,
1235         2,
1236         2,
1237         130,
1238         "euc-kr",
1239         "euc-kr",
1240         RTL_TEXTENCODING_INFO_MULTIBYTE | RTL_TEXTENCODING_INFO_MIME };
1241     /* SCRIPT_KOREAN, pc code page 1361, mac encoding 3 */