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