зеркало из https://github.com/mozilla/gecko-dev.git
Added support for a range 0xFAxx - 0xFCxx of CP932, check in for shom@vinelinux.org, bug 82678, r=ftang, sr=blizzard, a=asa.
This commit is contained in:
Родитель
8e0cad2115
Коммит
f86be747a1
|
@ -0,0 +1,728 @@
|
|||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is Mozilla Communicator client code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is shom@vinelinux.org.
|
||||
* Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
/* FA40 */ 0xEEEF,
|
||||
/* FA41 */ 0xEEF0,
|
||||
/* FA42 */ 0xEEF1,
|
||||
/* FA43 */ 0xEEF2,
|
||||
/* FA44 */ 0xEEF3,
|
||||
/* FA45 */ 0xEEF4,
|
||||
/* FA46 */ 0xEEF5,
|
||||
/* FA47 */ 0xEEF6,
|
||||
/* FA48 */ 0xEEF7,
|
||||
/* FA49 */ 0xEEF8,
|
||||
/* FA4A */ 0x8754,
|
||||
/* FA4B */ 0x8755,
|
||||
/* FA4C */ 0x8756,
|
||||
/* FA4D */ 0x8757,
|
||||
/* FA4E */ 0x8758,
|
||||
/* FA4F */ 0x8759,
|
||||
/* FA50 */ 0x875A,
|
||||
/* FA51 */ 0x875B,
|
||||
/* FA52 */ 0x875C,
|
||||
/* FA53 */ 0x875D,
|
||||
/* FA54 */ 0x81CA,
|
||||
/* FA55 */ 0xEEFA,
|
||||
/* FA56 */ 0xEEFB,
|
||||
/* FA57 */ 0xEEFC,
|
||||
/* FA58 */ 0x878A,
|
||||
/* FA59 */ 0x8782,
|
||||
/* FA5A */ 0x8784,
|
||||
/* FA5B */ 0x81E6,
|
||||
/* FA5C */ 0xED40,
|
||||
/* FA5D */ 0xED41,
|
||||
/* FA5E */ 0xED42,
|
||||
/* FA5F */ 0xED43,
|
||||
/* FA60 */ 0xED44,
|
||||
/* FA61 */ 0xED45,
|
||||
/* FA62 */ 0xED46,
|
||||
/* FA63 */ 0xED47,
|
||||
/* FA64 */ 0xED48,
|
||||
/* FA65 */ 0xED49,
|
||||
/* FA66 */ 0xED4A,
|
||||
/* FA67 */ 0xED4B,
|
||||
/* FA68 */ 0xED4C,
|
||||
/* FA69 */ 0xED4D,
|
||||
/* FA6A */ 0xED4E,
|
||||
/* FA6B */ 0xED4F,
|
||||
/* FA6C */ 0xED50,
|
||||
/* FA6D */ 0xED51,
|
||||
/* FA6E */ 0xED52,
|
||||
/* FA6F */ 0xED53,
|
||||
/* FA70 */ 0xED54,
|
||||
/* FA71 */ 0xED55,
|
||||
/* FA72 */ 0xED56,
|
||||
/* FA73 */ 0xED57,
|
||||
/* FA74 */ 0xED58,
|
||||
/* FA75 */ 0xED59,
|
||||
/* FA76 */ 0xED5A,
|
||||
/* FA77 */ 0xED5B,
|
||||
/* FA78 */ 0xED5C,
|
||||
/* FA79 */ 0xED5D,
|
||||
/* FA7A */ 0xED5E,
|
||||
/* FA7B */ 0xED5F,
|
||||
/* FA7C */ 0xED60,
|
||||
/* FA7D */ 0xED61,
|
||||
/* FA7E */ 0xED62,
|
||||
/* FA7F:UNDEF */ 0,
|
||||
/* FA80 */ 0xED63,
|
||||
/* FA81 */ 0xED64,
|
||||
/* FA82 */ 0xED65,
|
||||
/* FA83 */ 0xED66,
|
||||
/* FA84 */ 0xED67,
|
||||
/* FA85 */ 0xED68,
|
||||
/* FA86 */ 0xED69,
|
||||
/* FA87 */ 0xED6A,
|
||||
/* FA88 */ 0xED6B,
|
||||
/* FA89 */ 0xED6C,
|
||||
/* FA8A */ 0xED6D,
|
||||
/* FA8B */ 0xED6E,
|
||||
/* FA8C */ 0xED6F,
|
||||
/* FA8D */ 0xED70,
|
||||
/* FA8E */ 0xED71,
|
||||
/* FA8F */ 0xED72,
|
||||
/* FA90 */ 0xED73,
|
||||
/* FA91 */ 0xED74,
|
||||
/* FA92 */ 0xED75,
|
||||
/* FA93 */ 0xED76,
|
||||
/* FA94 */ 0xED77,
|
||||
/* FA95 */ 0xED78,
|
||||
/* FA96 */ 0xED79,
|
||||
/* FA97 */ 0xED7A,
|
||||
/* FA98 */ 0xED7B,
|
||||
/* FA99 */ 0xED7C,
|
||||
/* FA9A */ 0xED7D,
|
||||
/* FA9B */ 0xED7E,
|
||||
/* FA9C */ 0xED80,
|
||||
/* FA9D */ 0xED81,
|
||||
/* FA9E */ 0xED82,
|
||||
/* FA9F */ 0xED83,
|
||||
/* FAA0 */ 0xED84,
|
||||
/* FAA1 */ 0xED85,
|
||||
/* FAA2 */ 0xED86,
|
||||
/* FAA3 */ 0xED87,
|
||||
/* FAA4 */ 0xED88,
|
||||
/* FAA5 */ 0xED89,
|
||||
/* FAA6 */ 0xED8A,
|
||||
/* FAA7 */ 0xED8B,
|
||||
/* FAA8 */ 0xED8C,
|
||||
/* FAA9 */ 0xED8D,
|
||||
/* FAAA */ 0xED8E,
|
||||
/* FAAB */ 0xED8F,
|
||||
/* FAAC */ 0xED90,
|
||||
/* FAAD */ 0xED91,
|
||||
/* FAAE */ 0xED92,
|
||||
/* FAAF */ 0xED93,
|
||||
/* FAB0 */ 0xED94,
|
||||
/* FAB1 */ 0xED95,
|
||||
/* FAB2 */ 0xED96,
|
||||
/* FAB3 */ 0xED97,
|
||||
/* FAB4 */ 0xED98,
|
||||
/* FAB5 */ 0xED99,
|
||||
/* FAB6 */ 0xED9A,
|
||||
/* FAB7 */ 0xED9B,
|
||||
/* FAB8 */ 0xED9C,
|
||||
/* FAB9 */ 0xED9D,
|
||||
/* FABA */ 0xED9E,
|
||||
/* FABB */ 0xED9F,
|
||||
/* FABC */ 0xEDA0,
|
||||
/* FABD */ 0xEDA1,
|
||||
/* FABE */ 0xEDA2,
|
||||
/* FABF */ 0xEDA3,
|
||||
/* FAC0 */ 0xEDA4,
|
||||
/* FAC1 */ 0xEDA5,
|
||||
/* FAC2 */ 0xEDA6,
|
||||
/* FAC3 */ 0xEDA7,
|
||||
/* FAC4 */ 0xEDA8,
|
||||
/* FAC5 */ 0xEDA9,
|
||||
/* FAC6 */ 0xEDAA,
|
||||
/* FAC7 */ 0xEDAB,
|
||||
/* FAC8 */ 0xEDAC,
|
||||
/* FAC9 */ 0xEDAD,
|
||||
/* FACA */ 0xEDAE,
|
||||
/* FACB */ 0xEDAF,
|
||||
/* FACC */ 0xEDB0,
|
||||
/* FACD */ 0xEDB1,
|
||||
/* FACE */ 0xEDB2,
|
||||
/* FACF */ 0xEDB3,
|
||||
/* FAD0 */ 0xEDB4,
|
||||
/* FAD1 */ 0xEDB5,
|
||||
/* FAD2 */ 0xEDB6,
|
||||
/* FAD3 */ 0xEDB7,
|
||||
/* FAD4 */ 0xEDB8,
|
||||
/* FAD5 */ 0xEDB9,
|
||||
/* FAD6 */ 0xEDBA,
|
||||
/* FAD7 */ 0xEDBB,
|
||||
/* FAD8 */ 0xEDBC,
|
||||
/* FAD9 */ 0xEDBD,
|
||||
/* FADA */ 0xEDBE,
|
||||
/* FADB */ 0xEDBF,
|
||||
/* FADC */ 0xEDC0,
|
||||
/* FADD */ 0xEDC1,
|
||||
/* FADE */ 0xEDC2,
|
||||
/* FADF */ 0xEDC3,
|
||||
/* FAE0 */ 0xEDC4,
|
||||
/* FAE1 */ 0xEDC5,
|
||||
/* FAE2 */ 0xEDC6,
|
||||
/* FAE3 */ 0xEDC7,
|
||||
/* FAE4 */ 0xEDC8,
|
||||
/* FAE5 */ 0xEDC9,
|
||||
/* FAE6 */ 0xEDCA,
|
||||
/* FAE7 */ 0xEDCB,
|
||||
/* FAE8 */ 0xEDCC,
|
||||
/* FAE9 */ 0xEDCD,
|
||||
/* FAEA */ 0xEDCE,
|
||||
/* FAEB */ 0xEDCF,
|
||||
/* FAEC */ 0xEDD0,
|
||||
/* FAED */ 0xEDD1,
|
||||
/* FAEE */ 0xEDD2,
|
||||
/* FAEF */ 0xEDD3,
|
||||
/* FAF0 */ 0xEDD4,
|
||||
/* FAF1 */ 0xEDD5,
|
||||
/* FAF2 */ 0xEDD6,
|
||||
/* FAF3 */ 0xEDD7,
|
||||
/* FAF4 */ 0xEDD8,
|
||||
/* FAF5 */ 0xEDD9,
|
||||
/* FAF6 */ 0xEDDA,
|
||||
/* FAF7 */ 0xEDDB,
|
||||
/* FAF8 */ 0xEDDC,
|
||||
/* FAF9 */ 0xEDDD,
|
||||
/* FAFA */ 0xEDDE,
|
||||
/* FAFB */ 0xEDDF,
|
||||
/* FAFC */ 0xEDE0,
|
||||
/* FAFD:UNDEF */ 0,
|
||||
/* FAFE:UNDEF */ 0,
|
||||
/* FAFF:UNDEF */ 0,
|
||||
/* FB00:UNDEF */ 0,
|
||||
/* FB01:UNDEF */ 0,
|
||||
/* FB02:UNDEF */ 0,
|
||||
/* FB03:UNDEF */ 0,
|
||||
/* FB04:UNDEF */ 0,
|
||||
/* FB05:UNDEF */ 0,
|
||||
/* FB06:UNDEF */ 0,
|
||||
/* FB07:UNDEF */ 0,
|
||||
/* FB08:UNDEF */ 0,
|
||||
/* FB09:UNDEF */ 0,
|
||||
/* FB0A:UNDEF */ 0,
|
||||
/* FB0B:UNDEF */ 0,
|
||||
/* FB0C:UNDEF */ 0,
|
||||
/* FB0D:UNDEF */ 0,
|
||||
/* FB0E:UNDEF */ 0,
|
||||
/* FB0F:UNDEF */ 0,
|
||||
/* FB10:UNDEF */ 0,
|
||||
/* FB11:UNDEF */ 0,
|
||||
/* FB12:UNDEF */ 0,
|
||||
/* FB13:UNDEF */ 0,
|
||||
/* FB14:UNDEF */ 0,
|
||||
/* FB15:UNDEF */ 0,
|
||||
/* FB16:UNDEF */ 0,
|
||||
/* FB17:UNDEF */ 0,
|
||||
/* FB18:UNDEF */ 0,
|
||||
/* FB19:UNDEF */ 0,
|
||||
/* FB1A:UNDEF */ 0,
|
||||
/* FB1B:UNDEF */ 0,
|
||||
/* FB1C:UNDEF */ 0,
|
||||
/* FB1D:UNDEF */ 0,
|
||||
/* FB1E:UNDEF */ 0,
|
||||
/* FB1F:UNDEF */ 0,
|
||||
/* FB20:UNDEF */ 0,
|
||||
/* FB21:UNDEF */ 0,
|
||||
/* FB22:UNDEF */ 0,
|
||||
/* FB23:UNDEF */ 0,
|
||||
/* FB24:UNDEF */ 0,
|
||||
/* FB25:UNDEF */ 0,
|
||||
/* FB26:UNDEF */ 0,
|
||||
/* FB27:UNDEF */ 0,
|
||||
/* FB28:UNDEF */ 0,
|
||||
/* FB29:UNDEF */ 0,
|
||||
/* FB2A:UNDEF */ 0,
|
||||
/* FB2B:UNDEF */ 0,
|
||||
/* FB2C:UNDEF */ 0,
|
||||
/* FB2D:UNDEF */ 0,
|
||||
/* FB2E:UNDEF */ 0,
|
||||
/* FB2F:UNDEF */ 0,
|
||||
/* FB30:UNDEF */ 0,
|
||||
/* FB31:UNDEF */ 0,
|
||||
/* FB32:UNDEF */ 0,
|
||||
/* FB33:UNDEF */ 0,
|
||||
/* FB34:UNDEF */ 0,
|
||||
/* FB35:UNDEF */ 0,
|
||||
/* FB36:UNDEF */ 0,
|
||||
/* FB37:UNDEF */ 0,
|
||||
/* FB38:UNDEF */ 0,
|
||||
/* FB39:UNDEF */ 0,
|
||||
/* FB3A:UNDEF */ 0,
|
||||
/* FB3B:UNDEF */ 0,
|
||||
/* FB3C:UNDEF */ 0,
|
||||
/* FB3D:UNDEF */ 0,
|
||||
/* FB3E:UNDEF */ 0,
|
||||
/* FB3F:UNDEF */ 0,
|
||||
/* FB40 */ 0xEDE1,
|
||||
/* FB41 */ 0xEDE2,
|
||||
/* FB42 */ 0xEDE3,
|
||||
/* FB43 */ 0xEDE4,
|
||||
/* FB44 */ 0xEDE5,
|
||||
/* FB45 */ 0xEDE6,
|
||||
/* FB46 */ 0xEDE7,
|
||||
/* FB47 */ 0xEDE8,
|
||||
/* FB48 */ 0xEDE9,
|
||||
/* FB49 */ 0xEDEA,
|
||||
/* FB4A */ 0xEDEB,
|
||||
/* FB4B */ 0xEDEC,
|
||||
/* FB4C */ 0xEDED,
|
||||
/* FB4D */ 0xEDEE,
|
||||
/* FB4E */ 0xEDEF,
|
||||
/* FB4F */ 0xEDF0,
|
||||
/* FB50 */ 0xEDF1,
|
||||
/* FB51 */ 0xEDF2,
|
||||
/* FB52 */ 0xEDF3,
|
||||
/* FB53 */ 0xEDF4,
|
||||
/* FB54 */ 0xEDF5,
|
||||
/* FB55 */ 0xEDF6,
|
||||
/* FB56 */ 0xEDF7,
|
||||
/* FB57 */ 0xEDF8,
|
||||
/* FB58 */ 0xEDF9,
|
||||
/* FB59 */ 0xEDFA,
|
||||
/* FB5A */ 0xEDFB,
|
||||
/* FB5B */ 0xEDFC,
|
||||
/* FB5C */ 0xEE40,
|
||||
/* FB5D */ 0xEE41,
|
||||
/* FB5E */ 0xEE42,
|
||||
/* FB5F */ 0xEE43,
|
||||
/* FB60 */ 0xEE44,
|
||||
/* FB61 */ 0xEE45,
|
||||
/* FB62 */ 0xEE46,
|
||||
/* FB63 */ 0xEE47,
|
||||
/* FB64 */ 0xEE48,
|
||||
/* FB65 */ 0xEE49,
|
||||
/* FB66 */ 0xEE4A,
|
||||
/* FB67 */ 0xEE4B,
|
||||
/* FB68 */ 0xEE4C,
|
||||
/* FB69 */ 0xEE4D,
|
||||
/* FB6A */ 0xEE4E,
|
||||
/* FB6B */ 0xEE4F,
|
||||
/* FB6C */ 0xEE50,
|
||||
/* FB6D */ 0xEE51,
|
||||
/* FB6E */ 0xEE52,
|
||||
/* FB6F */ 0xEE53,
|
||||
/* FB70 */ 0xEE54,
|
||||
/* FB71 */ 0xEE55,
|
||||
/* FB72 */ 0xEE56,
|
||||
/* FB73 */ 0xEE57,
|
||||
/* FB74 */ 0xEE58,
|
||||
/* FB75 */ 0xEE59,
|
||||
/* FB76 */ 0xEE5A,
|
||||
/* FB77 */ 0xEE5B,
|
||||
/* FB78 */ 0xEE5C,
|
||||
/* FB79 */ 0xEE5D,
|
||||
/* FB7A */ 0xEE5E,
|
||||
/* FB7B */ 0xEE5F,
|
||||
/* FB7C */ 0xEE60,
|
||||
/* FB7D */ 0xEE61,
|
||||
/* FB7E */ 0xEE62,
|
||||
/* FB7F:UNDEF */ 0,
|
||||
/* FB80 */ 0xEE63,
|
||||
/* FB81 */ 0xEE64,
|
||||
/* FB82 */ 0xEE65,
|
||||
/* FB83 */ 0xEE66,
|
||||
/* FB84 */ 0xEE67,
|
||||
/* FB85 */ 0xEE68,
|
||||
/* FB86 */ 0xEE69,
|
||||
/* FB87 */ 0xEE6A,
|
||||
/* FB88 */ 0xEE6B,
|
||||
/* FB89 */ 0xEE6C,
|
||||
/* FB8A */ 0xEE6D,
|
||||
/* FB8B */ 0xEE6E,
|
||||
/* FB8C */ 0xEE6F,
|
||||
/* FB8D */ 0xEE70,
|
||||
/* FB8E */ 0xEE71,
|
||||
/* FB8F */ 0xEE72,
|
||||
/* FB90 */ 0xEE73,
|
||||
/* FB91 */ 0xEE74,
|
||||
/* FB92 */ 0xEE75,
|
||||
/* FB93 */ 0xEE76,
|
||||
/* FB94 */ 0xEE77,
|
||||
/* FB95 */ 0xEE78,
|
||||
/* FB96 */ 0xEE79,
|
||||
/* FB97 */ 0xEE7A,
|
||||
/* FB98 */ 0xEE7B,
|
||||
/* FB99 */ 0xEE7C,
|
||||
/* FB9A */ 0xEE7D,
|
||||
/* FB9B */ 0xEE7E,
|
||||
/* FB9C */ 0xEE80,
|
||||
/* FB9D */ 0xEE81,
|
||||
/* FB9E */ 0xEE82,
|
||||
/* FB9F */ 0xEE83,
|
||||
/* FBA0 */ 0xEE84,
|
||||
/* FBA1 */ 0xEE85,
|
||||
/* FBA2 */ 0xEE86,
|
||||
/* FBA3 */ 0xEE87,
|
||||
/* FBA4 */ 0xEE88,
|
||||
/* FBA5 */ 0xEE89,
|
||||
/* FBA6 */ 0xEE8A,
|
||||
/* FBA7 */ 0xEE8B,
|
||||
/* FBA8 */ 0xEE8C,
|
||||
/* FBA9 */ 0xEE8D,
|
||||
/* FBAA */ 0xEE8E,
|
||||
/* FBAB */ 0xEE8F,
|
||||
/* FBAC */ 0xEE90,
|
||||
/* FBAD */ 0xEE91,
|
||||
/* FBAE */ 0xEE92,
|
||||
/* FBAF */ 0xEE93,
|
||||
/* FBB0 */ 0xEE94,
|
||||
/* FBB1 */ 0xEE95,
|
||||
/* FBB2 */ 0xEE96,
|
||||
/* FBB3 */ 0xEE97,
|
||||
/* FBB4 */ 0xEE98,
|
||||
/* FBB5 */ 0xEE99,
|
||||
/* FBB6 */ 0xEE9A,
|
||||
/* FBB7 */ 0xEE9B,
|
||||
/* FBB8 */ 0xEE9C,
|
||||
/* FBB9 */ 0xEE9D,
|
||||
/* FBBA */ 0xEE9E,
|
||||
/* FBBB */ 0xEE9F,
|
||||
/* FBBC */ 0xEEA0,
|
||||
/* FBBD */ 0xEEA1,
|
||||
/* FBBE */ 0xEEA2,
|
||||
/* FBBF */ 0xEEA3,
|
||||
/* FBC0 */ 0xEEA4,
|
||||
/* FBC1 */ 0xEEA5,
|
||||
/* FBC2 */ 0xEEA6,
|
||||
/* FBC3 */ 0xEEA7,
|
||||
/* FBC4 */ 0xEEA8,
|
||||
/* FBC5 */ 0xEEA9,
|
||||
/* FBC6 */ 0xEEAA,
|
||||
/* FBC7 */ 0xEEAB,
|
||||
/* FBC8 */ 0xEEAC,
|
||||
/* FBC9 */ 0xEEAD,
|
||||
/* FBCA */ 0xEEAE,
|
||||
/* FBCB */ 0xEEAF,
|
||||
/* FBCC */ 0xEEB0,
|
||||
/* FBCD */ 0xEEB1,
|
||||
/* FBCE */ 0xEEB2,
|
||||
/* FBCF */ 0xEEB3,
|
||||
/* FBD0 */ 0xEEB4,
|
||||
/* FBD1 */ 0xEEB5,
|
||||
/* FBD2 */ 0xEEB6,
|
||||
/* FBD3 */ 0xEEB7,
|
||||
/* FBD4 */ 0xEEB8,
|
||||
/* FBD5 */ 0xEEB9,
|
||||
/* FBD6 */ 0xEEBA,
|
||||
/* FBD7 */ 0xEEBB,
|
||||
/* FBD8 */ 0xEEBC,
|
||||
/* FBD9 */ 0xEEBD,
|
||||
/* FBDA */ 0xEEBE,
|
||||
/* FBDB */ 0xEEBF,
|
||||
/* FBDC */ 0xEEC0,
|
||||
/* FBDD */ 0xEEC1,
|
||||
/* FBDE */ 0xEEC2,
|
||||
/* FBDF */ 0xEEC3,
|
||||
/* FBE0 */ 0xEEC4,
|
||||
/* FBE1 */ 0xEEC5,
|
||||
/* FBE2 */ 0xEEC6,
|
||||
/* FBE3 */ 0xEEC7,
|
||||
/* FBE4 */ 0xEEC8,
|
||||
/* FBE5 */ 0xEEC9,
|
||||
/* FBE6 */ 0xEECA,
|
||||
/* FBE7 */ 0xEECB,
|
||||
/* FBE8 */ 0xEECC,
|
||||
/* FBE9 */ 0xEECD,
|
||||
/* FBEA */ 0xEECE,
|
||||
/* FBEB */ 0xEECF,
|
||||
/* FBEC */ 0xEED0,
|
||||
/* FBED */ 0xEED1,
|
||||
/* FBEE */ 0xEED2,
|
||||
/* FBEF */ 0xEED3,
|
||||
/* FBF0 */ 0xEED4,
|
||||
/* FBF1 */ 0xEED5,
|
||||
/* FBF2 */ 0xEED6,
|
||||
/* FBF3 */ 0xEED7,
|
||||
/* FBF4 */ 0xEED8,
|
||||
/* FBF5 */ 0xEED9,
|
||||
/* FBF6 */ 0xEEDA,
|
||||
/* FBF7 */ 0xEEDB,
|
||||
/* FBF8 */ 0xEEDC,
|
||||
/* FBF9 */ 0xEEDD,
|
||||
/* FBFA */ 0xEEDE,
|
||||
/* FBFB */ 0xEEDF,
|
||||
/* FBFC */ 0xEEE0,
|
||||
/* FBFD:UNDEF */ 0,
|
||||
/* FBFE:UNDEF */ 0,
|
||||
/* FBFF:UNDEF */ 0,
|
||||
/* FC00:UNDEF */ 0,
|
||||
/* FC01:UNDEF */ 0,
|
||||
/* FC02:UNDEF */ 0,
|
||||
/* FC03:UNDEF */ 0,
|
||||
/* FC04:UNDEF */ 0,
|
||||
/* FC05:UNDEF */ 0,
|
||||
/* FC06:UNDEF */ 0,
|
||||
/* FC07:UNDEF */ 0,
|
||||
/* FC08:UNDEF */ 0,
|
||||
/* FC09:UNDEF */ 0,
|
||||
/* FC0A:UNDEF */ 0,
|
||||
/* FC0B:UNDEF */ 0,
|
||||
/* FC0C:UNDEF */ 0,
|
||||
/* FC0D:UNDEF */ 0,
|
||||
/* FC0E:UNDEF */ 0,
|
||||
/* FC0F:UNDEF */ 0,
|
||||
/* FC10:UNDEF */ 0,
|
||||
/* FC11:UNDEF */ 0,
|
||||
/* FC12:UNDEF */ 0,
|
||||
/* FC13:UNDEF */ 0,
|
||||
/* FC14:UNDEF */ 0,
|
||||
/* FC15:UNDEF */ 0,
|
||||
/* FC16:UNDEF */ 0,
|
||||
/* FC17:UNDEF */ 0,
|
||||
/* FC18:UNDEF */ 0,
|
||||
/* FC19:UNDEF */ 0,
|
||||
/* FC1A:UNDEF */ 0,
|
||||
/* FC1B:UNDEF */ 0,
|
||||
/* FC1C:UNDEF */ 0,
|
||||
/* FC1D:UNDEF */ 0,
|
||||
/* FC1E:UNDEF */ 0,
|
||||
/* FC1F:UNDEF */ 0,
|
||||
/* FC20:UNDEF */ 0,
|
||||
/* FC21:UNDEF */ 0,
|
||||
/* FC22:UNDEF */ 0,
|
||||
/* FC23:UNDEF */ 0,
|
||||
/* FC24:UNDEF */ 0,
|
||||
/* FC25:UNDEF */ 0,
|
||||
/* FC26:UNDEF */ 0,
|
||||
/* FC27:UNDEF */ 0,
|
||||
/* FC28:UNDEF */ 0,
|
||||
/* FC29:UNDEF */ 0,
|
||||
/* FC2A:UNDEF */ 0,
|
||||
/* FC2B:UNDEF */ 0,
|
||||
/* FC2C:UNDEF */ 0,
|
||||
/* FC2D:UNDEF */ 0,
|
||||
/* FC2E:UNDEF */ 0,
|
||||
/* FC2F:UNDEF */ 0,
|
||||
/* FC30:UNDEF */ 0,
|
||||
/* FC31:UNDEF */ 0,
|
||||
/* FC32:UNDEF */ 0,
|
||||
/* FC33:UNDEF */ 0,
|
||||
/* FC34:UNDEF */ 0,
|
||||
/* FC35:UNDEF */ 0,
|
||||
/* FC36:UNDEF */ 0,
|
||||
/* FC37:UNDEF */ 0,
|
||||
/* FC38:UNDEF */ 0,
|
||||
/* FC39:UNDEF */ 0,
|
||||
/* FC3A:UNDEF */ 0,
|
||||
/* FC3B:UNDEF */ 0,
|
||||
/* FC3C:UNDEF */ 0,
|
||||
/* FC3D:UNDEF */ 0,
|
||||
/* FC3E:UNDEF */ 0,
|
||||
/* FC3F:UNDEF */ 0,
|
||||
/* FC40 */ 0xEEE1,
|
||||
/* FC41 */ 0xEEE2,
|
||||
/* FC42 */ 0xEEE3,
|
||||
/* FC43 */ 0xEEE4,
|
||||
/* FC44 */ 0xEEE5,
|
||||
/* FC45 */ 0xEEE6,
|
||||
/* FC46 */ 0xEEE7,
|
||||
/* FC47 */ 0xEEE8,
|
||||
/* FC48 */ 0xEEE9,
|
||||
/* FC49 */ 0xEEEA,
|
||||
/* FC4A */ 0xEEEB,
|
||||
/* FC4B */ 0xEEEC,
|
||||
/* FC4C:UNDEF */ 0,
|
||||
/* FC4D:UNDEF */ 0,
|
||||
/* FC4E:UNDEF */ 0,
|
||||
/* FC4F:UNDEF */ 0,
|
||||
/* FC50:UNDEF */ 0,
|
||||
/* FC51:UNDEF */ 0,
|
||||
/* FC52:UNDEF */ 0,
|
||||
/* FC53:UNDEF */ 0,
|
||||
/* FC54:UNDEF */ 0,
|
||||
/* FC55:UNDEF */ 0,
|
||||
/* FC56:UNDEF */ 0,
|
||||
/* FC57:UNDEF */ 0,
|
||||
/* FC58:UNDEF */ 0,
|
||||
/* FC59:UNDEF */ 0,
|
||||
/* FC5A:UNDEF */ 0,
|
||||
/* FC5B:UNDEF */ 0,
|
||||
/* FC5C:UNDEF */ 0,
|
||||
/* FC5D:UNDEF */ 0,
|
||||
/* FC5E:UNDEF */ 0,
|
||||
/* FC5F:UNDEF */ 0,
|
||||
/* FC60:UNDEF */ 0,
|
||||
/* FC61:UNDEF */ 0,
|
||||
/* FC62:UNDEF */ 0,
|
||||
/* FC63:UNDEF */ 0,
|
||||
/* FC64:UNDEF */ 0,
|
||||
/* FC65:UNDEF */ 0,
|
||||
/* FC66:UNDEF */ 0,
|
||||
/* FC67:UNDEF */ 0,
|
||||
/* FC68:UNDEF */ 0,
|
||||
/* FC69:UNDEF */ 0,
|
||||
/* FC6A:UNDEF */ 0,
|
||||
/* FC6B:UNDEF */ 0,
|
||||
/* FC6C:UNDEF */ 0,
|
||||
/* FC6D:UNDEF */ 0,
|
||||
/* FC6E:UNDEF */ 0,
|
||||
/* FC6F:UNDEF */ 0,
|
||||
/* FC70:UNDEF */ 0,
|
||||
/* FC71:UNDEF */ 0,
|
||||
/* FC72:UNDEF */ 0,
|
||||
/* FC73:UNDEF */ 0,
|
||||
/* FC74:UNDEF */ 0,
|
||||
/* FC75:UNDEF */ 0,
|
||||
/* FC76:UNDEF */ 0,
|
||||
/* FC77:UNDEF */ 0,
|
||||
/* FC78:UNDEF */ 0,
|
||||
/* FC79:UNDEF */ 0,
|
||||
/* FC7A:UNDEF */ 0,
|
||||
/* FC7B:UNDEF */ 0,
|
||||
/* FC7C:UNDEF */ 0,
|
||||
/* FC7D:UNDEF */ 0,
|
||||
/* FC7E:UNDEF */ 0,
|
||||
/* FC7F:UNDEF */ 0,
|
||||
/* FC80:UNDEF */ 0,
|
||||
/* FC81:UNDEF */ 0,
|
||||
/* FC82:UNDEF */ 0,
|
||||
/* FC83:UNDEF */ 0,
|
||||
/* FC84:UNDEF */ 0,
|
||||
/* FC85:UNDEF */ 0,
|
||||
/* FC86:UNDEF */ 0,
|
||||
/* FC87:UNDEF */ 0,
|
||||
/* FC88:UNDEF */ 0,
|
||||
/* FC89:UNDEF */ 0,
|
||||
/* FC8A:UNDEF */ 0,
|
||||
/* FC8B:UNDEF */ 0,
|
||||
/* FC8C:UNDEF */ 0,
|
||||
/* FC8D:UNDEF */ 0,
|
||||
/* FC8E:UNDEF */ 0,
|
||||
/* FC8F:UNDEF */ 0,
|
||||
/* FC90:UNDEF */ 0,
|
||||
/* FC91:UNDEF */ 0,
|
||||
/* FC92:UNDEF */ 0,
|
||||
/* FC93:UNDEF */ 0,
|
||||
/* FC94:UNDEF */ 0,
|
||||
/* FC95:UNDEF */ 0,
|
||||
/* FC96:UNDEF */ 0,
|
||||
/* FC97:UNDEF */ 0,
|
||||
/* FC98:UNDEF */ 0,
|
||||
/* FC99:UNDEF */ 0,
|
||||
/* FC9A:UNDEF */ 0,
|
||||
/* FC9B:UNDEF */ 0,
|
||||
/* FC9C:UNDEF */ 0,
|
||||
/* FC9D:UNDEF */ 0,
|
||||
/* FC9E:UNDEF */ 0,
|
||||
/* FC9F:UNDEF */ 0,
|
||||
/* FCA0:UNDEF */ 0,
|
||||
/* FCA1:UNDEF */ 0,
|
||||
/* FCA2:UNDEF */ 0,
|
||||
/* FCA3:UNDEF */ 0,
|
||||
/* FCA4:UNDEF */ 0,
|
||||
/* FCA5:UNDEF */ 0,
|
||||
/* FCA6:UNDEF */ 0,
|
||||
/* FCA7:UNDEF */ 0,
|
||||
/* FCA8:UNDEF */ 0,
|
||||
/* FCA9:UNDEF */ 0,
|
||||
/* FCAA:UNDEF */ 0,
|
||||
/* FCAB:UNDEF */ 0,
|
||||
/* FCAC:UNDEF */ 0,
|
||||
/* FCAD:UNDEF */ 0,
|
||||
/* FCAE:UNDEF */ 0,
|
||||
/* FCAF:UNDEF */ 0,
|
||||
/* FCB0:UNDEF */ 0,
|
||||
/* FCB1:UNDEF */ 0,
|
||||
/* FCB2:UNDEF */ 0,
|
||||
/* FCB3:UNDEF */ 0,
|
||||
/* FCB4:UNDEF */ 0,
|
||||
/* FCB5:UNDEF */ 0,
|
||||
/* FCB6:UNDEF */ 0,
|
||||
/* FCB7:UNDEF */ 0,
|
||||
/* FCB8:UNDEF */ 0,
|
||||
/* FCB9:UNDEF */ 0,
|
||||
/* FCBA:UNDEF */ 0,
|
||||
/* FCBB:UNDEF */ 0,
|
||||
/* FCBC:UNDEF */ 0,
|
||||
/* FCBD:UNDEF */ 0,
|
||||
/* FCBE:UNDEF */ 0,
|
||||
/* FCBF:UNDEF */ 0,
|
||||
/* FCC0:UNDEF */ 0,
|
||||
/* FCC1:UNDEF */ 0,
|
||||
/* FCC2:UNDEF */ 0,
|
||||
/* FCC3:UNDEF */ 0,
|
||||
/* FCC4:UNDEF */ 0,
|
||||
/* FCC5:UNDEF */ 0,
|
||||
/* FCC6:UNDEF */ 0,
|
||||
/* FCC7:UNDEF */ 0,
|
||||
/* FCC8:UNDEF */ 0,
|
||||
/* FCC9:UNDEF */ 0,
|
||||
/* FCCA:UNDEF */ 0,
|
||||
/* FCCB:UNDEF */ 0,
|
||||
/* FCCC:UNDEF */ 0,
|
||||
/* FCCD:UNDEF */ 0,
|
||||
/* FCCE:UNDEF */ 0,
|
||||
/* FCCF:UNDEF */ 0,
|
||||
/* FCD0:UNDEF */ 0,
|
||||
/* FCD1:UNDEF */ 0,
|
||||
/* FCD2:UNDEF */ 0,
|
||||
/* FCD3:UNDEF */ 0,
|
||||
/* FCD4:UNDEF */ 0,
|
||||
/* FCD5:UNDEF */ 0,
|
||||
/* FCD6:UNDEF */ 0,
|
||||
/* FCD7:UNDEF */ 0,
|
||||
/* FCD8:UNDEF */ 0,
|
||||
/* FCD9:UNDEF */ 0,
|
||||
/* FCDA:UNDEF */ 0,
|
||||
/* FCDB:UNDEF */ 0,
|
||||
/* FCDC:UNDEF */ 0,
|
||||
/* FCDD:UNDEF */ 0,
|
||||
/* FCDE:UNDEF */ 0,
|
||||
/* FCDF:UNDEF */ 0,
|
||||
/* FCE0:UNDEF */ 0,
|
||||
/* FCE1:UNDEF */ 0,
|
||||
/* FCE2:UNDEF */ 0,
|
||||
/* FCE3:UNDEF */ 0,
|
||||
/* FCE4:UNDEF */ 0,
|
||||
/* FCE5:UNDEF */ 0,
|
||||
/* FCE6:UNDEF */ 0,
|
||||
/* FCE7:UNDEF */ 0,
|
||||
/* FCE8:UNDEF */ 0,
|
||||
/* FCE9:UNDEF */ 0,
|
||||
/* FCEA:UNDEF */ 0,
|
||||
/* FCEB:UNDEF */ 0,
|
||||
/* FCEC:UNDEF */ 0,
|
||||
/* FCED:UNDEF */ 0,
|
||||
/* FCEE:UNDEF */ 0,
|
||||
/* FCEF:UNDEF */ 0,
|
||||
/* FCF0:UNDEF */ 0,
|
||||
/* FCF1:UNDEF */ 0,
|
||||
/* FCF2:UNDEF */ 0,
|
||||
/* FCF3:UNDEF */ 0,
|
||||
/* FCF4:UNDEF */ 0,
|
||||
/* FCF5:UNDEF */ 0,
|
||||
/* FCF6:UNDEF */ 0,
|
||||
/* FCF7:UNDEF */ 0,
|
||||
/* FCF8:UNDEF */ 0,
|
||||
/* FCF9:UNDEF */ 0,
|
||||
/* FCFA:UNDEF */ 0,
|
||||
/* FCFB:UNDEF */ 0,
|
||||
/* FCFC:UNDEF */ 0,
|
||||
/* FCFD:UNDEF */ 0,
|
||||
/* FCFE:UNDEF */ 0,
|
||||
/* FCFF:UNDEF */ 0,
|
|
@ -35,6 +35,9 @@ static const PRUint16 gJis0212map[] = {
|
|||
#include "nsIServiceManager.h"
|
||||
static NS_DEFINE_CID(kCharsetConverterManagerCID, NS_ICHARSETCONVERTERMANAGER_CID);
|
||||
|
||||
static PRUint16 gSjisIBMNECmap[] = {
|
||||
#include "IBMNEC.map"
|
||||
};
|
||||
|
||||
NS_IMETHODIMP nsShiftJISToUnicode::Convert(
|
||||
const char * aSrc, PRInt32 * aSrcLen,
|
||||
|
@ -57,7 +60,7 @@ NS_IMETHODIMP nsShiftJISToUnicode::Convert(
|
|||
188*31, 188*32, 188*33, 188*34, 188*35, 188*36, 188*37, 188*38,
|
||||
188*39, 188*40, 188*41, 188*42, 188*43, 188*44, 188*45, 188*46,
|
||||
0xE000, 0xE000+188, 0xE000+188*2, 0xE000+188*3, 0xE000+188*4, 0xE000+188*5, 0xE000+188*6, 0xE000+188*7,
|
||||
0xE000+188*8, 0xE000+188*9, 0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD,
|
||||
0xE000+188*8, 0xE000+188*9, 0xFFFA, 0xFFFB, 0xFFFC, 0xFFFD, 0xFFFD, 0xFFFD,
|
||||
};
|
||||
static const PRUint8 sbIdx[256] =
|
||||
{
|
||||
|
@ -99,10 +102,34 @@ NS_IMETHODIMP nsShiftJISToUnicode::Convert(
|
|||
const unsigned char* src =(unsigned char*) aSrc;
|
||||
PRUnichar* destEnd = aDest + *aDestLen;
|
||||
PRUnichar* dest = aDest;
|
||||
PRUint16 ibmnec;
|
||||
PRUint8 fbibmnec;
|
||||
while((src < srcEnd))
|
||||
{
|
||||
switch(mState)
|
||||
{
|
||||
|
||||
case 4: // IBM extention to NEC extention
|
||||
{
|
||||
ibmnec += *src;
|
||||
ibmnec = gSjisIBMNECmap[ibmnec - 0xFA40];
|
||||
if ( ibmnec == 0 ) {
|
||||
*dest++ = 0xFFFD;
|
||||
ibmnec = 0;
|
||||
fbibmnec = 0;
|
||||
mState=0;
|
||||
if(dest >= destEnd)
|
||||
goto error1;
|
||||
} else {
|
||||
*dest++ = gJis0208map[fbIdx[(ibmnec >> 8) & 0x7F ]
|
||||
+ sbIdx[ibmnec & 0x00FF]];
|
||||
if(dest >= destEnd)
|
||||
goto error1;
|
||||
mState = 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
case 0:
|
||||
if(*src & 0x80 && *src != (unsigned char)0xa0)
|
||||
{
|
||||
|
@ -118,9 +145,15 @@ NS_IMETHODIMP nsShiftJISToUnicode::Convert(
|
|||
(0xfd != *src) && (0xfe != *src) & (0xff != *src))
|
||||
mState = 3; // two byte undefined
|
||||
} else {
|
||||
*dest++ = mData; // JIS 0201
|
||||
if(dest >= destEnd)
|
||||
goto error1;
|
||||
if((0xfa == *src) || (0xfb == *src) || (0xfc == *src)) {
|
||||
ibmnec=((*src) << 8) & 0xFF00;
|
||||
fbibmnec = *src;
|
||||
mState = 4; // IBM Extra
|
||||
} else {
|
||||
*dest++ = mData; // JIS 0201
|
||||
if(dest >= destEnd)
|
||||
goto error1;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
mState = 2; // EUDC
|
||||
|
|
Загрузка…
Ссылка в новой задаче