/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: tcvtscn6.tab,v $ * * $Revision: 1.11 $ * * last change: $Author: rt $ $Date: 2005-09-08 16:43:12 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. * * * GNU Lesser General Public License Version 2.1 * ============================================= * Copyright 2005 by Sun Microsystems, Inc. * 901 San Antonio Road, Palo Alto, CA 94303, USA * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 2.1, as published by the Free Software Foundation. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, * MA 02111-1307 USA * ************************************************************************/ /* ======================================================================= */ /* This file contain the information tables for all */ /* chinese simplified (China) charsets: */ /* GB2312, GBK, MS936, APPLE_CHINSIMP */ /* GBK is MS-CP 936 and a superset of GB-2312-80. In GB-2312-80 the range */ /* is 0xA1-0xFE for the leading byte and 0xA1-0xFE for the trailing byte. */ /* In GBK the range is from 0x81-0xFE for the leading byte and 0x40-0xFE */ /* for the trailing byte. */ /* ======================================================================= */ #define GBKOFF 0x61 /* ======================================================================= */ static ImplDBCSToUniLeadTab const aGB2312UniLeadTab[256] = { { 0x0000, 0, 0, NULL }, /* 0x00 */ { 0x0001, 0, 0, NULL }, /* 0x01 */ { 0x0002, 0, 0, NULL }, /* 0x02 */ { 0x0003, 0, 0, NULL }, /* 0x03 */ { 0x0004, 0, 0, NULL }, /* 0x04 */ { 0x0005, 0, 0, NULL }, /* 0x05 */ { 0x0006, 0, 0, NULL }, /* 0x06 */ { 0x0007, 0, 0, NULL }, /* 0x07 */ { 0x0008, 0, 0, NULL }, /* 0x08 */ { 0x0009, 0, 0, NULL }, /* 0x09 */ { 0x000A, 0, 0, NULL }, /* 0x0A */ { 0x000B, 0, 0, NULL }, /* 0x0B */ { 0x000C, 0, 0, NULL }, /* 0x0C */ { 0x000D, 0, 0, NULL }, /* 0x0D */ { 0x000E, 0, 0, NULL }, /* 0x0E */ { 0x000F, 0, 0, NULL }, /* 0x0F */ { 0x0010, 0, 0, NULL }, /* 0x10 */ { 0x0011, 0, 0, NULL }, /* 0x11 */ { 0x0012, 0, 0, NULL }, /* 0x12 */ { 0x0013, 0, 0, NULL }, /* 0x13 */ { 0x0014, 0, 0, NULL }, /* 0x14 */ { 0x0015, 0, 0, NULL }, /* 0x15 */ { 0x0016, 0, 0, NULL }, /* 0x16 */ { 0x0017, 0, 0, NULL }, /* 0x17 */ { 0x0018, 0, 0, NULL }, /* 0x18 */ { 0x0019, 0, 0, NULL }, /* 0x19 */ { 0x001A, 0, 0, NULL }, /* 0x1A */ { 0x001B, 0, 0, NULL }, /* 0x1B */ { 0x001C, 0, 0, NULL }, /* 0x1C */ { 0x001D, 0, 0, NULL }, /* 0x1D */ { 0x001E, 0, 0, NULL }, /* 0x1E */ { 0x001F, 0, 0, NULL }, /* 0x1F */ { 0x0020, 0, 0, NULL }, /* 0x20 */ { 0x0021, 0, 0, NULL }, /* 0x21 */ { 0x0022, 0, 0, NULL }, /* 0x22 */ { 0x0023, 0, 0, NULL }, /* 0x23 */ { 0x0024, 0, 0, NULL }, /* 0x24 */ { 0x0025, 0, 0, NULL }, /* 0x25 */ { 0x0026, 0, 0, NULL }, /* 0x26 */ { 0x0027, 0, 0, NULL }, /* 0x27 */ { 0x0028, 0, 0, NULL }, /* 0x28 */ { 0x0029, 0, 0, NULL }, /* 0x29 */ { 0x002A, 0, 0, NULL }, /* 0x2A */ { 0x002B, 0, 0, NULL }, /* 0x2B */ { 0x002C, 0, 0, NULL }, /* 0x2C */ { 0x002D, 0, 0, NULL }, /* 0x2D */ { 0x002E, 0, 0, NULL }, /* 0x2E */ { 0x002F, 0, 0, NULL }, /* 0x2F */ { 0x0030, 0, 0, NULL }, /* 0x30 */ { 0x0031, 0, 0, NULL }, /* 0x31 */ { 0x0032, 0, 0, NULL }, /* 0x32 */ { 0x0033, 0, 0, NULL }, /* 0x33 */ { 0x0034, 0, 0, NULL }, /* 0x34 */ { 0x0035, 0, 0, NULL }, /* 0x35 */ { 0x0036, 0, 0, NULL }, /* 0x36 */ { 0x0037, 0, 0, NULL }, /* 0x37 */ { 0x0038, 0, 0, NULL }, /* 0x38 */ { 0x0039, 0, 0, NULL }, /* 0x39 */ { 0x003A, 0, 0, NULL }, /* 0x3A */ { 0x003B, 0, 0, NULL }, /* 0x3B */ { 0x003C, 0, 0, NULL }, /* 0x3C */ { 0x003D, 0, 0, NULL }, /* 0x3D */ { 0x003E, 0, 0, NULL }, /* 0x3E */ { 0x003F, 0, 0, NULL }, /* 0x3F */ { 0x0040, 0, 0, NULL }, /* 0x40 */ { 0x0041, 0, 0, NULL }, /* 0x41 */ { 0x0042, 0, 0, NULL }, /* 0x42 */ { 0x0043, 0, 0, NULL }, /* 0x43 */ { 0x0044, 0, 0, NULL }, /* 0x44 */ { 0x0045, 0, 0, NULL }, /* 0x45 */ { 0x0046, 0, 0, NULL }, /* 0x46 */ { 0x0047, 0, 0, NULL }, /* 0x47 */ { 0x0048, 0, 0, NULL }, /* 0x48 */ { 0x0049, 0, 0, NULL }, /* 0x49 */ { 0x004A, 0, 0, NULL }, /* 0x4A */ { 0x004B, 0, 0, NULL }, /* 0x4B */ { 0x004C, 0, 0, NULL }, /* 0x4C */ { 0x004D, 0, 0, NULL }, /* 0x4D */ { 0x004E, 0, 0, NULL }, /* 0x4E */ { 0x004F, 0, 0, NULL }, /* 0x4F */ { 0x0050, 0, 0, NULL }, /* 0x50 */ { 0x0051, 0, 0, NULL }, /* 0x51 */ { 0x0052, 0, 0, NULL }, /* 0x52 */ { 0x0053, 0, 0, NULL }, /* 0x53 */ { 0x0054, 0, 0, NULL }, /* 0x54 */ { 0x0055, 0, 0, NULL }, /* 0x55 */ { 0x0056, 0, 0, NULL }, /* 0x56 */ { 0x0057, 0, 0, NULL }, /* 0x57 */ { 0x0058, 0, 0, NULL }, /* 0x58 */ { 0x0059, 0, 0, NULL }, /* 0x59 */ { 0x005A, 0, 0, NULL }, /* 0x5A */ { 0x005B, 0, 0, NULL }, /* 0x5B */ { 0x005C, 0, 0, NULL }, /* 0x5C */ { 0x005D, 0, 0, NULL }, /* 0x5D */ { 0x005E, 0, 0, NULL }, /* 0x5E */ { 0x005F, 0, 0, NULL }, /* 0x5F */ { 0x0060, 0, 0, NULL }, /* 0x60 */ { 0x0061, 0, 0, NULL }, /* 0x61 */ { 0x0062, 0, 0, NULL }, /* 0x62 */ { 0x0063, 0, 0, NULL }, /* 0x63 */ { 0x0064, 0, 0, NULL }, /* 0x64 */ { 0x0065, 0, 0, NULL }, /* 0x65 */ { 0x0066, 0, 0, NULL }, /* 0x66 */ { 0x0067, 0, 0, NULL }, /* 0x67 */ { 0x0068, 0, 0, NULL }, /* 0x68 */ { 0x0069, 0, 0, NULL }, /* 0x69 */ { 0x006A, 0, 0, NULL }, /* 0x6A */ { 0x006B, 0, 0, NULL }, /* 0x6B */ { 0x006C, 0, 0, NULL }, /* 0x6C */ { 0x006D, 0, 0, NULL }, /* 0x6D */ { 0x006E, 0, 0, NULL }, /* 0x6E */ { 0x006F, 0, 0, NULL }, /* 0x6F */ { 0x0070, 0, 0, NULL }, /* 0x70 */ { 0x0071, 0, 0, NULL }, /* 0x71 */ { 0x0072, 0, 0, NULL }, /* 0x72 */ { 0x0073, 0, 0, NULL }, /* 0x73 */ { 0x0074, 0, 0, NULL }, /* 0x74 */ { 0x0075, 0, 0, NULL }, /* 0x75 */ { 0x0076, 0, 0, NULL }, /* 0x76 */ { 0x0077, 0, 0, NULL }, /* 0x77 */ { 0x0078, 0, 0, NULL }, /* 0x78 */ { 0x0079, 0, 0, NULL }, /* 0x79 */ { 0x007A, 0, 0, NULL }, /* 0x7A */ { 0x007B, 0, 0, NULL }, /* 0x7B */ { 0x007C, 0, 0, NULL }, /* 0x7C */ { 0x007D, 0, 0, NULL }, /* 0x7D */ { 0x007E, 0, 0, NULL }, /* 0x7E */ { 0x007F, 0, 0, NULL }, /* 0x7F */ { 0x20AC, 0, 0, NULL }, /* 0x80 */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x81 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x82 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x83 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x84 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x85 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x86 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x87 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x88 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x89 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x8A */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x8B */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x8C */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x8D */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x8E */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x8F */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x90 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x91 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x92 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x93 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x94 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x95 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x96 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x97 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x98 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x99 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x9A */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x9B */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x9C */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x9D */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x9E */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x9F */ /* We convert this as double byte */ { 0, 1, 0, NULL }, /* 0xA0 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GB_A1 }, /* 0xA1 */ { 0, 0xA1, 0xFC, aImplDBCSToUniTab_GB_A2 }, /* 0xA2 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GB_A3 }, /* 0xA3 */ { 0, 0xA1, 0xF3, aImplDBCSToUniTab_GB_A4 }, /* 0xA4 */ { 0, 0xA1, 0xF6, aImplDBCSToUniTab_GB_A5 }, /* 0xA5 */ { 0, 0xA1, 0xF5, aImplDBCSToUniTab_GB_A6 }, /* 0xA6 */ { 0, 0xA1, 0xF1, aImplDBCSToUniTab_GB_A7 }, /* 0xA7 */ { 0, 0xA1, 0xE9, aImplDBCSToUniTab_GBK_A8+GBKOFF }, /* 0xA8 */ { 0, 0xA1, 0xEF, aImplDBCSToUniTab_GBK_A9+GBKOFF }, /* 0xA9 */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0xAA */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0xAB */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0xAC */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0xAD */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0xAE */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0xAF */ /* We convert this as double byte */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_B0+GBKOFF }, /* 0xB0 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_B1+GBKOFF }, /* 0xB1 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_B2+GBKOFF }, /* 0xB2 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_B3+GBKOFF }, /* 0xB3 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_B4+GBKOFF }, /* 0xB4 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_B5+GBKOFF }, /* 0xB5 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_B6+GBKOFF }, /* 0xB6 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_B7+GBKOFF }, /* 0xB7 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_B8+GBKOFF }, /* 0xB8 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_B9+GBKOFF }, /* 0xB9 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_BA+GBKOFF }, /* 0xBA */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_BB+GBKOFF }, /* 0xBB */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_BC+GBKOFF }, /* 0xBC */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_BD+GBKOFF }, /* 0xBD */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_BE+GBKOFF }, /* 0xBE */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_BF+GBKOFF }, /* 0xBF */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_C0+GBKOFF }, /* 0xC0 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_C1+GBKOFF }, /* 0xC1 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_C2+GBKOFF }, /* 0xC2 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_C3+GBKOFF }, /* 0xC3 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_C4+GBKOFF }, /* 0xC4 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_C5+GBKOFF }, /* 0xC5 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_C6+GBKOFF }, /* 0xC6 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_C7+GBKOFF }, /* 0xC7 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_C8+GBKOFF }, /* 0xC8 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_C9+GBKOFF }, /* 0xC9 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_CA+GBKOFF }, /* 0xCA */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_CB+GBKOFF }, /* 0xCB */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_CC+GBKOFF }, /* 0xCC */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_CD+GBKOFF }, /* 0xCD */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_CE+GBKOFF }, /* 0xCE */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_CF+GBKOFF }, /* 0xCF */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_D0+GBKOFF }, /* 0xD0 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_D1+GBKOFF }, /* 0xD1 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_D2+GBKOFF }, /* 0xD2 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_D3+GBKOFF }, /* 0xD3 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_D4+GBKOFF }, /* 0xD4 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_D5+GBKOFF }, /* 0xD5 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_D6+GBKOFF }, /* 0xD6 */ { 0, 0xA1, 0xF9, aImplDBCSToUniTab_GBK_D7+GBKOFF }, /* 0xD7 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_D8+GBKOFF }, /* 0xD8 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_D9+GBKOFF }, /* 0xD9 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_DA+GBKOFF }, /* 0xDA */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_DB+GBKOFF }, /* 0xDB */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_DC+GBKOFF }, /* 0xDC */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_DD+GBKOFF }, /* 0xDD */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_DE+GBKOFF }, /* 0xDE */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_DF+GBKOFF }, /* 0xDF */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_E0+GBKOFF }, /* 0xE0 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_E1+GBKOFF }, /* 0xE1 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_E2+GBKOFF }, /* 0xE2 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_E3+GBKOFF }, /* 0xE3 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_E4+GBKOFF }, /* 0xE4 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_E5+GBKOFF }, /* 0xE5 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_E6+GBKOFF }, /* 0xE6 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_E7+GBKOFF }, /* 0xE7 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_E8+GBKOFF }, /* 0xE8 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_E9+GBKOFF }, /* 0xE9 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_EA+GBKOFF }, /* 0xEA */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_EB+GBKOFF }, /* 0xEB */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_EC+GBKOFF }, /* 0xEC */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_ED+GBKOFF }, /* 0xED */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_EE+GBKOFF }, /* 0xEE */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_EF+GBKOFF }, /* 0xEF */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_F0+GBKOFF }, /* 0xF0 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_F1+GBKOFF }, /* 0xF1 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_F2+GBKOFF }, /* 0xF2 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_F3+GBKOFF }, /* 0xF3 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_F4+GBKOFF }, /* 0xF4 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_F5+GBKOFF }, /* 0xF5 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_F6+GBKOFF }, /* 0xF6 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_F7+GBKOFF }, /* 0xF7 */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0xF8 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0xF9 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0xFA */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0xFB */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0xFC */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0xFD */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0xFE */ /* We convert this as double byte */ { 0, 1, 0, NULL } /* 0xFF */ }; /* ----------------------------------------------------------------------- */ static ImplUniToDBCSHighTab const aGB2312DBCSHighTab[256] = { { 0x00, 0xFC, aImplUniToDBCSTab_GB_00 }, /* 0x00 */ { 0x01, 0xDC, aImplUniToDBCSTab_GB_01 }, /* 0x01 */ { 0x51, 0xC9, aImplUniToDBCSTab_GB_02 }, /* 0x02 */ { 0x91, 0xC9, aImplUniToDBCSTab_GB_03 }, /* 0x03 */ { 0x01, 0x51, aImplUniToDBCSTab_GB_04 }, /* 0x04 */ { 1, 0, NULL }, /* 0x05 */ { 1, 0, NULL }, /* 0x06 */ { 1, 0, NULL }, /* 0x07 */ { 1, 0, NULL }, /* 0x08 */ { 1, 0, NULL }, /* 0x09 */ { 1, 0, NULL }, /* 0x0A */ { 1, 0, NULL }, /* 0x0B */ { 1, 0, NULL }, /* 0x0C */ { 1, 0, NULL }, /* 0x0D */ { 1, 0, NULL }, /* 0x0E */ { 1, 0, NULL }, /* 0x0F */ { 1, 0, NULL }, /* 0x10 */ { 1, 0, NULL }, /* 0x11 */ { 1, 0, NULL }, /* 0x12 */ { 1, 0, NULL }, /* 0x13 */ { 1, 0, NULL }, /* 0x14 */ { 1, 0, NULL }, /* 0x15 */ { 1, 0, NULL }, /* 0x16 */ { 1, 0, NULL }, /* 0x17 */ { 1, 0, NULL }, /* 0x18 */ { 1, 0, NULL }, /* 0x19 */ { 1, 0, NULL }, /* 0x1A */ { 1, 0, NULL }, /* 0x1B */ { 1, 0, NULL }, /* 0x1C */ { 1, 0, NULL }, /* 0x1D */ { 0x3F, 0x3F, aImplUniToDBCSTab_APPLECHINSIMP_1E }, /* 0x1E */ /* we convert this char also to unicode */ { 1, 0, NULL }, /* 0x1F */ { 0x14, 0xAC, aImplUniToDBCSTab_GB_20 }, /* 0x20 */ { 0x03, 0x93, aImplUniToDBCSTab_GB_21 }, /* 0x21 */ { 0x08, 0xEF, aImplUniToDBCSTab_GB_22 }, /* 0x22 */ { 0x12, 0x12, aImplUniToDBCSTab_GB_23 }, /* 0x23 */ { 0x60, 0x9B, aImplUniToDBCSTab_GB_24 }, /* 0x24 */ { 0x00, 0xCF, aImplUniToDBCSTab_GB_25 }, /* 0x25 */ { 0x05, 0x42, aImplUniToDBCSTab_GB_26 }, /* 0x26 */ { 1, 0, NULL }, /* 0x27 */ { 1, 0, NULL }, /* 0x28 */ { 1, 0, NULL }, /* 0x29 */ { 1, 0, NULL }, /* 0x2A */ { 1, 0, NULL }, /* 0x2B */ { 1, 0, NULL }, /* 0x2C */ { 1, 0, NULL }, /* 0x2D */ { 1, 0, NULL }, /* 0x2E */ { 1, 0, NULL }, /* 0x2F */ { 0x00, 0xFB, aImplUniToDBCSTab_GB_30 }, /* 0x30 */ { 0x05, 0x29, aImplUniToDBCSTab_GB_31 }, /* 0x31 */ { 0x20, 0x29, aImplUniToDBCSTab_GBK_32 }, /* 0x32 */ { 1, 0, NULL }, /* 0x33 */ { 1, 0, NULL }, /* 0x34 */ { 1, 0, NULL }, /* 0x35 */ { 1, 0, NULL }, /* 0x36 */ { 1, 0, NULL }, /* 0x37 */ { 1, 0, NULL }, /* 0x38 */ { 1, 0, NULL }, /* 0x39 */ { 1, 0, NULL }, /* 0x3A */ { 1, 0, NULL }, /* 0x3B */ { 1, 0, NULL }, /* 0x3C */ { 1, 0, NULL }, /* 0x3D */ { 1, 0, NULL }, /* 0x3E */ { 1, 0, NULL }, /* 0x3F */ { 1, 0, NULL }, /* 0x40 */ { 1, 0, NULL }, /* 0x41 */ { 1, 0, NULL }, /* 0x42 */ { 1, 0, NULL }, /* 0x43 */ { 1, 0, NULL }, /* 0x44 */ { 1, 0, NULL }, /* 0x45 */ { 1, 0, NULL }, /* 0x46 */ { 1, 0, NULL }, /* 0x47 */ { 1, 0, NULL }, /* 0x48 */ { 1, 0, NULL }, /* 0x49 */ { 1, 0, NULL }, /* 0x4A */ { 1, 0, NULL }, /* 0x4B */ { 1, 0, NULL }, /* 0x4C */ { 1, 0, NULL }, /* 0x4D */ { 0x00, 0xFF, aImplUniToDBCSTab_GB_4E }, /* 0x4E */ { 0x01, 0xFE, aImplUniToDBCSTab_GB_4F }, /* 0x4F */ { 0x0C, 0xFB, aImplUniToDBCSTab_GB_50 }, /* 0x50 */ { 0x06, 0xFF, aImplUniToDBCSTab_GB_51 }, /* 0x51 */ { 0x00, 0xFF, aImplUniToDBCSTab_GB_52 }, /* 0x52 */ { 0x00, 0xFD, aImplUniToDBCSTab_GB_53 }, /* 0x53 */ { 0x01, 0xFF, aImplUniToDBCSTab_GB_54 }, /* 0x54 */ { 0x01, 0xFE, aImplUniToDBCSTab_GB_55 }, /* 0x55 */ { 0x00, 0xFF, aImplUniToDBCSTab_GB_56 }, /* 0x56 */ { 0x03, 0xFD, aImplUniToDBCSTab_GB_57 }, /* 0x57 */ { 0x00, 0xF9, aImplUniToDBCSTab_GB_58 }, /* 0x58 */ { 0x02, 0xFF, aImplUniToDBCSTab_GB_59 }, /* 0x59 */ { 0x01, 0xF1, aImplUniToDBCSTab_GB_5A }, /* 0x5A */ { 0x09, 0xFF, aImplUniToDBCSTab_GB_5B }, /* 0x5B */ { 0x01, 0xFB, aImplUniToDBCSTab_GB_5C }, /* 0x5C */ { 0x02, 0xFE, aImplUniToDBCSTab_GB_5D }, /* 0x5D */ { 0x01, 0xFF, aImplUniToDBCSTab_GB_5E }, /* 0x5E */ { 0x00, 0xFF, aImplUniToDBCSTab_GB_5F }, /* 0x5F */ { 0x00, 0xFA, aImplUniToDBCSTab_GB_60 }, /* 0x60 */ { 0x00, 0xFF, aImplUniToDBCSTab_GB_61 }, /* 0x61 */ { 0x06, 0xFF, aImplUniToDBCSTab_GB_62 }, /* 0x62 */ { 0x01, 0xFF, aImplUniToDBCSTab_GB_63 }, /* 0x63 */ { 0x00, 0xE6, aImplUniToDBCSTab_GB_64 }, /* 0x64 */ { 0x00, 0xFA, aImplUniToDBCSTab_GB_65 }, /* 0x65 */ { 0x00, 0xFF, aImplUniToDBCSTab_GB_66 }, /* 0x66 */ { 0x00, 0xFF, aImplUniToDBCSTab_GB_67 }, /* 0x67 */ { 0x00, 0xFC, aImplUniToDBCSTab_GB_68 }, /* 0x68 */ { 0x01, 0xFF, aImplUniToDBCSTab_GB_69 }, /* 0x69 */ { 0x0A, 0xAC, aImplUniToDBCSTab_GB_6A }, /* 0x6A */ { 0x20, 0xFD, aImplUniToDBCSTab_GB_6B }, /* 0x6B */ { 0x05, 0xFE, aImplUniToDBCSTab_GB_6C }, /* 0x6C */ { 0x01, 0xFC, aImplUniToDBCSTab_GB_6D }, /* 0x6D */ { 0x05, 0xF9, aImplUniToDBCSTab_GB_6E }, /* 0x6E */ { 0x02, 0xEF, aImplUniToDBCSTab_GB_6F }, /* 0x6F */ { 0x11, 0xFD, aImplUniToDBCSTab_GB_70 }, /* 0x70 */ { 0x09, 0xF9, aImplUniToDBCSTab_GB_71 }, /* 0x71 */ { 0x06, 0xFC, aImplUniToDBCSTab_GB_72 }, /* 0x72 */ { 0x01, 0xF2, aImplUniToDBCSTab_GB_73 }, /* 0x73 */ { 0x03, 0xFF, aImplUniToDBCSTab_GB_74 }, /* 0x74 */ { 0x04, 0xFF, aImplUniToDBCSTab_GB_75 }, /* 0x75 */ { 0x00, 0xFE, aImplUniToDBCSTab_GB_76 }, /* 0x76 */ { 0x01, 0xFF, aImplUniToDBCSTab_GB_77 }, /* 0x77 */ { 0x00, 0xFA, aImplUniToDBCSTab_GB_78 }, /* 0x78 */ { 0x01, 0xFD, aImplUniToDBCSTab_GB_79 }, /* 0x79 */ { 0x00, 0xFF, aImplUniToDBCSTab_GB_7A }, /* 0x7A */ { 0x03, 0xFE, aImplUniToDBCSTab_GB_7B }, /* 0x7B */ { 0x07, 0xFB, aImplUniToDBCSTab_GB_7C }, /* 0x7C */ { 0x0A, 0xAE, aImplUniToDBCSTab_GB_7D }, /* 0x7D */ { 0x3B, 0xFF, aImplUniToDBCSTab_GB_7E }, /* 0x7E */ { 0x00, 0xFC, aImplUniToDBCSTab_GB_7F }, /* 0x7F */ { 0x00, 0xFD, aImplUniToDBCSTab_GB_80 }, /* 0x80 */ { 0x02, 0xFE, aImplUniToDBCSTab_GB_81 }, /* 0x81 */ { 0x00, 0xFB, aImplUniToDBCSTab_GB_82 }, /* 0x82 */ { 0x01, 0xFD, aImplUniToDBCSTab_GB_83 }, /* 0x83 */ { 0x01, 0xFF, aImplUniToDBCSTab_GB_84 }, /* 0x84 */ { 0x0C, 0xFF, aImplUniToDBCSTab_GB_85 }, /* 0x85 */ { 0x05, 0xFE, aImplUniToDBCSTab_GB_86 }, /* 0x86 */ { 0x00, 0xFE, aImplUniToDBCSTab_GB_87 }, /* 0x87 */ { 0x03, 0xFE, aImplUniToDBCSTab_GB_88 }, /* 0x88 */ { 0x02, 0xF3, aImplUniToDBCSTab_GB_89 }, /* 0x89 */ { 0x00, 0x93, aImplUniToDBCSTab_GB_8A }, /* 0x8A */ { 0x07, 0xFF, aImplUniToDBCSTab_GB_8B }, /* 0x8B */ { 0x00, 0x98, aImplUniToDBCSTab_GB_8C }, /* 0x8C */ { 0x1D, 0xFD, aImplUniToDBCSTab_GB_8D }, /* 0x8D */ { 0x05, 0xCE, aImplUniToDBCSTab_GB_8E }, /* 0x8E */ { 0x66, 0xFD, aImplUniToDBCSTab_GB_8F }, /* 0x8F */ { 0x00, 0xFE, aImplUniToDBCSTab_GB_90 }, /* 0x90 */ { 0x02, 0xDC, aImplUniToDBCSTab_GB_91 }, /* 0x91 */ { 0x74, 0xC8, aImplUniToDBCSTab_GB_92 }, /* 0x92 */ { 0x3E, 0xD6, aImplUniToDBCSTab_GB_93 }, /* 0x93 */ { 0x3E, 0xFF, aImplUniToDBCSTab_GB_94 }, /* 0x94 */ { 0x00, 0xFE, aImplUniToDBCSTab_GB_95 }, /* 0x95 */ { 0x00, 0xFE, aImplUniToDBCSTab_GB_96 }, /* 0x96 */ { 0x00, 0xF6, aImplUniToDBCSTab_GB_97 }, /* 0x97 */ { 0x75, 0xE9, aImplUniToDBCSTab_GB_98 }, /* 0x98 */ { 0x0D, 0xA8, aImplUniToDBCSTab_GB_99 }, /* 0x99 */ { 0x6C, 0xFB, aImplUniToDBCSTab_GB_9A }, /* 0x9A */ { 0x03, 0x54, aImplUniToDBCSTab_GB_9B }, /* 0x9B */ { 0x7C, 0xE2, aImplUniToDBCSTab_GB_9C }, /* 0x9C */ { 1, 0, NULL }, /* 0x9D */ { 0x1F, 0xFE, aImplUniToDBCSTab_GB_9E }, /* 0x9E */ { 0x0B, 0xA0, aImplUniToDBCSTab_GB_9F }, /* 0x9F */ { 1, 0, NULL }, /* 0xA0 */ { 1, 0, NULL }, /* 0xA1 */ { 1, 0, NULL }, /* 0xA2 */ { 1, 0, NULL }, /* 0xA3 */ { 1, 0, NULL }, /* 0xA4 */ { 1, 0, NULL }, /* 0xA5 */ { 1, 0, NULL }, /* 0xA6 */ { 1, 0, NULL }, /* 0xA7 */ { 1, 0, NULL }, /* 0xA8 */ { 1, 0, NULL }, /* 0xA9 */ { 1, 0, NULL }, /* 0xAA */ { 1, 0, NULL }, /* 0xAB */ { 1, 0, NULL }, /* 0xAC */ { 1, 0, NULL }, /* 0xAD */ { 1, 0, NULL }, /* 0xAE */ { 1, 0, NULL }, /* 0xAF */ { 1, 0, NULL }, /* 0xB0 */ { 1, 0, NULL }, /* 0xB1 */ { 1, 0, NULL }, /* 0xB2 */ { 1, 0, NULL }, /* 0xB3 */ { 1, 0, NULL }, /* 0xB4 */ { 1, 0, NULL }, /* 0xB5 */ { 1, 0, NULL }, /* 0xB6 */ { 1, 0, NULL }, /* 0xB7 */ { 1, 0, NULL }, /* 0xB8 */ { 1, 0, NULL }, /* 0xB9 */ { 1, 0, NULL }, /* 0xBA */ { 1, 0, NULL }, /* 0xBB */ { 1, 0, NULL }, /* 0xBC */ { 1, 0, NULL }, /* 0xBD */ { 1, 0, NULL }, /* 0xBE */ { 1, 0, NULL }, /* 0xBF */ { 1, 0, NULL }, /* 0xC0 */ { 1, 0, NULL }, /* 0xC1 */ { 1, 0, NULL }, /* 0xC2 */ { 1, 0, NULL }, /* 0xC3 */ { 1, 0, NULL }, /* 0xC4 */ { 1, 0, NULL }, /* 0xC5 */ { 1, 0, NULL }, /* 0xC6 */ { 1, 0, NULL }, /* 0xC7 */ { 1, 0, NULL }, /* 0xC8 */ { 1, 0, NULL }, /* 0xC9 */ { 1, 0, NULL }, /* 0xCA */ { 1, 0, NULL }, /* 0xCB */ { 1, 0, NULL }, /* 0xCC */ { 1, 0, NULL }, /* 0xCD */ { 1, 0, NULL }, /* 0xCE */ { 1, 0, NULL }, /* 0xCF */ { 1, 0, NULL }, /* 0xD0 */ { 1, 0, NULL }, /* 0xD1 */ { 1, 0, NULL }, /* 0xD2 */ { 1, 0, NULL }, /* 0xD3 */ { 1, 0, NULL }, /* 0xD4 */ { 1, 0, NULL }, /* 0xD5 */ { 1, 0, NULL }, /* 0xD6 */ { 1, 0, NULL }, /* 0xD7 */ { 1, 0, NULL }, /* 0xD8 */ { 1, 0, NULL }, /* 0xD9 */ { 1, 0, NULL }, /* 0xDA */ { 1, 0, NULL }, /* 0xDB */ { 1, 0, NULL }, /* 0xDC */ { 1, 0, NULL }, /* 0xDD */ { 1, 0, NULL }, /* 0xDE */ { 1, 0, NULL }, /* 0xDF */ { 1, 0, NULL }, /* 0xE0 */ { 1, 0, NULL }, /* 0xE1 */ { 1, 0, NULL }, /* 0xE2 */ { 1, 0, NULL }, /* 0xE3 */ { 1, 0, NULL }, /* 0xE4 */ { 1, 0, NULL }, /* 0xE5 */ { 1, 0, NULL }, /* 0xE6 */ { 1, 0, NULL }, /* 0xE7 */ { 1, 0, NULL }, /* 0xE8 */ { 1, 0, NULL }, /* 0xE9 */ { 1, 0, NULL }, /* 0xEA */ { 1, 0, NULL }, /* 0xEB */ { 1, 0, NULL }, /* 0xEC */ { 1, 0, NULL }, /* 0xED */ { 1, 0, NULL }, /* 0xEE */ { 1, 0, NULL }, /* 0xEF */ { 1, 0, NULL }, /* 0xF0 */ { 1, 0, NULL }, /* 0xF1 */ { 1, 0, NULL }, /* 0xF2 */ { 1, 0, NULL }, /* 0xF3 */ { 1, 0, NULL }, /* 0xF4 */ { 1, 0, NULL }, /* 0xF5 */ { 1, 0, NULL }, /* 0xF6 */ { 1, 0, NULL }, /* 0xF7 */ { 1, 0, NULL }, /* 0xF8 */ { 1, 0, NULL }, /* 0xF9 */ { 1, 0, NULL }, /* 0xFA */ { 1, 0, NULL }, /* 0xFB */ { 1, 0, NULL }, /* 0xFC */ { 1, 0, NULL }, /* 0xFD */ { 0x31, 0x44, aImplUniToDBCSTab_GB_FE }, /* 0xFE */ { 0x01, 0xE5, aImplUniToDBCSTab_GB_FF } /* 0xFF */ }; /* ----------------------------------------------------------------------- */ /* F8A1-FEFE --> E000-E29F */ /* AAA1-AFFE --> E2A0-E4DF */ #define DBCS_EUDC_MS936_COUNT 2 static ImplDBCSEUDCData const aImplMS936DBCSEUDCTab[DBCS_EUDC_MS936_COUNT] = { /* EUDC-Range (the mapping defined by MS is A0-FF, because the */ /* unicode range is E000-E29F and E2A0-E4DF) */ /* Lead: F8-FE */ /* Trail: A1-FE */ { 0xF8, 0xFE, 0xA0, 0xFF, 0, 0, 0, 0, 1, 0x60, 0xE000, 0xE29F }, /* Lead: AA-AF */ /* Trail: A1-FE */ { 0xAA, 0xAF, 0xA0, 0xFF, 0, 0, 0, 0, 1, 0x60, 0xE2A0, 0xE4DF } }; /* ----------------------------------------------------------------------- */ static ImplDBCSConvertData const aImplGB2312DBCSCvtData = { aGB2312UniLeadTab, aGB2312DBCSHighTab, 0x00, 0xFF, 0xA1, 0xFE, aImplMS936DBCSEUDCTab, DBCS_EUDC_MS936_COUNT }; /* ----------------------------------------------------------------------- */ static ImplTextEncodingData const aImplGB2312TextEncodingData = { { &aImplGB2312DBCSCvtData, ImplDBCSToUnicode, ImplUnicodeToDBCS, NULL, NULL, NULL, NULL, NULL, NULL }, 1, 2, 2, 134, "euc-cn", "gb2312", RTL_TEXTENCODING_INFO_ASCII | RTL_TEXTENCODING_INFO_MULTIBYTE | RTL_TEXTENCODING_INFO_MIME }; /* SCRIPT_CHINESE_SIMPLIFIED, pc code page 936, mac encoding 25 */ /* ======================================================================= */ static ImplTextEncodingData const aImplEUCCNTextEncodingData = { { &aImplGB2312DBCSCvtData, ImplDBCSToUnicode, ImplUnicodeToDBCS, NULL, NULL, NULL, NULL, NULL, NULL }, 1, 2, 2, 134, "euc-cn", "gb2312", RTL_TEXTENCODING_INFO_ASCII | RTL_TEXTENCODING_INFO_MULTIBYTE }; /* SCRIPT_CHINESE_SIMPLIFIED, pc code page 936, mac encoding 25 */ /* ======================================================================= */ static ImplDBCSToUniLeadTab const aGBT12345UniLeadTab[256] = { { 0x0000, 0, 0, NULL }, /* 0x00 */ { 0x0001, 0, 0, NULL }, /* 0x01 */ { 0x0002, 0, 0, NULL }, /* 0x02 */ { 0x0003, 0, 0, NULL }, /* 0x03 */ { 0x0004, 0, 0, NULL }, /* 0x04 */ { 0x0005, 0, 0, NULL }, /* 0x05 */ { 0x0006, 0, 0, NULL }, /* 0x06 */ { 0x0007, 0, 0, NULL }, /* 0x07 */ { 0x0008, 0, 0, NULL }, /* 0x08 */ { 0x0009, 0, 0, NULL }, /* 0x09 */ { 0x000A, 0, 0, NULL }, /* 0x0A */ { 0x000B, 0, 0, NULL }, /* 0x0B */ { 0x000C, 0, 0, NULL }, /* 0x0C */ { 0x000D, 0, 0, NULL }, /* 0x0D */ { 0x000E, 0, 0, NULL }, /* 0x0E */ { 0x000F, 0, 0, NULL }, /* 0x0F */ { 0x0010, 0, 0, NULL }, /* 0x10 */ { 0x0011, 0, 0, NULL }, /* 0x11 */ { 0x0012, 0, 0, NULL }, /* 0x12 */ { 0x0013, 0, 0, NULL }, /* 0x13 */ { 0x0014, 0, 0, NULL }, /* 0x14 */ { 0x0015, 0, 0, NULL }, /* 0x15 */ { 0x0016, 0, 0, NULL }, /* 0x16 */ { 0x0017, 0, 0, NULL }, /* 0x17 */ { 0x0018, 0, 0, NULL }, /* 0x18 */ { 0x0019, 0, 0, NULL }, /* 0x19 */ { 0x001A, 0, 0, NULL }, /* 0x1A */ { 0x001B, 0, 0, NULL }, /* 0x1B */ { 0x001C, 0, 0, NULL }, /* 0x1C */ { 0x001D, 0, 0, NULL }, /* 0x1D */ { 0x001E, 0, 0, NULL }, /* 0x1E */ { 0x001F, 0, 0, NULL }, /* 0x1F */ { 0x0020, 0, 0, NULL }, /* 0x20 */ { 0x0021, 0, 0, NULL }, /* 0x21 */ { 0x0022, 0, 0, NULL }, /* 0x22 */ { 0x0023, 0, 0, NULL }, /* 0x23 */ { 0x0024, 0, 0, NULL }, /* 0x24 */ { 0x0025, 0, 0, NULL }, /* 0x25 */ { 0x0026, 0, 0, NULL }, /* 0x26 */ { 0x0027, 0, 0, NULL }, /* 0x27 */ { 0x0028, 0, 0, NULL }, /* 0x28 */ { 0x0029, 0, 0, NULL }, /* 0x29 */ { 0x002A, 0, 0, NULL }, /* 0x2A */ { 0x002B, 0, 0, NULL }, /* 0x2B */ { 0x002C, 0, 0, NULL }, /* 0x2C */ { 0x002D, 0, 0, NULL }, /* 0x2D */ { 0x002E, 0, 0, NULL }, /* 0x2E */ { 0x002F, 0, 0, NULL }, /* 0x2F */ { 0x0030, 0, 0, NULL }, /* 0x30 */ { 0x0031, 0, 0, NULL }, /* 0x31 */ { 0x0032, 0, 0, NULL }, /* 0x32 */ { 0x0033, 0, 0, NULL }, /* 0x33 */ { 0x0034, 0, 0, NULL }, /* 0x34 */ { 0x0035, 0, 0, NULL }, /* 0x35 */ { 0x0036, 0, 0, NULL }, /* 0x36 */ { 0x0037, 0, 0, NULL }, /* 0x37 */ { 0x0038, 0, 0, NULL }, /* 0x38 */ { 0x0039, 0, 0, NULL }, /* 0x39 */ { 0x003A, 0, 0, NULL }, /* 0x3A */ { 0x003B, 0, 0, NULL }, /* 0x3B */ { 0x003C, 0, 0, NULL }, /* 0x3C */ { 0x003D, 0, 0, NULL }, /* 0x3D */ { 0x003E, 0, 0, NULL }, /* 0x3E */ { 0x003F, 0, 0, NULL }, /* 0x3F */ { 0x0040, 0, 0, NULL }, /* 0x40 */ { 0x0041, 0, 0, NULL }, /* 0x41 */ { 0x0042, 0, 0, NULL }, /* 0x42 */ { 0x0043, 0, 0, NULL }, /* 0x43 */ { 0x0044, 0, 0, NULL }, /* 0x44 */ { 0x0045, 0, 0, NULL }, /* 0x45 */ { 0x0046, 0, 0, NULL }, /* 0x46 */ { 0x0047, 0, 0, NULL }, /* 0x47 */ { 0x0048, 0, 0, NULL }, /* 0x48 */ { 0x0049, 0, 0, NULL }, /* 0x49 */ { 0x004A, 0, 0, NULL }, /* 0x4A */ { 0x004B, 0, 0, NULL }, /* 0x4B */ { 0x004C, 0, 0, NULL }, /* 0x4C */ { 0x004D, 0, 0, NULL }, /* 0x4D */ { 0x004E, 0, 0, NULL }, /* 0x4E */ { 0x004F, 0, 0, NULL }, /* 0x4F */ { 0x0050, 0, 0, NULL }, /* 0x50 */ { 0x0051, 0, 0, NULL }, /* 0x51 */ { 0x0052, 0, 0, NULL }, /* 0x52 */ { 0x0053, 0, 0, NULL }, /* 0x53 */ { 0x0054, 0, 0, NULL }, /* 0x54 */ { 0x0055, 0, 0, NULL }, /* 0x55 */ { 0x0056, 0, 0, NULL }, /* 0x56 */ { 0x0057, 0, 0, NULL }, /* 0x57 */ { 0x0058, 0, 0, NULL }, /* 0x58 */ { 0x0059, 0, 0, NULL }, /* 0x59 */ { 0x005A, 0, 0, NULL }, /* 0x5A */ { 0x005B, 0, 0, NULL }, /* 0x5B */ { 0x005C, 0, 0, NULL }, /* 0x5C */ { 0x005D, 0, 0, NULL }, /* 0x5D */ { 0x005E, 0, 0, NULL }, /* 0x5E */ { 0x005F, 0, 0, NULL }, /* 0x5F */ { 0x0060, 0, 0, NULL }, /* 0x60 */ { 0x0061, 0, 0, NULL }, /* 0x61 */ { 0x0062, 0, 0, NULL }, /* 0x62 */ { 0x0063, 0, 0, NULL }, /* 0x63 */ { 0x0064, 0, 0, NULL }, /* 0x64 */ { 0x0065, 0, 0, NULL }, /* 0x65 */ { 0x0066, 0, 0, NULL }, /* 0x66 */ { 0x0067, 0, 0, NULL }, /* 0x67 */ { 0x0068, 0, 0, NULL }, /* 0x68 */ { 0x0069, 0, 0, NULL }, /* 0x69 */ { 0x006A, 0, 0, NULL }, /* 0x6A */ { 0x006B, 0, 0, NULL }, /* 0x6B */ { 0x006C, 0, 0, NULL }, /* 0x6C */ { 0x006D, 0, 0, NULL }, /* 0x6D */ { 0x006E, 0, 0, NULL }, /* 0x6E */ { 0x006F, 0, 0, NULL }, /* 0x6F */ { 0x0070, 0, 0, NULL }, /* 0x70 */ { 0x0071, 0, 0, NULL }, /* 0x71 */ { 0x0072, 0, 0, NULL }, /* 0x72 */ { 0x0073, 0, 0, NULL }, /* 0x73 */ { 0x0074, 0, 0, NULL }, /* 0x74 */ { 0x0075, 0, 0, NULL }, /* 0x75 */ { 0x0076, 0, 0, NULL }, /* 0x76 */ { 0x0077, 0, 0, NULL }, /* 0x77 */ { 0x0078, 0, 0, NULL }, /* 0x78 */ { 0x0079, 0, 0, NULL }, /* 0x79 */ { 0x007A, 0, 0, NULL }, /* 0x7A */ { 0x007B, 0, 0, NULL }, /* 0x7B */ { 0x007C, 0, 0, NULL }, /* 0x7C */ { 0x007D, 0, 0, NULL }, /* 0x7D */ { 0x007E, 0, 0, NULL }, /* 0x7E */ { 0x007F, 0, 0, NULL }, /* 0x7F */ { 0x20AC, 0, 0, NULL }, /* 0x80 */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x81 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x82 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x83 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x84 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x85 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x86 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x87 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x88 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x89 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x8A */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x8B */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x8C */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x8D */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x8E */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x8F */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x90 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x91 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x92 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x93 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x94 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x95 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x96 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x97 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x98 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x99 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x9A */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x9B */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x9C */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x9D */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x9E */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x9F */ /* We convert this as double byte */ { 0, 1, 0, NULL }, /* 0xA0 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GB_A1 }, /* 0xA1 */ { 0, 0xA1, 0xFC, aImplDBCSToUniTab_GB_A2 }, /* 0xA2 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GB_A3 }, /* 0xA3 */ { 0, 0xA1, 0xF3, aImplDBCSToUniTab_GB_A4 }, /* 0xA4 */ { 0, 0xA1, 0xF6, aImplDBCSToUniTab_GB_A5 }, /* 0xA5 */ { 0, 0xA1, 0xF5, aImplDBCSToUniTab_GB_A6 }, /* 0xA6 */ { 0, 0xA1, 0xF1, aImplDBCSToUniTab_GB_A7 }, /* 0xA7 */ { 0, 0xA1, 0xE9, aImplDBCSToUniTab_GBK_A8+GBKOFF }, /* 0xA8 */ { 0, 0xA1, 0xEF, aImplDBCSToUniTab_GBK_A9+GBKOFF }, /* 0xA9 */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0xAA */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0xAB */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0xAC */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0xAD */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0xAE */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0xAF */ /* We convert this as double byte */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_B0 }, /* 0xB0 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_B1 }, /* 0xB1 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_B2 }, /* 0xB2 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_B3 }, /* 0xB3 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_B4 }, /* 0xB4 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_B5 }, /* 0xB5 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_B6 }, /* 0xB6 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_B7 }, /* 0xB7 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_B8 }, /* 0xB8 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_B9 }, /* 0xB9 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_BA }, /* 0xBA */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_BB }, /* 0xBB */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_BC }, /* 0xBC */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_BD }, /* 0xBD */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_BE }, /* 0xBE */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_BF }, /* 0xBF */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_C0 }, /* 0xC0 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_C1 }, /* 0xC1 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_C2 }, /* 0xC2 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_C3 }, /* 0xC3 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_C4 }, /* 0xC4 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_C5 }, /* 0xC5 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_C6 }, /* 0xC6 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_C7 }, /* 0xC7 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_C8 }, /* 0xC8 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_C9 }, /* 0xC9 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_CA }, /* 0xCA */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_CB }, /* 0xCB */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_CC }, /* 0xCC */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_CD }, /* 0xCD */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_CE }, /* 0xCE */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_CF }, /* 0xCF */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_D0 }, /* 0xD0 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_D1 }, /* 0xD1 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_D2 }, /* 0xD2 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_D3 }, /* 0xD3 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_D4 }, /* 0xD4 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_D5 }, /* 0xD5 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_D6 }, /* 0xD6 */ { 0, 0xA1, 0xF9, aImplDBCSToUniTab_GBT_D7 }, /* 0xD7 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_D8 }, /* 0xD8 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_D9 }, /* 0xD9 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_DA }, /* 0xDA */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_DB }, /* 0xDB */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_DC }, /* 0xDC */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_DD }, /* 0xDD */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_DE }, /* 0xDE */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_DF }, /* 0xDF */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_E0 }, /* 0xE0 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_E1 }, /* 0xE1 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_E2 }, /* 0xE2 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_E3 }, /* 0xE3 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_E4 }, /* 0xE4 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_E5 }, /* 0xE5 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_E6 }, /* 0xE6 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_E7 }, /* 0xE7 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_E8 }, /* 0xE8 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_E9 }, /* 0xE9 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_EA }, /* 0xEA */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_EB }, /* 0xEB */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_EC }, /* 0xEC */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_ED }, /* 0xED */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_EE }, /* 0xEE */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_EF }, /* 0xEF */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_F0 }, /* 0xF0 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_F1 }, /* 0xF1 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_F2 }, /* 0xF2 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_F3 }, /* 0xF3 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_F4 }, /* 0xF4 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_F5 }, /* 0xF5 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_F6 }, /* 0xF6 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_F7 }, /* 0xF7 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBT_F8 }, /* 0xF8 */ { 0, 0xA1, 0xA9, aImplDBCSToUniTab_GBT_F9 }, /* 0xF9 */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0xFA */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0xFB */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0xFC */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0xFD */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0xFE */ /* We convert this as double byte */ { 0, 1, 0, NULL } /* 0xFF */ }; /* ----------------------------------------------------------------------- */ static ImplUniToDBCSHighTab const aGBT12345DBCSHighTab[256] = { { 0x00, 0xFC, aImplUniToDBCSTab_GB_00 }, /* 0x00 */ { 0x01, 0xDC, aImplUniToDBCSTab_GB_01 }, /* 0x01 */ { 0x51, 0xC9, aImplUniToDBCSTab_GB_02 }, /* 0x02 */ { 0x91, 0xC9, aImplUniToDBCSTab_GB_03 }, /* 0x03 */ { 0x01, 0x51, aImplUniToDBCSTab_GB_04 }, /* 0x04 */ { 1, 0, NULL }, /* 0x05 */ { 1, 0, NULL }, /* 0x06 */ { 1, 0, NULL }, /* 0x07 */ { 1, 0, NULL }, /* 0x08 */ { 1, 0, NULL }, /* 0x09 */ { 1, 0, NULL }, /* 0x0A */ { 1, 0, NULL }, /* 0x0B */ { 1, 0, NULL }, /* 0x0C */ { 1, 0, NULL }, /* 0x0D */ { 1, 0, NULL }, /* 0x0E */ { 1, 0, NULL }, /* 0x0F */ { 1, 0, NULL }, /* 0x10 */ { 1, 0, NULL }, /* 0x11 */ { 1, 0, NULL }, /* 0x12 */ { 1, 0, NULL }, /* 0x13 */ { 1, 0, NULL }, /* 0x14 */ { 1, 0, NULL }, /* 0x15 */ { 1, 0, NULL }, /* 0x16 */ { 1, 0, NULL }, /* 0x17 */ { 1, 0, NULL }, /* 0x18 */ { 1, 0, NULL }, /* 0x19 */ { 1, 0, NULL }, /* 0x1A */ { 1, 0, NULL }, /* 0x1B */ { 1, 0, NULL }, /* 0x1C */ { 1, 0, NULL }, /* 0x1D */ { 0x3F, 0x3F, aImplUniToDBCSTab_APPLECHINSIMP_1E }, /* 0x1E */ /* we convert this char also to unicode */ { 1, 0, NULL }, /* 0x1F */ { 0x14, 0xAC, aImplUniToDBCSTab_GB_20 }, /* 0x20 */ { 0x03, 0x93, aImplUniToDBCSTab_GB_21 }, /* 0x21 */ { 0x08, 0xEF, aImplUniToDBCSTab_GB_22 }, /* 0x22 */ { 0x12, 0x12, aImplUniToDBCSTab_GB_23 }, /* 0x23 */ { 0x60, 0x9B, aImplUniToDBCSTab_GB_24 }, /* 0x24 */ { 0x00, 0xCF, aImplUniToDBCSTab_GB_25 }, /* 0x25 */ { 0x05, 0x42, aImplUniToDBCSTab_GB_26 }, /* 0x26 */ { 1, 0, NULL }, /* 0x27 */ { 1, 0, NULL }, /* 0x28 */ { 1, 0, NULL }, /* 0x29 */ { 1, 0, NULL }, /* 0x2A */ { 1, 0, NULL }, /* 0x2B */ { 1, 0, NULL }, /* 0x2C */ { 1, 0, NULL }, /* 0x2D */ { 1, 0, NULL }, /* 0x2E */ { 1, 0, NULL }, /* 0x2F */ { 0x00, 0xFB, aImplUniToDBCSTab_GB_30 }, /* 0x30 */ { 0x05, 0x29, aImplUniToDBCSTab_GB_31 }, /* 0x31 */ { 0x20, 0x29, aImplUniToDBCSTab_GBK_32 }, /* 0x32 */ { 1, 0, NULL }, /* 0x33 */ { 1, 0, NULL }, /* 0x34 */ { 1, 0, NULL }, /* 0x35 */ { 1, 0, NULL }, /* 0x36 */ { 1, 0, NULL }, /* 0x37 */ { 1, 0, NULL }, /* 0x38 */ { 1, 0, NULL }, /* 0x39 */ { 1, 0, NULL }, /* 0x3A */ { 1, 0, NULL }, /* 0x3B */ { 1, 0, NULL }, /* 0x3C */ { 1, 0, NULL }, /* 0x3D */ { 1, 0, NULL }, /* 0x3E */ { 1, 0, NULL }, /* 0x3F */ { 1, 0, NULL }, /* 0x40 */ { 1, 0, NULL }, /* 0x41 */ { 1, 0, NULL }, /* 0x42 */ { 1, 0, NULL }, /* 0x43 */ { 1, 0, NULL }, /* 0x44 */ { 1, 0, NULL }, /* 0x45 */ { 1, 0, NULL }, /* 0x46 */ { 1, 0, NULL }, /* 0x47 */ { 1, 0, NULL }, /* 0x48 */ { 1, 0, NULL }, /* 0x49 */ { 1, 0, NULL }, /* 0x4A */ { 1, 0, NULL }, /* 0x4B */ { 1, 0, NULL }, /* 0x4C */ { 1, 0, NULL }, /* 0x4D */ { 0x00, 0xFF, aImplUniToDBCSTab_GBT_4E }, /* 0x4E */ { 0x01, 0xFE, aImplUniToDBCSTab_GBT_4F }, /* 0x4F */ { 0x00, 0xFB, aImplUniToDBCSTab_GBT_50 }, /* 0x50 */ { 0x00, 0xFD, aImplUniToDBCSTab_GBT_51 }, /* 0x51 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBT_52 }, /* 0x52 */ { 0x00, 0xFC, aImplUniToDBCSTab_GBT_53 }, /* 0x53 */ { 0x01, 0xFF, aImplUniToDBCSTab_GBT_54 }, /* 0x54 */ { 0x01, 0xFE, aImplUniToDBCSTab_GBT_55 }, /* 0x55 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBT_56 }, /* 0x56 */ { 0x03, 0xFD, aImplUniToDBCSTab_GBT_57 }, /* 0x57 */ { 0x00, 0xFD, aImplUniToDBCSTab_GBT_58 }, /* 0x58 */ { 0x02, 0xFF, aImplUniToDBCSTab_GBT_59 }, /* 0x59 */ { 0x01, 0xFB, aImplUniToDBCSTab_GBT_5A }, /* 0x5A */ { 0x00, 0xFA, aImplUniToDBCSTab_GBT_5B }, /* 0x5B */ { 0x01, 0xFD, aImplUniToDBCSTab_GBT_5C }, /* 0x5C */ { 0x06, 0xFE, aImplUniToDBCSTab_GBT_5D }, /* 0x5D */ { 0x02, 0xFF, aImplUniToDBCSTab_GBT_5E }, /* 0x5E */ { 0x01, 0xFF, aImplUniToDBCSTab_GBT_5F }, /* 0x5F */ { 0x0A, 0xFB, aImplUniToDBCSTab_GBT_60 }, /* 0x60 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBT_61 }, /* 0x61 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBT_62 }, /* 0x62 */ { 0x01, 0xF8, aImplUniToDBCSTab_GBT_63 }, /* 0x63 */ { 0x0B, 0xFE, aImplUniToDBCSTab_GBT_64 }, /* 0x64 */ { 0x00, 0xFA, aImplUniToDBCSTab_GBT_65 }, /* 0x65 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBT_66 }, /* 0x66 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBT_67 }, /* 0x67 */ { 0x00, 0xFC, aImplUniToDBCSTab_GBT_68 }, /* 0x68 */ { 0x01, 0xFF, aImplUniToDBCSTab_GBT_69 }, /* 0x69 */ { 0x01, 0xFB, aImplUniToDBCSTab_GBT_6A }, /* 0x6A */ { 0x04, 0xFF, aImplUniToDBCSTab_GBT_6B }, /* 0x6B */ { 0x05, 0xF5, aImplUniToDBCSTab_GBT_6C }, /* 0x6C */ { 0x04, 0xFC, aImplUniToDBCSTab_GBT_6D }, /* 0x6D */ { 0x05, 0xFF, aImplUniToDBCSTab_GBT_6E }, /* 0x6E */ { 0x01, 0xFE, aImplUniToDBCSTab_GBT_6F }, /* 0x6F */ { 0x05, 0xFD, aImplUniToDBCSTab_GBT_70 }, /* 0x70 */ { 0x09, 0xFE, aImplUniToDBCSTab_GBT_71 }, /* 0x71 */ { 0x06, 0xFD, aImplUniToDBCSTab_GBT_72 }, /* 0x72 */ { 0x01, 0xFE, aImplUniToDBCSTab_GBT_73 }, /* 0x73 */ { 0x03, 0xFF, aImplUniToDBCSTab_GBT_74 }, /* 0x74 */ { 0x04, 0xFF, aImplUniToDBCSTab_GBT_75 }, /* 0x75 */ { 0x00, 0xFE, aImplUniToDBCSTab_GBT_76 }, /* 0x76 */ { 0x01, 0xFD, aImplUniToDBCSTab_GBT_77 }, /* 0x77 */ { 0x02, 0xFD, aImplUniToDBCSTab_GBT_78 }, /* 0x78 */ { 0x01, 0xFB, aImplUniToDBCSTab_GBT_79 }, /* 0x79 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBT_7A }, /* 0x7A */ { 0x04, 0xFE, aImplUniToDBCSTab_GBT_7B }, /* 0x7B */ { 0x00, 0xFE, aImplUniToDBCSTab_GBT_7C }, /* 0x7C */ { 0x00, 0xFB, aImplUniToDBCSTab_GBT_7D }, /* 0x7D */ { 0x08, 0x9C, aImplUniToDBCSTab_GBT_7E }, /* 0x7E */ { 0x36, 0xFC, aImplUniToDBCSTab_GBT_7F }, /* 0x7F */ { 0x00, 0xFD, aImplUniToDBCSTab_GBT_80 }, /* 0x80 */ { 0x02, 0xFE, aImplUniToDBCSTab_GBT_81 }, /* 0x81 */ { 0x00, 0xFB, aImplUniToDBCSTab_GBT_82 }, /* 0x82 */ { 0x01, 0xFD, aImplUniToDBCSTab_GBT_83 }, /* 0x83 */ { 0x01, 0xFF, aImplUniToDBCSTab_GBT_84 }, /* 0x84 */ { 0x0C, 0xFF, aImplUniToDBCSTab_GBT_85 }, /* 0x85 */ { 0x04, 0xFE, aImplUniToDBCSTab_GBT_86 }, /* 0x86 */ { 0x00, 0xFE, aImplUniToDBCSTab_GBT_87 }, /* 0x87 */ { 0x03, 0xFE, aImplUniToDBCSTab_GBT_88 }, /* 0x88 */ { 0x02, 0xF8, aImplUniToDBCSTab_GBT_89 }, /* 0x89 */ { 0x00, 0xFE, aImplUniToDBCSTab_GBT_8A }, /* 0x8A */ { 0x00, 0xFE, aImplUniToDBCSTab_GBT_8B }, /* 0x8B */ { 0x07, 0xFE, aImplUniToDBCSTab_GBT_8C }, /* 0x8C */ { 0x04, 0xFD, aImplUniToDBCSTab_GBT_8D }, /* 0x8D */ { 0x05, 0xFE, aImplUniToDBCSTab_GBT_8E }, /* 0x8E */ { 0x03, 0xFD, aImplUniToDBCSTab_GBT_8F }, /* 0x8F */ { 0x00, 0xFE, aImplUniToDBCSTab_GBT_90 }, /* 0x90 */ { 0x02, 0xFA, aImplUniToDBCSTab_GBT_91 }, /* 0x91 */ { 0x00, 0xFC, aImplUniToDBCSTab_GBT_92 }, /* 0x92 */ { 0x01, 0xF9, aImplUniToDBCSTab_GBT_93 }, /* 0x93 */ { 0x03, 0x7F, aImplUniToDBCSTab_GBT_94 }, /* 0x94 */ { 0x77, 0xE5, aImplUniToDBCSTab_GBT_95 }, /* 0x95 */ { 0x1C, 0xFB, aImplUniToDBCSTab_GBT_96 }, /* 0x96 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBT_97 }, /* 0x97 */ { 0x01, 0xFE, aImplUniToDBCSTab_GBT_98 }, /* 0x98 */ { 0x03, 0xFF, aImplUniToDBCSTab_GBT_99 }, /* 0x99 */ { 0x01, 0xFB, aImplUniToDBCSTab_GBT_9A }, /* 0x9A */ { 0x03, 0xFF, aImplUniToDBCSTab_GBT_9B }, /* 0x9B */ { 0x08, 0xF6, aImplUniToDBCSTab_GBT_9C }, /* 0x9C */ { 0x06, 0xFA, aImplUniToDBCSTab_GBT_9D }, /* 0x9D */ { 0x0C, 0xFF, aImplUniToDBCSTab_GBT_9E }, /* 0x9E */ { 0x09, 0xA0, aImplUniToDBCSTab_GBT_9F }, /* 0x9F */ { 1, 0, NULL }, /* 0xA0 */ { 1, 0, NULL }, /* 0xA1 */ { 1, 0, NULL }, /* 0xA2 */ { 1, 0, NULL }, /* 0xA3 */ { 1, 0, NULL }, /* 0xA4 */ { 1, 0, NULL }, /* 0xA5 */ { 1, 0, NULL }, /* 0xA6 */ { 1, 0, NULL }, /* 0xA7 */ { 1, 0, NULL }, /* 0xA8 */ { 1, 0, NULL }, /* 0xA9 */ { 1, 0, NULL }, /* 0xAA */ { 1, 0, NULL }, /* 0xAB */ { 1, 0, NULL }, /* 0xAC */ { 1, 0, NULL }, /* 0xAD */ { 1, 0, NULL }, /* 0xAE */ { 1, 0, NULL }, /* 0xAF */ { 1, 0, NULL }, /* 0xB0 */ { 1, 0, NULL }, /* 0xB1 */ { 1, 0, NULL }, /* 0xB2 */ { 1, 0, NULL }, /* 0xB3 */ { 1, 0, NULL }, /* 0xB4 */ { 1, 0, NULL }, /* 0xB5 */ { 1, 0, NULL }, /* 0xB6 */ { 1, 0, NULL }, /* 0xB7 */ { 1, 0, NULL }, /* 0xB8 */ { 1, 0, NULL }, /* 0xB9 */ { 1, 0, NULL }, /* 0xBA */ { 1, 0, NULL }, /* 0xBB */ { 1, 0, NULL }, /* 0xBC */ { 1, 0, NULL }, /* 0xBD */ { 1, 0, NULL }, /* 0xBE */ { 1, 0, NULL }, /* 0xBF */ { 1, 0, NULL }, /* 0xC0 */ { 1, 0, NULL }, /* 0xC1 */ { 1, 0, NULL }, /* 0xC2 */ { 1, 0, NULL }, /* 0xC3 */ { 1, 0, NULL }, /* 0xC4 */ { 1, 0, NULL }, /* 0xC5 */ { 1, 0, NULL }, /* 0xC6 */ { 1, 0, NULL }, /* 0xC7 */ { 1, 0, NULL }, /* 0xC8 */ { 1, 0, NULL }, /* 0xC9 */ { 1, 0, NULL }, /* 0xCA */ { 1, 0, NULL }, /* 0xCB */ { 1, 0, NULL }, /* 0xCC */ { 1, 0, NULL }, /* 0xCD */ { 1, 0, NULL }, /* 0xCE */ { 1, 0, NULL }, /* 0xCF */ { 1, 0, NULL }, /* 0xD0 */ { 1, 0, NULL }, /* 0xD1 */ { 1, 0, NULL }, /* 0xD2 */ { 1, 0, NULL }, /* 0xD3 */ { 1, 0, NULL }, /* 0xD4 */ { 1, 0, NULL }, /* 0xD5 */ { 1, 0, NULL }, /* 0xD6 */ { 1, 0, NULL }, /* 0xD7 */ { 1, 0, NULL }, /* 0xD8 */ { 1, 0, NULL }, /* 0xD9 */ { 1, 0, NULL }, /* 0xDA */ { 1, 0, NULL }, /* 0xDB */ { 1, 0, NULL }, /* 0xDC */ { 1, 0, NULL }, /* 0xDD */ { 1, 0, NULL }, /* 0xDE */ { 1, 0, NULL }, /* 0xDF */ { 1, 0, NULL }, /* 0xE0 */ { 1, 0, NULL }, /* 0xE1 */ { 1, 0, NULL }, /* 0xE2 */ { 1, 0, NULL }, /* 0xE3 */ { 1, 0, NULL }, /* 0xE4 */ { 1, 0, NULL }, /* 0xE5 */ { 1, 0, NULL }, /* 0xE6 */ { 1, 0, NULL }, /* 0xE7 */ { 1, 0, NULL }, /* 0xE8 */ { 1, 0, NULL }, /* 0xE9 */ { 1, 0, NULL }, /* 0xEA */ { 1, 0, NULL }, /* 0xEB */ { 1, 0, NULL }, /* 0xEC */ { 1, 0, NULL }, /* 0xED */ { 1, 0, NULL }, /* 0xEE */ { 1, 0, NULL }, /* 0xEF */ { 1, 0, NULL }, /* 0xF0 */ { 1, 0, NULL }, /* 0xF1 */ { 1, 0, NULL }, /* 0xF2 */ { 1, 0, NULL }, /* 0xF3 */ { 1, 0, NULL }, /* 0xF4 */ { 1, 0, NULL }, /* 0xF5 */ { 1, 0, NULL }, /* 0xF6 */ { 1, 0, NULL }, /* 0xF7 */ { 1, 0, NULL }, /* 0xF8 */ { 1, 0, NULL }, /* 0xF9 */ { 1, 0, NULL }, /* 0xFA */ { 1, 0, NULL }, /* 0xFB */ { 1, 0, NULL }, /* 0xFC */ { 1, 0, NULL }, /* 0xFD */ { 0x31, 0x44, aImplUniToDBCSTab_GB_FE }, /* 0xFE */ { 0x01, 0xE5, aImplUniToDBCSTab_GB_FF } /* 0xFF */ }; /* ----------------------------------------------------------------------- */ static ImplDBCSConvertData const aImplGBT12345DBCSCvtData = { aGBT12345UniLeadTab, aGBT12345DBCSHighTab, 0x00, 0xFF, 0xA1, 0xFE, aImplMS936DBCSEUDCTab, DBCS_EUDC_MS936_COUNT }; /* ----------------------------------------------------------------------- */ static ImplTextEncodingData const aImplGBT12345TextEncodingData = { { &aImplGBT12345DBCSCvtData, ImplDBCSToUnicode, ImplUnicodeToDBCS, NULL, NULL, NULL, NULL, NULL, NULL }, 1, 2, 2, 134, "euc-cn", "cn-gb-12345", RTL_TEXTENCODING_INFO_ASCII | RTL_TEXTENCODING_INFO_MULTIBYTE | RTL_TEXTENCODING_INFO_MIME }; /* SCRIPT_CHINESE_SIMPLIFIED, pc code page 936, mac encoding 25 */ /* ======================================================================= */ /* #100054# In the GBK range FE50--FEA0, added those mappings (in both directions) taken from GB-18030 that do not map to Unicode PUA (i.e., those mappings marked with an * below): FE50 -> U+2E81 * FE51 -> U+E816 FE52 -> U+E817 FE53 -> U+E818 FE54 -> U+2E84 * FE55 -> U+3473 * FE56 -> U+3447 * FE57 -> U+2E88 * FE58 -> U+2E8B * FE59 -> U+E81E FE5A -> U+359E * FE5B -> U+361A * FE5C -> U+360E * FE5D -> U+2E8C * FE5E -> U+2E97 * FE5F -> U+396E * FE60 -> U+3918 * FE61 -> U+E826 FE62 -> U+39CF * FE63 -> U+39DF * FE64 -> U+3A73 * FE65 -> U+39D0 * FE66 -> U+E82B FE67 -> U+E82C FE68 -> U+3B4E * FE69 -> U+3C6E * FE6A -> U+3CE0 * FE6B -> U+2EA7 * FE6C -> U+E831 FE6D -> U+E832 FE6E -> U+2EAA * FE6F -> U+4056 * FE70 -> U+415F * FE71 -> U+2EAE * FE72 -> U+4337 * FE73 -> U+2EB3 * FE74 -> U+2EB6 * FE75 -> U+2EB7 * FE76 -> U+E83B FE77 -> U+43B1 * FE78 -> U+43AC * FE79 -> U+2EBB * FE7A -> U+43DD * FE7B -> U+44D6 * FE7C -> U+4661 * FE7D -> U+464C * FE7E -> U+E843 FE80 -> U+4723 * FE81 -> U+4729 * FE82 -> U+477C * FE83 -> U+478D * FE84 -> U+2ECA * FE85 -> U+4947 * FE86 -> U+497A * FE87 -> U+497D * FE88 -> U+4982 * FE89 -> U+4983 * FE8A -> U+4985 * FE8B -> U+4986 * FE8C -> U+499F * FE8D -> U+499B * FE8E -> U+49B7 * FE8F -> U+49B6 * FE90 -> U+E854 FE91 -> U+E855 FE92 -> U+4CA3 * FE93 -> U+4C9F * FE94 -> U+4CA0 * FE95 -> U+4CA1 * FE96 -> U+4C77 * FE97 -> U+4CA2 * FE98 -> U+4D13 * FE99 -> U+4D14 * FE9A -> U+4D15 * FE9B -> U+4D16 * FE9C -> U+4D17 * FE9D -> U+4D18 * FE9E -> U+4D19 * FE9F -> U+4DAE * FEA0 -> U+E864 */ static ImplDBCSToUniLeadTab const aGBKUniLeadTab[256] = { { 0x0000, 0, 0, NULL }, /* 0x00 */ { 0x0001, 0, 0, NULL }, /* 0x01 */ { 0x0002, 0, 0, NULL }, /* 0x02 */ { 0x0003, 0, 0, NULL }, /* 0x03 */ { 0x0004, 0, 0, NULL }, /* 0x04 */ { 0x0005, 0, 0, NULL }, /* 0x05 */ { 0x0006, 0, 0, NULL }, /* 0x06 */ { 0x0007, 0, 0, NULL }, /* 0x07 */ { 0x0008, 0, 0, NULL }, /* 0x08 */ { 0x0009, 0, 0, NULL }, /* 0x09 */ { 0x000A, 0, 0, NULL }, /* 0x0A */ { 0x000B, 0, 0, NULL }, /* 0x0B */ { 0x000C, 0, 0, NULL }, /* 0x0C */ { 0x000D, 0, 0, NULL }, /* 0x0D */ { 0x000E, 0, 0, NULL }, /* 0x0E */ { 0x000F, 0, 0, NULL }, /* 0x0F */ { 0x0010, 0, 0, NULL }, /* 0x10 */ { 0x0011, 0, 0, NULL }, /* 0x11 */ { 0x0012, 0, 0, NULL }, /* 0x12 */ { 0x0013, 0, 0, NULL }, /* 0x13 */ { 0x0014, 0, 0, NULL }, /* 0x14 */ { 0x0015, 0, 0, NULL }, /* 0x15 */ { 0x0016, 0, 0, NULL }, /* 0x16 */ { 0x0017, 0, 0, NULL }, /* 0x17 */ { 0x0018, 0, 0, NULL }, /* 0x18 */ { 0x0019, 0, 0, NULL }, /* 0x19 */ { 0x001A, 0, 0, NULL }, /* 0x1A */ { 0x001B, 0, 0, NULL }, /* 0x1B */ { 0x001C, 0, 0, NULL }, /* 0x1C */ { 0x001D, 0, 0, NULL }, /* 0x1D */ { 0x001E, 0, 0, NULL }, /* 0x1E */ { 0x001F, 0, 0, NULL }, /* 0x1F */ { 0x0020, 0, 0, NULL }, /* 0x20 */ { 0x0021, 0, 0, NULL }, /* 0x21 */ { 0x0022, 0, 0, NULL }, /* 0x22 */ { 0x0023, 0, 0, NULL }, /* 0x23 */ { 0x0024, 0, 0, NULL }, /* 0x24 */ { 0x0025, 0, 0, NULL }, /* 0x25 */ { 0x0026, 0, 0, NULL }, /* 0x26 */ { 0x0027, 0, 0, NULL }, /* 0x27 */ { 0x0028, 0, 0, NULL }, /* 0x28 */ { 0x0029, 0, 0, NULL }, /* 0x29 */ { 0x002A, 0, 0, NULL }, /* 0x2A */ { 0x002B, 0, 0, NULL }, /* 0x2B */ { 0x002C, 0, 0, NULL }, /* 0x2C */ { 0x002D, 0, 0, NULL }, /* 0x2D */ { 0x002E, 0, 0, NULL }, /* 0x2E */ { 0x002F, 0, 0, NULL }, /* 0x2F */ { 0x0030, 0, 0, NULL }, /* 0x30 */ { 0x0031, 0, 0, NULL }, /* 0x31 */ { 0x0032, 0, 0, NULL }, /* 0x32 */ { 0x0033, 0, 0, NULL }, /* 0x33 */ { 0x0034, 0, 0, NULL }, /* 0x34 */ { 0x0035, 0, 0, NULL }, /* 0x35 */ { 0x0036, 0, 0, NULL }, /* 0x36 */ { 0x0037, 0, 0, NULL }, /* 0x37 */ { 0x0038, 0, 0, NULL }, /* 0x38 */ { 0x0039, 0, 0, NULL }, /* 0x39 */ { 0x003A, 0, 0, NULL }, /* 0x3A */ { 0x003B, 0, 0, NULL }, /* 0x3B */ { 0x003C, 0, 0, NULL }, /* 0x3C */ { 0x003D, 0, 0, NULL }, /* 0x3D */ { 0x003E, 0, 0, NULL }, /* 0x3E */ { 0x003F, 0, 0, NULL }, /* 0x3F */ { 0x0040, 0, 0, NULL }, /* 0x40 */ { 0x0041, 0, 0, NULL }, /* 0x41 */ { 0x0042, 0, 0, NULL }, /* 0x42 */ { 0x0043, 0, 0, NULL }, /* 0x43 */ { 0x0044, 0, 0, NULL }, /* 0x44 */ { 0x0045, 0, 0, NULL }, /* 0x45 */ { 0x0046, 0, 0, NULL }, /* 0x46 */ { 0x0047, 0, 0, NULL }, /* 0x47 */ { 0x0048, 0, 0, NULL }, /* 0x48 */ { 0x0049, 0, 0, NULL }, /* 0x49 */ { 0x004A, 0, 0, NULL }, /* 0x4A */ { 0x004B, 0, 0, NULL }, /* 0x4B */ { 0x004C, 0, 0, NULL }, /* 0x4C */ { 0x004D, 0, 0, NULL }, /* 0x4D */ { 0x004E, 0, 0, NULL }, /* 0x4E */ { 0x004F, 0, 0, NULL }, /* 0x4F */ { 0x0050, 0, 0, NULL }, /* 0x50 */ { 0x0051, 0, 0, NULL }, /* 0x51 */ { 0x0052, 0, 0, NULL }, /* 0x52 */ { 0x0053, 0, 0, NULL }, /* 0x53 */ { 0x0054, 0, 0, NULL }, /* 0x54 */ { 0x0055, 0, 0, NULL }, /* 0x55 */ { 0x0056, 0, 0, NULL }, /* 0x56 */ { 0x0057, 0, 0, NULL }, /* 0x57 */ { 0x0058, 0, 0, NULL }, /* 0x58 */ { 0x0059, 0, 0, NULL }, /* 0x59 */ { 0x005A, 0, 0, NULL }, /* 0x5A */ { 0x005B, 0, 0, NULL }, /* 0x5B */ { 0x005C, 0, 0, NULL }, /* 0x5C */ { 0x005D, 0, 0, NULL }, /* 0x5D */ { 0x005E, 0, 0, NULL }, /* 0x5E */ { 0x005F, 0, 0, NULL }, /* 0x5F */ { 0x0060, 0, 0, NULL }, /* 0x60 */ { 0x0061, 0, 0, NULL }, /* 0x61 */ { 0x0062, 0, 0, NULL }, /* 0x62 */ { 0x0063, 0, 0, NULL }, /* 0x63 */ { 0x0064, 0, 0, NULL }, /* 0x64 */ { 0x0065, 0, 0, NULL }, /* 0x65 */ { 0x0066, 0, 0, NULL }, /* 0x66 */ { 0x0067, 0, 0, NULL }, /* 0x67 */ { 0x0068, 0, 0, NULL }, /* 0x68 */ { 0x0069, 0, 0, NULL }, /* 0x69 */ { 0x006A, 0, 0, NULL }, /* 0x6A */ { 0x006B, 0, 0, NULL }, /* 0x6B */ { 0x006C, 0, 0, NULL }, /* 0x6C */ { 0x006D, 0, 0, NULL }, /* 0x6D */ { 0x006E, 0, 0, NULL }, /* 0x6E */ { 0x006F, 0, 0, NULL }, /* 0x6F */ { 0x0070, 0, 0, NULL }, /* 0x70 */ { 0x0071, 0, 0, NULL }, /* 0x71 */ { 0x0072, 0, 0, NULL }, /* 0x72 */ { 0x0073, 0, 0, NULL }, /* 0x73 */ { 0x0074, 0, 0, NULL }, /* 0x74 */ { 0x0075, 0, 0, NULL }, /* 0x75 */ { 0x0076, 0, 0, NULL }, /* 0x76 */ { 0x0077, 0, 0, NULL }, /* 0x77 */ { 0x0078, 0, 0, NULL }, /* 0x78 */ { 0x0079, 0, 0, NULL }, /* 0x79 */ { 0x007A, 0, 0, NULL }, /* 0x7A */ { 0x007B, 0, 0, NULL }, /* 0x7B */ { 0x007C, 0, 0, NULL }, /* 0x7C */ { 0x007D, 0, 0, NULL }, /* 0x7D */ { 0x007E, 0, 0, NULL }, /* 0x7E */ { 0x007F, 0, 0, NULL }, /* 0x7F */ { 0x20AC, 0, 0, NULL }, /* 0x80 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_81 }, /* 0x81 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_82 }, /* 0x82 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_83 }, /* 0x83 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_84 }, /* 0x84 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_85 }, /* 0x85 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_86 }, /* 0x86 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_87 }, /* 0x87 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_88 }, /* 0x88 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_89 }, /* 0x89 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_8A }, /* 0x8A */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_8B }, /* 0x8B */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_8C }, /* 0x8C */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_8D }, /* 0x8D */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_8E }, /* 0x8E */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_8F }, /* 0x8F */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_90 }, /* 0x90 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_91 }, /* 0x91 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_92 }, /* 0x92 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_93 }, /* 0x93 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_94 }, /* 0x94 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_95 }, /* 0x95 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_96 }, /* 0x96 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_97 }, /* 0x97 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_98 }, /* 0x98 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_99 }, /* 0x99 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_9A }, /* 0x9A */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_9B }, /* 0x9B */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_9C }, /* 0x9C */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_9D }, /* 0x9D */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_9E }, /* 0x9E */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_9F }, /* 0x9F */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_A0 }, /* 0xA0 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GB_A1 }, /* 0xA1 */ { 0, 0xA1, 0xFC, aImplDBCSToUniTab_GB_A2 }, /* 0xA2 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GB_A3 }, /* 0xA3 */ { 0, 0xA1, 0xF3, aImplDBCSToUniTab_GB_A4 }, /* 0xA4 */ { 0, 0xA1, 0xF6, aImplDBCSToUniTab_GB_A5 }, /* 0xA5 */ { 0, 0xA1, 0xF5, aImplDBCSToUniTab_GB_A6 }, /* 0xA6 */ { 0, 0xA1, 0xF1, aImplDBCSToUniTab_GB_A7 }, /* 0xA7 */ { 0, 0x40, 0xE9, aImplDBCSToUniTab_GBK_A8 }, /* 0xA8 */ { 0, 0x40, 0xEF, aImplDBCSToUniTab_GBK_A9 }, /* 0xA9 */ { 0, 0x40, 0xA0, aImplDBCSToUniTab_GBK_AA }, /* 0xAA */ { 0, 0x40, 0xA0, aImplDBCSToUniTab_GBK_AB }, /* 0xAB */ { 0, 0x40, 0xA0, aImplDBCSToUniTab_GBK_AC }, /* 0xAC */ { 0, 0x40, 0xA0, aImplDBCSToUniTab_GBK_AD }, /* 0xAD */ { 0, 0x40, 0xA0, aImplDBCSToUniTab_GBK_AE }, /* 0xAE */ { 0, 0x40, 0xA0, aImplDBCSToUniTab_GBK_AF }, /* 0xAF */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_B0 }, /* 0xB0 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_B1 }, /* 0xB1 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_B2 }, /* 0xB2 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_B3 }, /* 0xB3 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_B4 }, /* 0xB4 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_B5 }, /* 0xB5 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_B6 }, /* 0xB6 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_B7 }, /* 0xB7 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_B8 }, /* 0xB8 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_B9 }, /* 0xB9 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_BA }, /* 0xBA */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_BB }, /* 0xBB */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_BC }, /* 0xBC */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_BD }, /* 0xBD */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_BE }, /* 0xBE */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_BF }, /* 0xBF */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_C0 }, /* 0xC0 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_C1 }, /* 0xC1 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_C2 }, /* 0xC2 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_C3 }, /* 0xC3 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_C4 }, /* 0xC4 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_C5 }, /* 0xC5 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_C6 }, /* 0xC6 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_C7 }, /* 0xC7 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_C8 }, /* 0xC8 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_C9 }, /* 0xC9 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_CA }, /* 0xCA */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_CB }, /* 0xCB */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_CC }, /* 0xCC */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_CD }, /* 0xCD */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_CE }, /* 0xCE */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_CF }, /* 0xCF */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_D0 }, /* 0xD0 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_D1 }, /* 0xD1 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_D2 }, /* 0xD2 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_D3 }, /* 0xD3 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_D4 }, /* 0xD4 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_D5 }, /* 0xD5 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_D6 }, /* 0xD6 */ { 0, 0x40, 0xF9, aImplDBCSToUniTab_GBK_D7 }, /* 0xD7 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_D8 }, /* 0xD8 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_D9 }, /* 0xD9 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_DA }, /* 0xDA */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_DB }, /* 0xDB */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_DC }, /* 0xDC */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_DD }, /* 0xDD */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_DE }, /* 0xDE */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_DF }, /* 0xDF */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_E0 }, /* 0xE0 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_E1 }, /* 0xE1 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_E2 }, /* 0xE2 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_E3 }, /* 0xE3 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_E4 }, /* 0xE4 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_E5 }, /* 0xE5 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_E6 }, /* 0xE6 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_E7 }, /* 0xE7 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_E8 }, /* 0xE8 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_E9 }, /* 0xE9 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_EA }, /* 0xEA */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_EB }, /* 0xEB */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_EC }, /* 0xEC */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_ED }, /* 0xED */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_EE }, /* 0xEE */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_EF }, /* 0xEF */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_F0 }, /* 0xF0 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_F1 }, /* 0xF1 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_F2 }, /* 0xF2 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_F3 }, /* 0xF3 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_F4 }, /* 0xF4 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_F5 }, /* 0xF5 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_F6 }, /* 0xF6 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_F7 }, /* 0xF7 */ { 0, 0x40, 0xA0, aImplDBCSToUniTab_GBK_F8 }, /* 0xF8 */ { 0, 0x40, 0xA0, aImplDBCSToUniTab_GBK_F9 }, /* 0xF9 */ { 0, 0x40, 0xA0, aImplDBCSToUniTab_GBK_FA }, /* 0xFA */ { 0, 0x40, 0xA0, aImplDBCSToUniTab_GBK_FB }, /* 0xFB */ { 0, 0x40, 0xA0, aImplDBCSToUniTab_GBK_FC }, /* 0xFC */ { 0, 0x40, 0xA0, aImplDBCSToUniTab_GBK_FD }, /* 0xFD */ { 0, 0x40, 0x9F, aImplDBCSToUniTab_GBK_FE }, /* 0xFE */ { 0, 1, 0, NULL } /* 0xFF */ }; /* ----------------------------------------------------------------------- */ static ImplUniToDBCSHighTab const aGBKDBCSHighTab[256] = { { 0x00, 0xFC, aImplUniToDBCSTab_GB_00 }, /* 0x00 */ { 0x01, 0xDC, aImplUniToDBCSTab_GB_01 }, /* 0x01 */ { 0x51, 0xD9, aImplUniToDBCSTab_GBK_02 }, /* 0x02 */ { 0x91, 0xC9, aImplUniToDBCSTab_GB_03 }, /* 0x03 */ { 0x01, 0x51, aImplUniToDBCSTab_GB_04 }, /* 0x04 */ { 1, 0, NULL }, /* 0x05 */ { 1, 0, NULL }, /* 0x06 */ { 1, 0, NULL }, /* 0x07 */ { 1, 0, NULL }, /* 0x08 */ { 1, 0, NULL }, /* 0x09 */ { 1, 0, NULL }, /* 0x0A */ { 1, 0, NULL }, /* 0x0B */ { 1, 0, NULL }, /* 0x0C */ { 1, 0, NULL }, /* 0x0D */ { 1, 0, NULL }, /* 0x0E */ { 1, 0, NULL }, /* 0x0F */ { 1, 0, NULL }, /* 0x10 */ { 1, 0, NULL }, /* 0x11 */ { 1, 0, NULL }, /* 0x12 */ { 1, 0, NULL }, /* 0x13 */ { 1, 0, NULL }, /* 0x14 */ { 1, 0, NULL }, /* 0x15 */ { 1, 0, NULL }, /* 0x16 */ { 1, 0, NULL }, /* 0x17 */ { 1, 0, NULL }, /* 0x18 */ { 1, 0, NULL }, /* 0x19 */ { 1, 0, NULL }, /* 0x1A */ { 1, 0, NULL }, /* 0x1B */ { 1, 0, NULL }, /* 0x1C */ { 1, 0, NULL }, /* 0x1D */ { 0x3F, 0x3F, aImplUniToDBCSTab_APPLECHINSIMP_1E }, /* 0x1E */ /* we convert this char also to unicode */ { 1, 0, NULL }, /* 0x1F */ { 0x10, 0xAC, aImplUniToDBCSTab_GBK_20 }, /* 0x20 */ { 0x03, 0x99, aImplUniToDBCSTab_GBK_21 }, /* 0x21 */ { 0x08, 0xEF, aImplUniToDBCSTab_GBK_22 }, /* 0x22 */ { 0x12, 0x12, aImplUniToDBCSTab_GB_23 }, /* 0x23 */ { 0x60, 0x9B, aImplUniToDBCSTab_GB_24 }, /* 0x24 */ { 0x00, 0xE5, aImplUniToDBCSTab_GBK_25 }, /* 0x25 */ { 0x05, 0x42, aImplUniToDBCSTab_GBK_26 }, /* 0x26 */ { 1, 0, NULL }, /* 0x27 */ { 1, 0, NULL }, /* 0x28 */ { 1, 0, NULL }, /* 0x29 */ { 1, 0, NULL }, /* 0x2A */ { 1, 0, NULL }, /* 0x2B */ { 1, 0, NULL }, /* 0x2C */ { 1, 0, NULL }, /* 0x2D */ { 0x81, 0xCA, aImplUniToDBCSTab_GBK_2E }, /* 0x2E */ { 1, 0, NULL }, /* 0x2F */ { 0x00, 0xFE, aImplUniToDBCSTab_GBK_30 }, /* 0x30 */ { 0x05, 0x29, aImplUniToDBCSTab_GB_31 }, /* 0x31 */ { 0x20, 0xA3, aImplUniToDBCSTab_GBK_32 }, /* 0x32 */ { 0x8E, 0xD5, aImplUniToDBCSTab_GBK_33 }, /* 0x33 */ { 0x47, 0x73, aImplUniToDBCSTab_GBK_34 }, /* 0x34 */ { 0x9E, 0x9E, aImplUniToDBCSTab_GBK_35 }, /* 0x35 */ { 0x0E, 0x1A, aImplUniToDBCSTab_GBK_36 }, /* 0x36 */ { 1, 0, NULL }, /* 0x37 */ { 1, 0, NULL }, /* 0x38 */ { 0x18, 0xDF, aImplUniToDBCSTab_GBK_39 }, /* 0x39 */ { 0x73, 0x73, aImplUniToDBCSTab_GBK_3A }, /* 0x3A */ { 0x4E, 0x4E, aImplUniToDBCSTab_GBK_3B }, /* 0x3B */ { 0x6E, 0xE0, aImplUniToDBCSTab_GBK_3C }, /* 0x3C */ { 1, 0, NULL }, /* 0x3D */ { 1, 0, NULL }, /* 0x3E */ { 1, 0, NULL }, /* 0x3F */ { 0x56, 0x56, aImplUniToDBCSTab_GBK_40 }, /* 0x40 */ { 0x5F, 0x5F, aImplUniToDBCSTab_GBK_41 }, /* 0x41 */ { 1, 0, NULL }, /* 0x42 */ { 0x37, 0xDD, aImplUniToDBCSTab_GBK_43 }, /* 0x43 */ { 0xD6, 0xD6, aImplUniToDBCSTab_GBK_44 }, /* 0x44 */ { 1, 0, NULL }, /* 0x45 */ { 0x4C, 0x61, aImplUniToDBCSTab_GBK_46 }, /* 0x46 */ { 0x23, 0x8D, aImplUniToDBCSTab_GBK_47 }, /* 0x47 */ { 1, 0, NULL }, /* 0x48 */ { 0x47, 0xB7, aImplUniToDBCSTab_GBK_49 }, /* 0x49 */ { 1, 0, NULL }, /* 0x4A */ { 1, 0, NULL }, /* 0x4B */ { 0x77, 0xA3, aImplUniToDBCSTab_GBK_4C }, /* 0x4C */ { 0x13, 0xAE, aImplUniToDBCSTab_GBK_4D }, /* 0x4D */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_4E }, /* 0x4E */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_4F }, /* 0x4F */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_50 }, /* 0x50 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_51 }, /* 0x51 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_52 }, /* 0x52 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_53 }, /* 0x53 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_54 }, /* 0x54 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_55 }, /* 0x55 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_56 }, /* 0x56 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_57 }, /* 0x57 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_58 }, /* 0x58 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_59 }, /* 0x59 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_5A }, /* 0x5A */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_5B }, /* 0x5B */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_5C }, /* 0x5C */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_5D }, /* 0x5D */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_5E }, /* 0x5E */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_5F }, /* 0x5F */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_60 }, /* 0x60 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_61 }, /* 0x61 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_62 }, /* 0x62 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_63 }, /* 0x63 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_64 }, /* 0x64 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_65 }, /* 0x65 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_66 }, /* 0x66 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_67 }, /* 0x67 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_68 }, /* 0x68 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_69 }, /* 0x69 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_6A }, /* 0x6A */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_6B }, /* 0x6B */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_6C }, /* 0x6C */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_6D }, /* 0x6D */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_6E }, /* 0x6E */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_6F }, /* 0x6F */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_70 }, /* 0x70 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_71 }, /* 0x71 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_72 }, /* 0x72 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_73 }, /* 0x73 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_74 }, /* 0x74 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_75 }, /* 0x75 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_76 }, /* 0x76 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_77 }, /* 0x77 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_78 }, /* 0x78 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_79 }, /* 0x79 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_7A }, /* 0x7A */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_7B }, /* 0x7B */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_7C }, /* 0x7C */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_7D }, /* 0x7D */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_7E }, /* 0x7E */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_7F }, /* 0x7F */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_80 }, /* 0x80 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_81 }, /* 0x81 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_82 }, /* 0x82 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_83 }, /* 0x83 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_84 }, /* 0x84 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_85 }, /* 0x85 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_86 }, /* 0x86 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_87 }, /* 0x87 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_88 }, /* 0x88 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_89 }, /* 0x89 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_8A }, /* 0x8A */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_8B }, /* 0x8B */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_8C }, /* 0x8C */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_8D }, /* 0x8D */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_8E }, /* 0x8E */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_8F }, /* 0x8F */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_90 }, /* 0x90 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_91 }, /* 0x91 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_92 }, /* 0x92 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_93 }, /* 0x93 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_94 }, /* 0x94 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_95 }, /* 0x95 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_96 }, /* 0x96 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_97 }, /* 0x97 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_98 }, /* 0x98 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_99 }, /* 0x99 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_9A }, /* 0x9A */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_9B }, /* 0x9B */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_9C }, /* 0x9C */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_9D }, /* 0x9D */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_9E }, /* 0x9E */ { 0x00, 0xA5, aImplUniToDBCSTab_GBK_9F }, /* 0x9F */ { 1, 0, NULL }, /* 0xA0 */ { 1, 0, NULL }, /* 0xA1 */ { 1, 0, NULL }, /* 0xA2 */ { 1, 0, NULL }, /* 0xA3 */ { 1, 0, NULL }, /* 0xA4 */ { 1, 0, NULL }, /* 0xA5 */ { 1, 0, NULL }, /* 0xA6 */ { 1, 0, NULL }, /* 0xA7 */ { 1, 0, NULL }, /* 0xA8 */ { 1, 0, NULL }, /* 0xA9 */ { 1, 0, NULL }, /* 0xAA */ { 1, 0, NULL }, /* 0xAB */ { 1, 0, NULL }, /* 0xAC */ { 1, 0, NULL }, /* 0xAD */ { 1, 0, NULL }, /* 0xAE */ { 1, 0, NULL }, /* 0xAF */ { 1, 0, NULL }, /* 0xB0 */ { 1, 0, NULL }, /* 0xB1 */ { 1, 0, NULL }, /* 0xB2 */ { 1, 0, NULL }, /* 0xB3 */ { 1, 0, NULL }, /* 0xB4 */ { 1, 0, NULL }, /* 0xB5 */ { 1, 0, NULL }, /* 0xB6 */ { 1, 0, NULL }, /* 0xB7 */ { 1, 0, NULL }, /* 0xB8 */ { 1, 0, NULL }, /* 0xB9 */ { 1, 0, NULL }, /* 0xBA */ { 1, 0, NULL }, /* 0xBB */ { 1, 0, NULL }, /* 0xBC */ { 1, 0, NULL }, /* 0xBD */ { 1, 0, NULL }, /* 0xBE */ { 1, 0, NULL }, /* 0xBF */ { 1, 0, NULL }, /* 0xC0 */ { 1, 0, NULL }, /* 0xC1 */ { 1, 0, NULL }, /* 0xC2 */ { 1, 0, NULL }, /* 0xC3 */ { 1, 0, NULL }, /* 0xC4 */ { 1, 0, NULL }, /* 0xC5 */ { 1, 0, NULL }, /* 0xC6 */ { 1, 0, NULL }, /* 0xC7 */ { 1, 0, NULL }, /* 0xC8 */ { 1, 0, NULL }, /* 0xC9 */ { 1, 0, NULL }, /* 0xCA */ { 1, 0, NULL }, /* 0xCB */ { 1, 0, NULL }, /* 0xCC */ { 1, 0, NULL }, /* 0xCD */ { 1, 0, NULL }, /* 0xCE */ { 1, 0, NULL }, /* 0xCF */ { 1, 0, NULL }, /* 0xD0 */ { 1, 0, NULL }, /* 0xD1 */ { 1, 0, NULL }, /* 0xD2 */ { 1, 0, NULL }, /* 0xD3 */ { 1, 0, NULL }, /* 0xD4 */ { 1, 0, NULL }, /* 0xD5 */ { 1, 0, NULL }, /* 0xD6 */ { 1, 0, NULL }, /* 0xD7 */ { 1, 0, NULL }, /* 0xD8 */ { 1, 0, NULL }, /* 0xD9 */ { 1, 0, NULL }, /* 0xDA */ { 1, 0, NULL }, /* 0xDB */ { 1, 0, NULL }, /* 0xDC */ { 1, 0, NULL }, /* 0xDD */ { 1, 0, NULL }, /* 0xDE */ { 1, 0, NULL }, /* 0xDF */ { 1, 0, NULL }, /* 0xE0 */ { 1, 0, NULL }, /* 0xE1 */ { 1, 0, NULL }, /* 0xE2 */ { 1, 0, NULL }, /* 0xE3 */ { 1, 0, NULL }, /* 0xE4 */ { 1, 0, NULL }, /* 0xE5 */ { 1, 0, NULL }, /* 0xE6 */ { 1, 0, NULL }, /* 0xE7 */ { 1, 0, NULL }, /* 0xE8 */ { 1, 0, NULL }, /* 0xE9 */ { 1, 0, NULL }, /* 0xEA */ { 1, 0, NULL }, /* 0xEB */ { 1, 0, NULL }, /* 0xEC */ { 1, 0, NULL }, /* 0xED */ { 1, 0, NULL }, /* 0xEE */ { 1, 0, NULL }, /* 0xEF */ { 1, 0, NULL }, /* 0xF0 */ { 1, 0, NULL }, /* 0xF1 */ { 1, 0, NULL }, /* 0xF2 */ { 1, 0, NULL }, /* 0xF3 */ { 1, 0, NULL }, /* 0xF4 */ { 1, 0, NULL }, /* 0xF5 */ { 1, 0, NULL }, /* 0xF6 */ { 1, 0, NULL }, /* 0xF7 */ { 1, 0, NULL }, /* 0xF8 */ { 0x2C, 0xF1, aImplUniToDBCSTab_GBK_F9 }, /* 0xF9 */ { 0x0C, 0x29, aImplUniToDBCSTab_GBK_FA }, /* 0xFA */ { 1, 0, NULL }, /* 0xFB */ { 1, 0, NULL }, /* 0xFC */ { 1, 0, NULL }, /* 0xFD */ { 0x30, 0x6B, aImplUniToDBCSTab_GBK_FE }, /* 0xFE */ { 0x01, 0xE5, aImplUniToDBCSTab_GBK_FF } /* 0xFF */ }; /* ----------------------------------------------------------------------- */ static ImplDBCSConvertData const aImplGBKDBCSCvtData = { aGBKUniLeadTab, aGBKDBCSHighTab, 0x00, 0xFF, 0x40, 0xFE, aImplMS936DBCSEUDCTab, DBCS_EUDC_MS936_COUNT }; /* ----------------------------------------------------------------------- */ static ImplTextEncodingData const aImplGBKTextEncodingData = { { &aImplGBKDBCSCvtData, ImplDBCSToUnicode, ImplUnicodeToDBCS, NULL, NULL, NULL, NULL, NULL, NULL }, 1, 2, 2, 134, "euc-cn", "GBK", RTL_TEXTENCODING_INFO_MULTIBYTE | RTL_TEXTENCODING_INFO_MIME }; /* SCRIPT_CHINESE_SIMPLIFIED, pc code page 936, mac encoding 25 */ /* ======================================================================= */ static ImplDBCSToUniLeadTab const aMS936UniLeadTab[256] = { { 0x0000, 0, 0, NULL }, /* 0x00 */ { 0x0001, 0, 0, NULL }, /* 0x01 */ { 0x0002, 0, 0, NULL }, /* 0x02 */ { 0x0003, 0, 0, NULL }, /* 0x03 */ { 0x0004, 0, 0, NULL }, /* 0x04 */ { 0x0005, 0, 0, NULL }, /* 0x05 */ { 0x0006, 0, 0, NULL }, /* 0x06 */ { 0x0007, 0, 0, NULL }, /* 0x07 */ { 0x0008, 0, 0, NULL }, /* 0x08 */ { 0x0009, 0, 0, NULL }, /* 0x09 */ { 0x000A, 0, 0, NULL }, /* 0x0A */ { 0x000B, 0, 0, NULL }, /* 0x0B */ { 0x000C, 0, 0, NULL }, /* 0x0C */ { 0x000D, 0, 0, NULL }, /* 0x0D */ { 0x000E, 0, 0, NULL }, /* 0x0E */ { 0x000F, 0, 0, NULL }, /* 0x0F */ { 0x0010, 0, 0, NULL }, /* 0x10 */ { 0x0011, 0, 0, NULL }, /* 0x11 */ { 0x0012, 0, 0, NULL }, /* 0x12 */ { 0x0013, 0, 0, NULL }, /* 0x13 */ { 0x0014, 0, 0, NULL }, /* 0x14 */ { 0x0015, 0, 0, NULL }, /* 0x15 */ { 0x0016, 0, 0, NULL }, /* 0x16 */ { 0x0017, 0, 0, NULL }, /* 0x17 */ { 0x0018, 0, 0, NULL }, /* 0x18 */ { 0x0019, 0, 0, NULL }, /* 0x19 */ { 0x001A, 0, 0, NULL }, /* 0x1A */ { 0x001B, 0, 0, NULL }, /* 0x1B */ { 0x001C, 0, 0, NULL }, /* 0x1C */ { 0x001D, 0, 0, NULL }, /* 0x1D */ { 0x001E, 0, 0, NULL }, /* 0x1E */ { 0x001F, 0, 0, NULL }, /* 0x1F */ { 0x0020, 0, 0, NULL }, /* 0x20 */ { 0x0021, 0, 0, NULL }, /* 0x21 */ { 0x0022, 0, 0, NULL }, /* 0x22 */ { 0x0023, 0, 0, NULL }, /* 0x23 */ { 0x0024, 0, 0, NULL }, /* 0x24 */ { 0x0025, 0, 0, NULL }, /* 0x25 */ { 0x0026, 0, 0, NULL }, /* 0x26 */ { 0x0027, 0, 0, NULL }, /* 0x27 */ { 0x0028, 0, 0, NULL }, /* 0x28 */ { 0x0029, 0, 0, NULL }, /* 0x29 */ { 0x002A, 0, 0, NULL }, /* 0x2A */ { 0x002B, 0, 0, NULL }, /* 0x2B */ { 0x002C, 0, 0, NULL }, /* 0x2C */ { 0x002D, 0, 0, NULL }, /* 0x2D */ { 0x002E, 0, 0, NULL }, /* 0x2E */ { 0x002F, 0, 0, NULL }, /* 0x2F */ { 0x0030, 0, 0, NULL }, /* 0x30 */ { 0x0031, 0, 0, NULL }, /* 0x31 */ { 0x0032, 0, 0, NULL }, /* 0x32 */ { 0x0033, 0, 0, NULL }, /* 0x33 */ { 0x0034, 0, 0, NULL }, /* 0x34 */ { 0x0035, 0, 0, NULL }, /* 0x35 */ { 0x0036, 0, 0, NULL }, /* 0x36 */ { 0x0037, 0, 0, NULL }, /* 0x37 */ { 0x0038, 0, 0, NULL }, /* 0x38 */ { 0x0039, 0, 0, NULL }, /* 0x39 */ { 0x003A, 0, 0, NULL }, /* 0x3A */ { 0x003B, 0, 0, NULL }, /* 0x3B */ { 0x003C, 0, 0, NULL }, /* 0x3C */ { 0x003D, 0, 0, NULL }, /* 0x3D */ { 0x003E, 0, 0, NULL }, /* 0x3E */ { 0x003F, 0, 0, NULL }, /* 0x3F */ { 0x0040, 0, 0, NULL }, /* 0x40 */ { 0x0041, 0, 0, NULL }, /* 0x41 */ { 0x0042, 0, 0, NULL }, /* 0x42 */ { 0x0043, 0, 0, NULL }, /* 0x43 */ { 0x0044, 0, 0, NULL }, /* 0x44 */ { 0x0045, 0, 0, NULL }, /* 0x45 */ { 0x0046, 0, 0, NULL }, /* 0x46 */ { 0x0047, 0, 0, NULL }, /* 0x47 */ { 0x0048, 0, 0, NULL }, /* 0x48 */ { 0x0049, 0, 0, NULL }, /* 0x49 */ { 0x004A, 0, 0, NULL }, /* 0x4A */ { 0x004B, 0, 0, NULL }, /* 0x4B */ { 0x004C, 0, 0, NULL }, /* 0x4C */ { 0x004D, 0, 0, NULL }, /* 0x4D */ { 0x004E, 0, 0, NULL }, /* 0x4E */ { 0x004F, 0, 0, NULL }, /* 0x4F */ { 0x0050, 0, 0, NULL }, /* 0x50 */ { 0x0051, 0, 0, NULL }, /* 0x51 */ { 0x0052, 0, 0, NULL }, /* 0x52 */ { 0x0053, 0, 0, NULL }, /* 0x53 */ { 0x0054, 0, 0, NULL }, /* 0x54 */ { 0x0055, 0, 0, NULL }, /* 0x55 */ { 0x0056, 0, 0, NULL }, /* 0x56 */ { 0x0057, 0, 0, NULL }, /* 0x57 */ { 0x0058, 0, 0, NULL }, /* 0x58 */ { 0x0059, 0, 0, NULL }, /* 0x59 */ { 0x005A, 0, 0, NULL }, /* 0x5A */ { 0x005B, 0, 0, NULL }, /* 0x5B */ { 0x005C, 0, 0, NULL }, /* 0x5C */ { 0x005D, 0, 0, NULL }, /* 0x5D */ { 0x005E, 0, 0, NULL }, /* 0x5E */ { 0x005F, 0, 0, NULL }, /* 0x5F */ { 0x0060, 0, 0, NULL }, /* 0x60 */ { 0x0061, 0, 0, NULL }, /* 0x61 */ { 0x0062, 0, 0, NULL }, /* 0x62 */ { 0x0063, 0, 0, NULL }, /* 0x63 */ { 0x0064, 0, 0, NULL }, /* 0x64 */ { 0x0065, 0, 0, NULL }, /* 0x65 */ { 0x0066, 0, 0, NULL }, /* 0x66 */ { 0x0067, 0, 0, NULL }, /* 0x67 */ { 0x0068, 0, 0, NULL }, /* 0x68 */ { 0x0069, 0, 0, NULL }, /* 0x69 */ { 0x006A, 0, 0, NULL }, /* 0x6A */ { 0x006B, 0, 0, NULL }, /* 0x6B */ { 0x006C, 0, 0, NULL }, /* 0x6C */ { 0x006D, 0, 0, NULL }, /* 0x6D */ { 0x006E, 0, 0, NULL }, /* 0x6E */ { 0x006F, 0, 0, NULL }, /* 0x6F */ { 0x0070, 0, 0, NULL }, /* 0x70 */ { 0x0071, 0, 0, NULL }, /* 0x71 */ { 0x0072, 0, 0, NULL }, /* 0x72 */ { 0x0073, 0, 0, NULL }, /* 0x73 */ { 0x0074, 0, 0, NULL }, /* 0x74 */ { 0x0075, 0, 0, NULL }, /* 0x75 */ { 0x0076, 0, 0, NULL }, /* 0x76 */ { 0x0077, 0, 0, NULL }, /* 0x77 */ { 0x0078, 0, 0, NULL }, /* 0x78 */ { 0x0079, 0, 0, NULL }, /* 0x79 */ { 0x007A, 0, 0, NULL }, /* 0x7A */ { 0x007B, 0, 0, NULL }, /* 0x7B */ { 0x007C, 0, 0, NULL }, /* 0x7C */ { 0x007D, 0, 0, NULL }, /* 0x7D */ { 0x007E, 0, 0, NULL }, /* 0x7E */ { 0x007F, 0, 0, NULL }, /* 0x7F */ { 0x20AC, 0, 0, NULL }, /* 0x80 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_81 }, /* 0x81 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_82 }, /* 0x82 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_83 }, /* 0x83 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_84 }, /* 0x84 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_85 }, /* 0x85 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_86 }, /* 0x86 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_87 }, /* 0x87 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_88 }, /* 0x88 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_89 }, /* 0x89 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_8A }, /* 0x8A */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_8B }, /* 0x8B */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_8C }, /* 0x8C */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_8D }, /* 0x8D */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_8E }, /* 0x8E */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_8F }, /* 0x8F */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_90 }, /* 0x90 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_91 }, /* 0x91 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_92 }, /* 0x92 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_93 }, /* 0x93 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_94 }, /* 0x94 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_95 }, /* 0x95 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_96 }, /* 0x96 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_97 }, /* 0x97 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_98 }, /* 0x98 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_99 }, /* 0x99 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_9A }, /* 0x9A */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_9B }, /* 0x9B */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_9C }, /* 0x9C */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_9D }, /* 0x9D */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_9E }, /* 0x9E */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_9F }, /* 0x9F */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_A0 }, /* 0xA0 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GB_A1 }, /* 0xA1 */ { 0, 0xA1, 0xFC, aImplDBCSToUniTab_GB_A2 }, /* 0xA2 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GB_A3 }, /* 0xA3 */ { 0, 0xA1, 0xF3, aImplDBCSToUniTab_GB_A4 }, /* 0xA4 */ { 0, 0xA1, 0xF6, aImplDBCSToUniTab_GB_A5 }, /* 0xA5 */ { 0, 0xA1, 0xF5, aImplDBCSToUniTab_GB_A6 }, /* 0xA6 */ { 0, 0xA1, 0xF1, aImplDBCSToUniTab_GB_A7 }, /* 0xA7 */ { 0, 0x40, 0xE9, aImplDBCSToUniTab_GBK_A8 }, /* 0xA8 */ { 0, 0x40, 0xEF, aImplDBCSToUniTab_GBK_A9 }, /* 0xA9 */ { 0, 0x40, 0xA0, aImplDBCSToUniTab_GBK_AA }, /* 0xAA */ { 0, 0x40, 0xA0, aImplDBCSToUniTab_GBK_AB }, /* 0xAB */ { 0, 0x40, 0xA0, aImplDBCSToUniTab_GBK_AC }, /* 0xAC */ { 0, 0x40, 0xA0, aImplDBCSToUniTab_GBK_AD }, /* 0xAD */ { 0, 0x40, 0xA0, aImplDBCSToUniTab_GBK_AE }, /* 0xAE */ { 0, 0x40, 0xA0, aImplDBCSToUniTab_GBK_AF }, /* 0xAF */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_B0 }, /* 0xB0 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_B1 }, /* 0xB1 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_B2 }, /* 0xB2 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_B3 }, /* 0xB3 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_B4 }, /* 0xB4 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_B5 }, /* 0xB5 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_B6 }, /* 0xB6 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_B7 }, /* 0xB7 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_B8 }, /* 0xB8 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_B9 }, /* 0xB9 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_BA }, /* 0xBA */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_BB }, /* 0xBB */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_BC }, /* 0xBC */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_BD }, /* 0xBD */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_BE }, /* 0xBE */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_BF }, /* 0xBF */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_C0 }, /* 0xC0 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_C1 }, /* 0xC1 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_C2 }, /* 0xC2 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_C3 }, /* 0xC3 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_C4 }, /* 0xC4 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_C5 }, /* 0xC5 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_C6 }, /* 0xC6 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_C7 }, /* 0xC7 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_C8 }, /* 0xC8 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_C9 }, /* 0xC9 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_CA }, /* 0xCA */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_CB }, /* 0xCB */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_CC }, /* 0xCC */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_CD }, /* 0xCD */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_CE }, /* 0xCE */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_CF }, /* 0xCF */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_D0 }, /* 0xD0 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_D1 }, /* 0xD1 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_D2 }, /* 0xD2 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_D3 }, /* 0xD3 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_D4 }, /* 0xD4 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_D5 }, /* 0xD5 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_D6 }, /* 0xD6 */ { 0, 0x40, 0xF9, aImplDBCSToUniTab_GBK_D7 }, /* 0xD7 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_D8 }, /* 0xD8 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_D9 }, /* 0xD9 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_DA }, /* 0xDA */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_DB }, /* 0xDB */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_DC }, /* 0xDC */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_DD }, /* 0xDD */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_DE }, /* 0xDE */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_DF }, /* 0xDF */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_E0 }, /* 0xE0 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_E1 }, /* 0xE1 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_E2 }, /* 0xE2 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_E3 }, /* 0xE3 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_E4 }, /* 0xE4 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_E5 }, /* 0xE5 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_E6 }, /* 0xE6 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_E7 }, /* 0xE7 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_E8 }, /* 0xE8 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_E9 }, /* 0xE9 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_EA }, /* 0xEA */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_EB }, /* 0xEB */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_EC }, /* 0xEC */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_ED }, /* 0xED */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_EE }, /* 0xEE */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_EF }, /* 0xEF */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_F0 }, /* 0xF0 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_F1 }, /* 0xF1 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_F2 }, /* 0xF2 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_F3 }, /* 0xF3 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_F4 }, /* 0xF4 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_F5 }, /* 0xF5 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_F6 }, /* 0xF6 */ { 0, 0x40, 0xFE, aImplDBCSToUniTab_GBK_F7 }, /* 0xF7 */ { 0, 0x40, 0xA0, aImplDBCSToUniTab_GBK_F8 }, /* 0xF8 */ { 0, 0x40, 0xA0, aImplDBCSToUniTab_GBK_F9 }, /* 0xF9 */ { 0, 0x40, 0xA0, aImplDBCSToUniTab_GBK_FA }, /* 0xFA */ { 0, 0x40, 0xA0, aImplDBCSToUniTab_GBK_FB }, /* 0xFB */ { 0, 0x40, 0xA0, aImplDBCSToUniTab_GBK_FC }, /* 0xFC */ { 0, 0x40, 0xA0, aImplDBCSToUniTab_GBK_FD }, /* 0xFD */ { 0, 0x40, 0x4F, aImplDBCSToUniTab_GBK_FE }, /* 0xFE */ { 0, 1, 0, NULL } /* 0xFF */ }; /* ----------------------------------------------------------------------- */ static ImplUniToDBCSHighTab const aMS936DBCSHighTab[256] = { { 0x00, 0xFC, aImplUniToDBCSTab_GB_00 }, /* 0x00 */ { 0x01, 0xDC, aImplUniToDBCSTab_GB_01 }, /* 0x01 */ { 0x51, 0xD9, aImplUniToDBCSTab_GBK_02 }, /* 0x02 */ { 0x91, 0xC9, aImplUniToDBCSTab_GB_03 }, /* 0x03 */ { 0x01, 0x51, aImplUniToDBCSTab_GB_04 }, /* 0x04 */ { 1, 0, NULL }, /* 0x05 */ { 1, 0, NULL }, /* 0x06 */ { 1, 0, NULL }, /* 0x07 */ { 1, 0, NULL }, /* 0x08 */ { 1, 0, NULL }, /* 0x09 */ { 1, 0, NULL }, /* 0x0A */ { 1, 0, NULL }, /* 0x0B */ { 1, 0, NULL }, /* 0x0C */ { 1, 0, NULL }, /* 0x0D */ { 1, 0, NULL }, /* 0x0E */ { 1, 0, NULL }, /* 0x0F */ { 1, 0, NULL }, /* 0x10 */ { 1, 0, NULL }, /* 0x11 */ { 1, 0, NULL }, /* 0x12 */ { 1, 0, NULL }, /* 0x13 */ { 1, 0, NULL }, /* 0x14 */ { 1, 0, NULL }, /* 0x15 */ { 1, 0, NULL }, /* 0x16 */ { 1, 0, NULL }, /* 0x17 */ { 1, 0, NULL }, /* 0x18 */ { 1, 0, NULL }, /* 0x19 */ { 1, 0, NULL }, /* 0x1A */ { 1, 0, NULL }, /* 0x1B */ { 1, 0, NULL }, /* 0x1C */ { 1, 0, NULL }, /* 0x1D */ { 0x3F, 0x3F, aImplUniToDBCSTab_APPLECHINSIMP_1E }, /* 0x1E */ /* we convert this char also to unicode */ { 1, 0, NULL }, /* 0x1F */ { 0x10, 0xAC, aImplUniToDBCSTab_GBK_20 }, /* 0x20 */ { 0x03, 0x99, aImplUniToDBCSTab_GBK_21 }, /* 0x21 */ { 0x08, 0xEF, aImplUniToDBCSTab_GBK_22 }, /* 0x22 */ { 0x12, 0x12, aImplUniToDBCSTab_GB_23 }, /* 0x23 */ { 0x60, 0x9B, aImplUniToDBCSTab_GB_24 }, /* 0x24 */ { 0x00, 0xE5, aImplUniToDBCSTab_GBK_25 }, /* 0x25 */ { 0x05, 0x42, aImplUniToDBCSTab_GBK_26 }, /* 0x26 */ { 1, 0, NULL }, /* 0x27 */ { 1, 0, NULL }, /* 0x28 */ { 1, 0, NULL }, /* 0x29 */ { 1, 0, NULL }, /* 0x2A */ { 1, 0, NULL }, /* 0x2B */ { 1, 0, NULL }, /* 0x2C */ { 1, 0, NULL }, /* 0x2D */ { 1, 0, NULL }, /* 0x2E */ { 1, 0, NULL }, /* 0x2F */ { 0x00, 0xFE, aImplUniToDBCSTab_GBK_30 }, /* 0x30 */ { 0x05, 0x29, aImplUniToDBCSTab_GB_31 }, /* 0x31 */ { 0x20, 0xA3, aImplUniToDBCSTab_GBK_32 }, /* 0x32 */ { 0x8E, 0xD5, aImplUniToDBCSTab_GBK_33 }, /* 0x33 */ { 1, 0, NULL }, /* 0x34 */ { 1, 0, NULL }, /* 0x35 */ { 1, 0, NULL }, /* 0x36 */ { 1, 0, NULL }, /* 0x37 */ { 1, 0, NULL }, /* 0x38 */ { 1, 0, NULL }, /* 0x39 */ { 1, 0, NULL }, /* 0x3A */ { 1, 0, NULL }, /* 0x3B */ { 1, 0, NULL }, /* 0x3C */ { 1, 0, NULL }, /* 0x3D */ { 1, 0, NULL }, /* 0x3E */ { 1, 0, NULL }, /* 0x3F */ { 1, 0, NULL }, /* 0x40 */ { 1, 0, NULL }, /* 0x41 */ { 1, 0, NULL }, /* 0x42 */ { 1, 0, NULL }, /* 0x43 */ { 1, 0, NULL }, /* 0x44 */ { 1, 0, NULL }, /* 0x45 */ { 1, 0, NULL }, /* 0x46 */ { 1, 0, NULL }, /* 0x47 */ { 1, 0, NULL }, /* 0x48 */ { 1, 0, NULL }, /* 0x49 */ { 1, 0, NULL }, /* 0x4A */ { 1, 0, NULL }, /* 0x4B */ { 1, 0, NULL }, /* 0x4C */ { 1, 0, NULL }, /* 0x4D */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_4E }, /* 0x4E */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_4F }, /* 0x4F */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_50 }, /* 0x50 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_51 }, /* 0x51 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_52 }, /* 0x52 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_53 }, /* 0x53 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_54 }, /* 0x54 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_55 }, /* 0x55 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_56 }, /* 0x56 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_57 }, /* 0x57 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_58 }, /* 0x58 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_59 }, /* 0x59 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_5A }, /* 0x5A */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_5B }, /* 0x5B */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_5C }, /* 0x5C */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_5D }, /* 0x5D */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_5E }, /* 0x5E */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_5F }, /* 0x5F */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_60 }, /* 0x60 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_61 }, /* 0x61 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_62 }, /* 0x62 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_63 }, /* 0x63 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_64 }, /* 0x64 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_65 }, /* 0x65 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_66 }, /* 0x66 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_67 }, /* 0x67 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_68 }, /* 0x68 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_69 }, /* 0x69 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_6A }, /* 0x6A */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_6B }, /* 0x6B */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_6C }, /* 0x6C */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_6D }, /* 0x6D */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_6E }, /* 0x6E */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_6F }, /* 0x6F */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_70 }, /* 0x70 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_71 }, /* 0x71 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_72 }, /* 0x72 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_73 }, /* 0x73 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_74 }, /* 0x74 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_75 }, /* 0x75 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_76 }, /* 0x76 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_77 }, /* 0x77 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_78 }, /* 0x78 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_79 }, /* 0x79 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_7A }, /* 0x7A */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_7B }, /* 0x7B */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_7C }, /* 0x7C */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_7D }, /* 0x7D */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_7E }, /* 0x7E */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_7F }, /* 0x7F */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_80 }, /* 0x80 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_81 }, /* 0x81 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_82 }, /* 0x82 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_83 }, /* 0x83 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_84 }, /* 0x84 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_85 }, /* 0x85 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_86 }, /* 0x86 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_87 }, /* 0x87 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_88 }, /* 0x88 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_89 }, /* 0x89 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_8A }, /* 0x8A */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_8B }, /* 0x8B */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_8C }, /* 0x8C */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_8D }, /* 0x8D */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_8E }, /* 0x8E */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_8F }, /* 0x8F */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_90 }, /* 0x90 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_91 }, /* 0x91 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_92 }, /* 0x92 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_93 }, /* 0x93 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_94 }, /* 0x94 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_95 }, /* 0x95 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_96 }, /* 0x96 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_97 }, /* 0x97 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_98 }, /* 0x98 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_99 }, /* 0x99 */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_9A }, /* 0x9A */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_9B }, /* 0x9B */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_9C }, /* 0x9C */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_9D }, /* 0x9D */ { 0x00, 0xFF, aImplUniToDBCSTab_GBK_9E }, /* 0x9E */ { 0x00, 0xA5, aImplUniToDBCSTab_GBK_9F }, /* 0x9F */ { 1, 0, NULL }, /* 0xA0 */ { 1, 0, NULL }, /* 0xA1 */ { 1, 0, NULL }, /* 0xA2 */ { 1, 0, NULL }, /* 0xA3 */ { 1, 0, NULL }, /* 0xA4 */ { 1, 0, NULL }, /* 0xA5 */ { 1, 0, NULL }, /* 0xA6 */ { 1, 0, NULL }, /* 0xA7 */ { 1, 0, NULL }, /* 0xA8 */ { 1, 0, NULL }, /* 0xA9 */ { 1, 0, NULL }, /* 0xAA */ { 1, 0, NULL }, /* 0xAB */ { 1, 0, NULL }, /* 0xAC */ { 1, 0, NULL }, /* 0xAD */ { 1, 0, NULL }, /* 0xAE */ { 1, 0, NULL }, /* 0xAF */ { 1, 0, NULL }, /* 0xB0 */ { 1, 0, NULL }, /* 0xB1 */ { 1, 0, NULL }, /* 0xB2 */ { 1, 0, NULL }, /* 0xB3 */ { 1, 0, NULL }, /* 0xB4 */ { 1, 0, NULL }, /* 0xB5 */ { 1, 0, NULL }, /* 0xB6 */ { 1, 0, NULL }, /* 0xB7 */ { 1, 0, NULL }, /* 0xB8 */ { 1, 0, NULL }, /* 0xB9 */ { 1, 0, NULL }, /* 0xBA */ { 1, 0, NULL }, /* 0xBB */ { 1, 0, NULL }, /* 0xBC */ { 1, 0, NULL }, /* 0xBD */ { 1, 0, NULL }, /* 0xBE */ { 1, 0, NULL }, /* 0xBF */ { 1, 0, NULL }, /* 0xC0 */ { 1, 0, NULL }, /* 0xC1 */ { 1, 0, NULL }, /* 0xC2 */ { 1, 0, NULL }, /* 0xC3 */ { 1, 0, NULL }, /* 0xC4 */ { 1, 0, NULL }, /* 0xC5 */ { 1, 0, NULL }, /* 0xC6 */ { 1, 0, NULL }, /* 0xC7 */ { 1, 0, NULL }, /* 0xC8 */ { 1, 0, NULL }, /* 0xC9 */ { 1, 0, NULL }, /* 0xCA */ { 1, 0, NULL }, /* 0xCB */ { 1, 0, NULL }, /* 0xCC */ { 1, 0, NULL }, /* 0xCD */ { 1, 0, NULL }, /* 0xCE */ { 1, 0, NULL }, /* 0xCF */ { 1, 0, NULL }, /* 0xD0 */ { 1, 0, NULL }, /* 0xD1 */ { 1, 0, NULL }, /* 0xD2 */ { 1, 0, NULL }, /* 0xD3 */ { 1, 0, NULL }, /* 0xD4 */ { 1, 0, NULL }, /* 0xD5 */ { 1, 0, NULL }, /* 0xD6 */ { 1, 0, NULL }, /* 0xD7 */ { 1, 0, NULL }, /* 0xD8 */ { 1, 0, NULL }, /* 0xD9 */ { 1, 0, NULL }, /* 0xDA */ { 1, 0, NULL }, /* 0xDB */ { 1, 0, NULL }, /* 0xDC */ { 1, 0, NULL }, /* 0xDD */ { 1, 0, NULL }, /* 0xDE */ { 1, 0, NULL }, /* 0xDF */ { 1, 0, NULL }, /* 0xE0 */ { 1, 0, NULL }, /* 0xE1 */ { 1, 0, NULL }, /* 0xE2 */ { 1, 0, NULL }, /* 0xE3 */ { 1, 0, NULL }, /* 0xE4 */ { 1, 0, NULL }, /* 0xE5 */ { 1, 0, NULL }, /* 0xE6 */ { 1, 0, NULL }, /* 0xE7 */ { 1, 0, NULL }, /* 0xE8 */ { 1, 0, NULL }, /* 0xE9 */ { 1, 0, NULL }, /* 0xEA */ { 1, 0, NULL }, /* 0xEB */ { 1, 0, NULL }, /* 0xEC */ { 1, 0, NULL }, /* 0xED */ { 1, 0, NULL }, /* 0xEE */ { 1, 0, NULL }, /* 0xEF */ { 1, 0, NULL }, /* 0xF0 */ { 1, 0, NULL }, /* 0xF1 */ { 1, 0, NULL }, /* 0xF2 */ { 1, 0, NULL }, /* 0xF3 */ { 1, 0, NULL }, /* 0xF4 */ { 1, 0, NULL }, /* 0xF5 */ { 1, 0, NULL }, /* 0xF6 */ { 1, 0, NULL }, /* 0xF7 */ { 1, 0, NULL }, /* 0xF8 */ { 0x2C, 0xF1, aImplUniToDBCSTab_GBK_F9 }, /* 0xF9 */ { 0x0C, 0x29, aImplUniToDBCSTab_GBK_FA }, /* 0xFA */ { 1, 0, NULL }, /* 0xFB */ { 1, 0, NULL }, /* 0xFC */ { 1, 0, NULL }, /* 0xFD */ { 0x30, 0x6B, aImplUniToDBCSTab_GBK_FE }, /* 0xFE */ { 0x01, 0xE5, aImplUniToDBCSTab_GBK_FF } /* 0xFF */ }; /* ----------------------------------------------------------------------- */ static ImplDBCSConvertData const aImplMS936DBCSCvtData = { aMS936UniLeadTab, aMS936DBCSHighTab, 0x00, 0xFF, 0x40, 0xFE, aImplMS936DBCSEUDCTab, DBCS_EUDC_MS936_COUNT }; /* ----------------------------------------------------------------------- */ static ImplTextEncodingData const aImplMS936TextEncodingData = { { &aImplMS936DBCSCvtData, ImplDBCSToUnicode, ImplUnicodeToDBCS, NULL, NULL, NULL, NULL, NULL, NULL }, 1, 2, 2, 134, "euc-cn", "gb2312", RTL_TEXTENCODING_INFO_MULTIBYTE }; /* WIN/DOS/OS2, SCRIPT_CHINESE_SIMPLIFIED, pc code page 936, mac encoding 25 */ /* ======================================================================= */ static ImplDBCSToUniLeadTab const aAPPLECHINSIMPUniLeadTab[256] = { { 0x0000, 0, 0, NULL }, /* 0x00 */ { 0x0001, 0, 0, NULL }, /* 0x01 */ { 0x0002, 0, 0, NULL }, /* 0x02 */ { 0x0003, 0, 0, NULL }, /* 0x03 */ { 0x0004, 0, 0, NULL }, /* 0x04 */ { 0x0005, 0, 0, NULL }, /* 0x05 */ { 0x0006, 0, 0, NULL }, /* 0x06 */ { 0x0007, 0, 0, NULL }, /* 0x07 */ { 0x0008, 0, 0, NULL }, /* 0x08 */ { 0x0009, 0, 0, NULL }, /* 0x09 */ { 0x000A, 0, 0, NULL }, /* 0x0A */ { 0x000B, 0, 0, NULL }, /* 0x0B */ { 0x000C, 0, 0, NULL }, /* 0x0C */ { 0x000D, 0, 0, NULL }, /* 0x0D */ { 0x000E, 0, 0, NULL }, /* 0x0E */ { 0x000F, 0, 0, NULL }, /* 0x0F */ { 0x0010, 0, 0, NULL }, /* 0x10 */ { 0x0011, 0, 0, NULL }, /* 0x11 */ { 0x0012, 0, 0, NULL }, /* 0x12 */ { 0x0013, 0, 0, NULL }, /* 0x13 */ { 0x0014, 0, 0, NULL }, /* 0x14 */ { 0x0015, 0, 0, NULL }, /* 0x15 */ { 0x0016, 0, 0, NULL }, /* 0x16 */ { 0x0017, 0, 0, NULL }, /* 0x17 */ { 0x0018, 0, 0, NULL }, /* 0x18 */ { 0x0019, 0, 0, NULL }, /* 0x19 */ { 0x001A, 0, 0, NULL }, /* 0x1A */ { 0x001B, 0, 0, NULL }, /* 0x1B */ { 0x001C, 0, 0, NULL }, /* 0x1C */ { 0x001D, 0, 0, NULL }, /* 0x1D */ { 0x001E, 0, 0, NULL }, /* 0x1E */ { 0x001F, 0, 0, NULL }, /* 0x1F */ { 0x0020, 0, 0, NULL }, /* 0x20 */ { 0x0021, 0, 0, NULL }, /* 0x21 */ { 0x0022, 0, 0, NULL }, /* 0x22 */ { 0x0023, 0, 0, NULL }, /* 0x23 */ { 0x0024, 0, 0, NULL }, /* 0x24 */ { 0x0025, 0, 0, NULL }, /* 0x25 */ { 0x0026, 0, 0, NULL }, /* 0x26 */ { 0x0027, 0, 0, NULL }, /* 0x27 */ { 0x0028, 0, 0, NULL }, /* 0x28 */ { 0x0029, 0, 0, NULL }, /* 0x29 */ { 0x002A, 0, 0, NULL }, /* 0x2A */ { 0x002B, 0, 0, NULL }, /* 0x2B */ { 0x002C, 0, 0, NULL }, /* 0x2C */ { 0x002D, 0, 0, NULL }, /* 0x2D */ { 0x002E, 0, 0, NULL }, /* 0x2E */ { 0x002F, 0, 0, NULL }, /* 0x2F */ { 0x0030, 0, 0, NULL }, /* 0x30 */ { 0x0031, 0, 0, NULL }, /* 0x31 */ { 0x0032, 0, 0, NULL }, /* 0x32 */ { 0x0033, 0, 0, NULL }, /* 0x33 */ { 0x0034, 0, 0, NULL }, /* 0x34 */ { 0x0035, 0, 0, NULL }, /* 0x35 */ { 0x0036, 0, 0, NULL }, /* 0x36 */ { 0x0037, 0, 0, NULL }, /* 0x37 */ { 0x0038, 0, 0, NULL }, /* 0x38 */ { 0x0039, 0, 0, NULL }, /* 0x39 */ { 0x003A, 0, 0, NULL }, /* 0x3A */ { 0x003B, 0, 0, NULL }, /* 0x3B */ { 0x003C, 0, 0, NULL }, /* 0x3C */ { 0x003D, 0, 0, NULL }, /* 0x3D */ { 0x003E, 0, 0, NULL }, /* 0x3E */ { 0x003F, 0, 0, NULL }, /* 0x3F */ { 0x0040, 0, 0, NULL }, /* 0x40 */ { 0x0041, 0, 0, NULL }, /* 0x41 */ { 0x0042, 0, 0, NULL }, /* 0x42 */ { 0x0043, 0, 0, NULL }, /* 0x43 */ { 0x0044, 0, 0, NULL }, /* 0x44 */ { 0x0045, 0, 0, NULL }, /* 0x45 */ { 0x0046, 0, 0, NULL }, /* 0x46 */ { 0x0047, 0, 0, NULL }, /* 0x47 */ { 0x0048, 0, 0, NULL }, /* 0x48 */ { 0x0049, 0, 0, NULL }, /* 0x49 */ { 0x004A, 0, 0, NULL }, /* 0x4A */ { 0x004B, 0, 0, NULL }, /* 0x4B */ { 0x004C, 0, 0, NULL }, /* 0x4C */ { 0x004D, 0, 0, NULL }, /* 0x4D */ { 0x004E, 0, 0, NULL }, /* 0x4E */ { 0x004F, 0, 0, NULL }, /* 0x4F */ { 0x0050, 0, 0, NULL }, /* 0x50 */ { 0x0051, 0, 0, NULL }, /* 0x51 */ { 0x0052, 0, 0, NULL }, /* 0x52 */ { 0x0053, 0, 0, NULL }, /* 0x53 */ { 0x0054, 0, 0, NULL }, /* 0x54 */ { 0x0055, 0, 0, NULL }, /* 0x55 */ { 0x0056, 0, 0, NULL }, /* 0x56 */ { 0x0057, 0, 0, NULL }, /* 0x57 */ { 0x0058, 0, 0, NULL }, /* 0x58 */ { 0x0059, 0, 0, NULL }, /* 0x59 */ { 0x005A, 0, 0, NULL }, /* 0x5A */ { 0x005B, 0, 0, NULL }, /* 0x5B */ { 0x005C, 0, 0, NULL }, /* 0x5C */ { 0x005D, 0, 0, NULL }, /* 0x5D */ { 0x005E, 0, 0, NULL }, /* 0x5E */ { 0x005F, 0, 0, NULL }, /* 0x5F */ { 0x0060, 0, 0, NULL }, /* 0x60 */ { 0x0061, 0, 0, NULL }, /* 0x61 */ { 0x0062, 0, 0, NULL }, /* 0x62 */ { 0x0063, 0, 0, NULL }, /* 0x63 */ { 0x0064, 0, 0, NULL }, /* 0x64 */ { 0x0065, 0, 0, NULL }, /* 0x65 */ { 0x0066, 0, 0, NULL }, /* 0x66 */ { 0x0067, 0, 0, NULL }, /* 0x67 */ { 0x0068, 0, 0, NULL }, /* 0x68 */ { 0x0069, 0, 0, NULL }, /* 0x69 */ { 0x006A, 0, 0, NULL }, /* 0x6A */ { 0x006B, 0, 0, NULL }, /* 0x6B */ { 0x006C, 0, 0, NULL }, /* 0x6C */ { 0x006D, 0, 0, NULL }, /* 0x6D */ { 0x006E, 0, 0, NULL }, /* 0x6E */ { 0x006F, 0, 0, NULL }, /* 0x6F */ { 0x0070, 0, 0, NULL }, /* 0x70 */ { 0x0071, 0, 0, NULL }, /* 0x71 */ { 0x0072, 0, 0, NULL }, /* 0x72 */ { 0x0073, 0, 0, NULL }, /* 0x73 */ { 0x0074, 0, 0, NULL }, /* 0x74 */ { 0x0075, 0, 0, NULL }, /* 0x75 */ { 0x0076, 0, 0, NULL }, /* 0x76 */ { 0x0077, 0, 0, NULL }, /* 0x77 */ { 0x0078, 0, 0, NULL }, /* 0x78 */ { 0x0079, 0, 0, NULL }, /* 0x79 */ { 0x007A, 0, 0, NULL }, /* 0x7A */ { 0x007B, 0, 0, NULL }, /* 0x7B */ { 0x007C, 0, 0, NULL }, /* 0x7C */ { 0x007D, 0, 0, NULL }, /* 0x7D */ { 0x007E, 0, 0, NULL }, /* 0x7E */ { 0x007F, 0, 0, NULL }, /* 0x7F */ { 0, 1, 0, NULL }, /* 0x80 */ { 0xF880, 0, 0, NULL }, /* 0x81 */ { 0xF881, 0, 0, NULL }, /* 0x82 */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x83 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x84 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x85 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x86 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x87 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x88 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x89 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x8A */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x8B */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x8C */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x8D */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x8E */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x8F */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x90 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x91 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x92 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x93 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x94 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x95 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x96 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x97 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x98 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x99 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x9A */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x9B */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x9C */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x9D */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x9E */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0x9F */ /* We convert this as double byte */ { 0x00A0, 0, 0, NULL }, /* 0xA0 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GB_A1 }, /* 0xA1 */ { 0, 0xA1, 0xFC, aImplDBCSToUniTab_GB_A2 }, /* 0xA2 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GB_A3 }, /* 0xA3 */ { 0, 0xA1, 0xF3, aImplDBCSToUniTab_GB_A4 }, /* 0xA4 */ { 0, 0xA1, 0xF6, aImplDBCSToUniTab_GB_A5 }, /* 0xA5 */ { 0, 0xA1, 0xF5, aImplDBCSToUniTab_GB_A6 }, /* 0xA6 */ { 0, 0xA1, 0xF1, aImplDBCSToUniTab_GB_A7 }, /* 0xA7 */ { 0, 0xA1, 0xE9, aImplDBCSToUniTab_GBK_A8+GBKOFF }, /* 0xA8 */ { 0, 0xA1, 0xEF, aImplDBCSToUniTab_GBK_A9+GBKOFF }, /* 0xA9 */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0xAA */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0xAB */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0xAC */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0xAD */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0xAE */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0xAF */ /* We convert this as double byte */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_B0+GBKOFF }, /* 0xB0 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_B1+GBKOFF }, /* 0xB1 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_B2+GBKOFF }, /* 0xB2 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_B3+GBKOFF }, /* 0xB3 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_B4+GBKOFF }, /* 0xB4 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_B5+GBKOFF }, /* 0xB5 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_B6+GBKOFF }, /* 0xB6 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_B7+GBKOFF }, /* 0xB7 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_B8+GBKOFF }, /* 0xB8 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_B9+GBKOFF }, /* 0xB9 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_BA+GBKOFF }, /* 0xBA */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_BB+GBKOFF }, /* 0xBB */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_BC+GBKOFF }, /* 0xBC */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_BD+GBKOFF }, /* 0xBD */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_BE+GBKOFF }, /* 0xBE */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_BF+GBKOFF }, /* 0xBF */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_C0+GBKOFF }, /* 0xC0 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_C1+GBKOFF }, /* 0xC1 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_C2+GBKOFF }, /* 0xC2 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_C3+GBKOFF }, /* 0xC3 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_C4+GBKOFF }, /* 0xC4 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_C5+GBKOFF }, /* 0xC5 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_C6+GBKOFF }, /* 0xC6 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_C7+GBKOFF }, /* 0xC7 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_C8+GBKOFF }, /* 0xC8 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_C9+GBKOFF }, /* 0xC9 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_CA+GBKOFF }, /* 0xCA */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_CB+GBKOFF }, /* 0xCB */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_CC+GBKOFF }, /* 0xCC */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_CD+GBKOFF }, /* 0xCD */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_CE+GBKOFF }, /* 0xCE */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_CF+GBKOFF }, /* 0xCF */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_D0+GBKOFF }, /* 0xD0 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_D1+GBKOFF }, /* 0xD1 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_D2+GBKOFF }, /* 0xD2 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_D3+GBKOFF }, /* 0xD3 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_D4+GBKOFF }, /* 0xD4 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_D5+GBKOFF }, /* 0xD5 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_D6+GBKOFF }, /* 0xD6 */ { 0, 0xA1, 0xF9, aImplDBCSToUniTab_GBK_D7+GBKOFF }, /* 0xD7 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_D8+GBKOFF }, /* 0xD8 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_D9+GBKOFF }, /* 0xD9 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_DA+GBKOFF }, /* 0xDA */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_DB+GBKOFF }, /* 0xDB */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_DC+GBKOFF }, /* 0xDC */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_DD+GBKOFF }, /* 0xDD */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_DE+GBKOFF }, /* 0xDE */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_DF+GBKOFF }, /* 0xDF */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_E0+GBKOFF }, /* 0xE0 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_E1+GBKOFF }, /* 0xE1 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_E2+GBKOFF }, /* 0xE2 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_E3+GBKOFF }, /* 0xE3 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_E4+GBKOFF }, /* 0xE4 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_E5+GBKOFF }, /* 0xE5 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_E6+GBKOFF }, /* 0xE6 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_E7+GBKOFF }, /* 0xE7 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_E8+GBKOFF }, /* 0xE8 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_E9+GBKOFF }, /* 0xE9 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_EA+GBKOFF }, /* 0xEA */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_EB+GBKOFF }, /* 0xEB */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_EC+GBKOFF }, /* 0xEC */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_ED+GBKOFF }, /* 0xED */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_EE+GBKOFF }, /* 0xEE */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_EF+GBKOFF }, /* 0xEF */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_F0+GBKOFF }, /* 0xF0 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_F1+GBKOFF }, /* 0xF1 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_F2+GBKOFF }, /* 0xF2 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_F3+GBKOFF }, /* 0xF3 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_F4+GBKOFF }, /* 0xF4 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_F5+GBKOFF }, /* 0xF5 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_F6+GBKOFF }, /* 0xF6 */ { 0, 0xA1, 0xFE, aImplDBCSToUniTab_GBK_F7+GBKOFF }, /* 0xF7 */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0xF8 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0xF9 */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0xFA */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0xFB */ /* We convert this as double byte */ { 0, 1, 0, aImplDoubleByteIdentifierTab }, /* 0xFC */ /* We convert this as double byte */ { 0x00A9, 0, 0, NULL }, /* 0xFD */ { 0x2122, 0, 0, NULL }, /* 0xFE */ { 0x2026, 0, 0, NULL } /* 0xFF */ }; /* ----------------------------------------------------------------------- */ static ImplUniToDBCSHighTab const aAPPLECHINSIMPDBCSHighTab[256] = { { 0x00, 0xFC, aImplUniToDBCSTab_APPLECHINSIMP_00 }, /* 0x00 */ { 0x01, 0xDC, aImplUniToDBCSTab_GB_01 }, /* 0x01 */ { 0x51, 0xC9, aImplUniToDBCSTab_GB_02 }, /* 0x02 */ { 0x91, 0xC9, aImplUniToDBCSTab_GB_03 }, /* 0x03 */ { 0x01, 0x51, aImplUniToDBCSTab_GB_04 }, /* 0x04 */ { 1, 0, NULL }, /* 0x05 */ { 1, 0, NULL }, /* 0x06 */ { 1, 0, NULL }, /* 0x07 */ { 1, 0, NULL }, /* 0x08 */ { 1, 0, NULL }, /* 0x09 */ { 1, 0, NULL }, /* 0x0A */ { 1, 0, NULL }, /* 0x0B */ { 1, 0, NULL }, /* 0x0C */ { 1, 0, NULL }, /* 0x0D */ { 1, 0, NULL }, /* 0x0E */ { 1, 0, NULL }, /* 0x0F */ { 1, 0, NULL }, /* 0x10 */ { 1, 0, NULL }, /* 0x11 */ { 1, 0, NULL }, /* 0x12 */ { 1, 0, NULL }, /* 0x13 */ { 1, 0, NULL }, /* 0x14 */ { 1, 0, NULL }, /* 0x15 */ { 1, 0, NULL }, /* 0x16 */ { 1, 0, NULL }, /* 0x17 */ { 1, 0, NULL }, /* 0x18 */ { 1, 0, NULL }, /* 0x19 */ { 1, 0, NULL }, /* 0x1A */ { 1, 0, NULL }, /* 0x1B */ { 1, 0, NULL }, /* 0x1C */ { 1, 0, NULL }, /* 0x1D */ { 0x3F, 0x3F, aImplUniToDBCSTab_APPLECHINSIMP_1E }, /* 0x1E */ { 1, 0, NULL }, /* 0x1F */ { 0x14, 0x3E, aImplUniToDBCSTab_GB_20 }, /* 0x20 */ { 0x03, 0x93, aImplUniToDBCSTab_APPLECHINSIMP_21 }, /* 0x21 */ { 0x08, 0xEF, aImplUniToDBCSTab_GB_22 }, /* 0x22 */ { 0x12, 0x12, aImplUniToDBCSTab_GB_23 }, /* 0x23 */ { 0x60, 0x9B, aImplUniToDBCSTab_GB_24 }, /* 0x24 */ { 0x00, 0xCF, aImplUniToDBCSTab_GB_25 }, /* 0x25 */ { 0x05, 0x42, aImplUniToDBCSTab_GB_26 }, /* 0x26 */ { 1, 0, NULL }, /* 0x27 */ { 1, 0, NULL }, /* 0x28 */ { 1, 0, NULL }, /* 0x29 */ { 1, 0, NULL }, /* 0x2A */ { 1, 0, NULL }, /* 0x2B */ { 1, 0, NULL }, /* 0x2C */ { 1, 0, NULL }, /* 0x2D */ { 1, 0, NULL }, /* 0x2E */ { 1, 0, NULL }, /* 0x2F */ { 0x00, 0xFB, aImplUniToDBCSTab_GB_30 }, /* 0x30 */ { 0x05, 0x29, aImplUniToDBCSTab_GB_31 }, /* 0x31 */ { 0x20, 0x29, aImplUniToDBCSTab_GBK_32 }, /* 0x32 */ { 1, 0, NULL }, /* 0x33 */ { 1, 0, NULL }, /* 0x34 */ { 1, 0, NULL }, /* 0x35 */ { 1, 0, NULL }, /* 0x36 */ { 1, 0, NULL }, /* 0x37 */ { 1, 0, NULL }, /* 0x38 */ { 1, 0, NULL }, /* 0x39 */ { 1, 0, NULL }, /* 0x3A */ { 1, 0, NULL }, /* 0x3B */ { 1, 0, NULL }, /* 0x3C */ { 1, 0, NULL }, /* 0x3D */ { 1, 0, NULL }, /* 0x3E */ { 1, 0, NULL }, /* 0x3F */ { 1, 0, NULL }, /* 0x40 */ { 1, 0, NULL }, /* 0x41 */ { 1, 0, NULL }, /* 0x42 */ { 1, 0, NULL }, /* 0x43 */ { 1, 0, NULL }, /* 0x44 */ { 1, 0, NULL }, /* 0x45 */ { 1, 0, NULL }, /* 0x46 */ { 1, 0, NULL }, /* 0x47 */ { 1, 0, NULL }, /* 0x48 */ { 1, 0, NULL }, /* 0x49 */ { 1, 0, NULL }, /* 0x4A */ { 1, 0, NULL }, /* 0x4B */ { 1, 0, NULL }, /* 0x4C */ { 1, 0, NULL }, /* 0x4D */ { 0x00, 0xFF, aImplUniToDBCSTab_GB_4E }, /* 0x4E */ { 0x01, 0xFE, aImplUniToDBCSTab_GB_4F }, /* 0x4F */ { 0x0C, 0xFB, aImplUniToDBCSTab_GB_50 }, /* 0x50 */ { 0x06, 0xFF, aImplUniToDBCSTab_GB_51 }, /* 0x51 */ { 0x00, 0xFF, aImplUniToDBCSTab_GB_52 }, /* 0x52 */ { 0x00, 0xFD, aImplUniToDBCSTab_GB_53 }, /* 0x53 */ { 0x01, 0xFF, aImplUniToDBCSTab_GB_54 }, /* 0x54 */ { 0x01, 0xFE, aImplUniToDBCSTab_GB_55 }, /* 0x55 */ { 0x00, 0xFF, aImplUniToDBCSTab_GB_56 }, /* 0x56 */ { 0x03, 0xFD, aImplUniToDBCSTab_GB_57 }, /* 0x57 */ { 0x00, 0xF9, aImplUniToDBCSTab_GB_58 }, /* 0x58 */ { 0x02, 0xFF, aImplUniToDBCSTab_GB_59 }, /* 0x59 */ { 0x01, 0xF1, aImplUniToDBCSTab_GB_5A }, /* 0x5A */ { 0x09, 0xFF, aImplUniToDBCSTab_GB_5B }, /* 0x5B */ { 0x01, 0xFB, aImplUniToDBCSTab_GB_5C }, /* 0x5C */ { 0x02, 0xFE, aImplUniToDBCSTab_GB_5D }, /* 0x5D */ { 0x01, 0xFF, aImplUniToDBCSTab_GB_5E }, /* 0x5E */ { 0x00, 0xFF, aImplUniToDBCSTab_GB_5F }, /* 0x5F */ { 0x00, 0xFA, aImplUniToDBCSTab_GB_60 }, /* 0x60 */ { 0x00, 0xFF, aImplUniToDBCSTab_GB_61 }, /* 0x61 */ { 0x06, 0xFF, aImplUniToDBCSTab_GB_62 }, /* 0x62 */ { 0x01, 0xFF, aImplUniToDBCSTab_GB_63 }, /* 0x63 */ { 0x00, 0xE6, aImplUniToDBCSTab_GB_64 }, /* 0x64 */ { 0x00, 0xFA, aImplUniToDBCSTab_GB_65 }, /* 0x65 */ { 0x00, 0xFF, aImplUniToDBCSTab_GB_66 }, /* 0x66 */ { 0x00, 0xFF, aImplUniToDBCSTab_GB_67 }, /* 0x67 */ { 0x00, 0xFC, aImplUniToDBCSTab_GB_68 }, /* 0x68 */ { 0x01, 0xFF, aImplUniToDBCSTab_GB_69 }, /* 0x69 */ { 0x0A, 0xAC, aImplUniToDBCSTab_GB_6A }, /* 0x6A */ { 0x20, 0xFD, aImplUniToDBCSTab_GB_6B }, /* 0x6B */ { 0x05, 0xFE, aImplUniToDBCSTab_GB_6C }, /* 0x6C */ { 0x01, 0xFC, aImplUniToDBCSTab_GB_6D }, /* 0x6D */ { 0x05, 0xF9, aImplUniToDBCSTab_GB_6E }, /* 0x6E */ { 0x02, 0xEF, aImplUniToDBCSTab_GB_6F }, /* 0x6F */ { 0x11, 0xFD, aImplUniToDBCSTab_GB_70 }, /* 0x70 */ { 0x09, 0xF9, aImplUniToDBCSTab_GB_71 }, /* 0x71 */ { 0x06, 0xFC, aImplUniToDBCSTab_GB_72 }, /* 0x72 */ { 0x01, 0xF2, aImplUniToDBCSTab_GB_73 }, /* 0x73 */ { 0x03, 0xFF, aImplUniToDBCSTab_GB_74 }, /* 0x74 */ { 0x04, 0xFF, aImplUniToDBCSTab_GB_75 }, /* 0x75 */ { 0x00, 0xFE, aImplUniToDBCSTab_GB_76 }, /* 0x76 */ { 0x01, 0xFF, aImplUniToDBCSTab_GB_77 }, /* 0x77 */ { 0x00, 0xFA, aImplUniToDBCSTab_GB_78 }, /* 0x78 */ { 0x01, 0xFD, aImplUniToDBCSTab_GB_79 }, /* 0x79 */ { 0x00, 0xFF, aImplUniToDBCSTab_GB_7A }, /* 0x7A */ { 0x03, 0xFE, aImplUniToDBCSTab_GB_7B }, /* 0x7B */ { 0x07, 0xFB, aImplUniToDBCSTab_GB_7C }, /* 0x7C */ { 0x0A, 0xAE, aImplUniToDBCSTab_GB_7D }, /* 0x7D */ { 0x3B, 0xFF, aImplUniToDBCSTab_GB_7E }, /* 0x7E */ { 0x00, 0xFC, aImplUniToDBCSTab_GB_7F }, /* 0x7F */ { 0x00, 0xFD, aImplUniToDBCSTab_GB_80 }, /* 0x80 */ { 0x02, 0xFE, aImplUniToDBCSTab_GB_81 }, /* 0x81 */ { 0x00, 0xFB, aImplUniToDBCSTab_GB_82 }, /* 0x82 */ { 0x01, 0xFD, aImplUniToDBCSTab_GB_83 }, /* 0x83 */ { 0x01, 0xFF, aImplUniToDBCSTab_GB_84 }, /* 0x84 */ { 0x0C, 0xFF, aImplUniToDBCSTab_GB_85 }, /* 0x85 */ { 0x05, 0xFE, aImplUniToDBCSTab_GB_86 }, /* 0x86 */ { 0x00, 0xFE, aImplUniToDBCSTab_GB_87 }, /* 0x87 */ { 0x03, 0xFE, aImplUniToDBCSTab_GB_88 }, /* 0x88 */ { 0x02, 0xF3, aImplUniToDBCSTab_GB_89 }, /* 0x89 */ { 0x00, 0x93, aImplUniToDBCSTab_GB_8A }, /* 0x8A */ { 0x07, 0xFF, aImplUniToDBCSTab_GB_8B }, /* 0x8B */ { 0x00, 0x98, aImplUniToDBCSTab_GB_8C }, /* 0x8C */ { 0x1D, 0xFD, aImplUniToDBCSTab_GB_8D }, /* 0x8D */ { 0x05, 0xCE, aImplUniToDBCSTab_GB_8E }, /* 0x8E */ { 0x66, 0xFD, aImplUniToDBCSTab_GB_8F }, /* 0x8F */ { 0x00, 0xFE, aImplUniToDBCSTab_GB_90 }, /* 0x90 */ { 0x02, 0xDC, aImplUniToDBCSTab_GB_91 }, /* 0x91 */ { 0x74, 0xC8, aImplUniToDBCSTab_GB_92 }, /* 0x92 */ { 0x3E, 0xD6, aImplUniToDBCSTab_GB_93 }, /* 0x93 */ { 0x3E, 0xFF, aImplUniToDBCSTab_GB_94 }, /* 0x94 */ { 0x00, 0xFE, aImplUniToDBCSTab_GB_95 }, /* 0x95 */ { 0x00, 0xFE, aImplUniToDBCSTab_GB_96 }, /* 0x96 */ { 0x00, 0xF6, aImplUniToDBCSTab_GB_97 }, /* 0x97 */ { 0x75, 0xE9, aImplUniToDBCSTab_GB_98 }, /* 0x98 */ { 0x0D, 0xA8, aImplUniToDBCSTab_GB_99 }, /* 0x99 */ { 0x6C, 0xFB, aImplUniToDBCSTab_GB_9A }, /* 0x9A */ { 0x03, 0x54, aImplUniToDBCSTab_GB_9B }, /* 0x9B */ { 0x7C, 0xE2, aImplUniToDBCSTab_GB_9C }, /* 0x9C */ { 1, 0, NULL }, /* 0x9D */ { 0x1F, 0xFE, aImplUniToDBCSTab_GB_9E }, /* 0x9E */ { 0x0B, 0xA0, aImplUniToDBCSTab_GB_9F }, /* 0x9F */ { 1, 0, NULL }, /* 0xA0 */ { 1, 0, NULL }, /* 0xA1 */ { 1, 0, NULL }, /* 0xA2 */ { 1, 0, NULL }, /* 0xA3 */ { 1, 0, NULL }, /* 0xA4 */ { 1, 0, NULL }, /* 0xA5 */ { 1, 0, NULL }, /* 0xA6 */ { 1, 0, NULL }, /* 0xA7 */ { 1, 0, NULL }, /* 0xA8 */ { 1, 0, NULL }, /* 0xA9 */ { 1, 0, NULL }, /* 0xAA */ { 1, 0, NULL }, /* 0xAB */ { 1, 0, NULL }, /* 0xAC */ { 1, 0, NULL }, /* 0xAD */ { 1, 0, NULL }, /* 0xAE */ { 1, 0, NULL }, /* 0xAF */ { 1, 0, NULL }, /* 0xB0 */ { 1, 0, NULL }, /* 0xB1 */ { 1, 0, NULL }, /* 0xB2 */ { 1, 0, NULL }, /* 0xB3 */ { 1, 0, NULL }, /* 0xB4 */ { 1, 0, NULL }, /* 0xB5 */ { 1, 0, NULL }, /* 0xB6 */ { 1, 0, NULL }, /* 0xB7 */ { 1, 0, NULL }, /* 0xB8 */ { 1, 0, NULL }, /* 0xB9 */ { 1, 0, NULL }, /* 0xBA */ { 1, 0, NULL }, /* 0xBB */ { 1, 0, NULL }, /* 0xBC */ { 1, 0, NULL }, /* 0xBD */ { 1, 0, NULL }, /* 0xBE */ { 1, 0, NULL }, /* 0xBF */ { 1, 0, NULL }, /* 0xC0 */ { 1, 0, NULL }, /* 0xC1 */ { 1, 0, NULL }, /* 0xC2 */ { 1, 0, NULL }, /* 0xC3 */ { 1, 0, NULL }, /* 0xC4 */ { 1, 0, NULL }, /* 0xC5 */ { 1, 0, NULL }, /* 0xC6 */ { 1, 0, NULL }, /* 0xC7 */ { 1, 0, NULL }, /* 0xC8 */ { 1, 0, NULL }, /* 0xC9 */ { 1, 0, NULL }, /* 0xCA */ { 1, 0, NULL }, /* 0xCB */ { 1, 0, NULL }, /* 0xCC */ { 1, 0, NULL }, /* 0xCD */ { 1, 0, NULL }, /* 0xCE */ { 1, 0, NULL }, /* 0xCF */ { 1, 0, NULL }, /* 0xD0 */ { 1, 0, NULL }, /* 0xD1 */ { 1, 0, NULL }, /* 0xD2 */ { 1, 0, NULL }, /* 0xD3 */ { 1, 0, NULL }, /* 0xD4 */ { 1, 0, NULL }, /* 0xD5 */ { 1, 0, NULL }, /* 0xD6 */ { 1, 0, NULL }, /* 0xD7 */ { 1, 0, NULL }, /* 0xD8 */ { 1, 0, NULL }, /* 0xD9 */ { 1, 0, NULL }, /* 0xDA */ { 1, 0, NULL }, /* 0xDB */ { 1, 0, NULL }, /* 0xDC */ { 1, 0, NULL }, /* 0xDD */ { 1, 0, NULL }, /* 0xDE */ { 1, 0, NULL }, /* 0xDF */ { 1, 0, NULL }, /* 0xE0 */ { 1, 0, NULL }, /* 0xE1 */ { 1, 0, NULL }, /* 0xE2 */ { 1, 0, NULL }, /* 0xE3 */ { 1, 0, NULL }, /* 0xE4 */ { 1, 0, NULL }, /* 0xE5 */ { 1, 0, NULL }, /* 0xE6 */ { 1, 0, NULL }, /* 0xE7 */ { 1, 0, NULL }, /* 0xE8 */ { 1, 0, NULL }, /* 0xE9 */ { 1, 0, NULL }, /* 0xEA */ { 1, 0, NULL }, /* 0xEB */ { 1, 0, NULL }, /* 0xEC */ { 1, 0, NULL }, /* 0xED */ { 1, 0, NULL }, /* 0xEE */ { 1, 0, NULL }, /* 0xEF */ { 1, 0, NULL }, /* 0xF0 */ { 1, 0, NULL }, /* 0xF1 */ { 1, 0, NULL }, /* 0xF2 */ { 1, 0, NULL }, /* 0xF3 */ { 1, 0, NULL }, /* 0xF4 */ { 1, 0, NULL }, /* 0xF5 */ { 1, 0, NULL }, /* 0xF6 */ { 1, 0, NULL }, /* 0xF7 */ { 0x80, 0x81, aImplUniToDBCSTab_APPLECHINSIMP_F8 }, /* 0xF8 */ { 1, 0, NULL }, /* 0xF9 */ { 1, 0, NULL }, /* 0xFA */ { 1, 0, NULL }, /* 0xFB */ { 1, 0, NULL }, /* 0xFC */ { 1, 0, NULL }, /* 0xFD */ { 0x31, 0x44, aImplUniToDBCSTab_GB_FE }, /* 0xFE */ { 0x01, 0xE5, aImplUniToDBCSTab_GB_FF } /* 0xFF */ }; /* ----------------------------------------------------------------------- */ static ImplDBCSConvertData const aImplAPPLECHINSIMPDBCSCvtData = { aAPPLECHINSIMPUniLeadTab, aAPPLECHINSIMPDBCSHighTab, 0x00, 0xFF, 0xA1, 0xFE, NULL, 0 }; /* ----------------------------------------------------------------------- */ static ImplTextEncodingData const aImplAPPLECHINSIMPTextEncodingData = { { &aImplAPPLECHINSIMPDBCSCvtData, ImplDBCSToUnicode, ImplUnicodeToDBCS, NULL, NULL, NULL, NULL, NULL, NULL }, 1, 2, 2, 134, "euc-cn", "gb2312", RTL_TEXTENCODING_INFO_ASCII | RTL_TEXTENCODING_INFO_MULTIBYTE }; /* MAC, SCRIPT_CHINESE_SIMPLIFIED, pc code page 936, mac encoding 25 */