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