зеркало из https://github.com/mozilla/pjs.git
First Checked In.
This commit is contained in:
Родитель
a2a78eaa30
Коммит
d12ab0ab8a
|
@ -0,0 +1,428 @@
|
|||
/* -*- Mode: C; tab-width: 4; 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.org code.
|
||||
|
||||
*
|
||||
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
|
||||
* Rights Reserved.
|
||||
|
||||
*
|
||||
|
||||
* Contributor(s):
|
||||
|
||||
* IBM Corporation
|
||||
|
||||
*
|
||||
|
||||
* This Original Code has been modified by IBM Corporation.
|
||||
|
||||
* Modifications made by IBM described herein are
|
||||
|
||||
* Copyright (c) International Business Machines
|
||||
|
||||
* Corporation, 1999
|
||||
|
||||
*
|
||||
|
||||
* Modifications to Mozilla code or documentation
|
||||
|
||||
* identified per MPL Section 3.3
|
||||
|
||||
*
|
||||
|
||||
*
|
||||
|
||||
*/
|
||||
|
||||
/*========================================================
|
||||
|
||||
This is a Generated file. Please don't edit it.
|
||||
|
||||
|
||||
|
||||
The tool which used to generate this file is called fromu.
|
||||
|
||||
If you have any problem of this file. Please contact
|
||||
|
||||
Netscape Client International Team or
|
||||
|
||||
ftang@netscape <Frank Tang>
|
||||
|
||||
|
||||
|
||||
Table in Debug form
|
||||
|
||||
Begin of Item 0000
|
||||
|
||||
Format 0
|
||||
|
||||
srcBegin = 0000
|
||||
|
||||
srcEnd = 0006
|
||||
|
||||
destBegin = 0000
|
||||
|
||||
End of Item 0000
|
||||
|
||||
|
||||
|
||||
Begin of Item 0001
|
||||
|
||||
Format 0
|
||||
|
||||
srcBegin = 0008
|
||||
|
||||
srcEnd = 001F
|
||||
|
||||
destBegin = 0008
|
||||
|
||||
End of Item 0001
|
||||
|
||||
|
||||
|
||||
Begin of Item 0002
|
||||
|
||||
Format 0
|
||||
|
||||
srcBegin = 0021
|
||||
|
||||
srcEnd = 007B
|
||||
|
||||
destBegin = 0021
|
||||
|
||||
End of Item 0002
|
||||
|
||||
|
||||
|
||||
Begin of Item 0003
|
||||
|
||||
Format 0
|
||||
|
||||
srcBegin = 0626
|
||||
|
||||
srcEnd = 0635
|
||||
|
||||
destBegin = 00C6
|
||||
|
||||
End of Item 0003
|
||||
|
||||
|
||||
|
||||
Begin of Item 0004
|
||||
|
||||
Format 0
|
||||
|
||||
srcBegin = 0660
|
||||
|
||||
srcEnd = 0669
|
||||
|
||||
destBegin = 00B0
|
||||
|
||||
End of Item 0004
|
||||
|
||||
|
||||
|
||||
Begin of Item 0005
|
||||
|
||||
Format 2
|
||||
|
||||
srcBegin = 0020
|
||||
|
||||
destBegin = 00A6
|
||||
|
||||
End of Item 0005
|
||||
|
||||
|
||||
|
||||
Begin of Item 0006
|
||||
|
||||
Format 1
|
||||
|
||||
srcBegin = 007C
|
||||
|
||||
srcEnd = 007F
|
||||
|
||||
mappingOffset = 0000
|
||||
|
||||
Mapping =
|
||||
|
||||
00DB 007D 007E 007F
|
||||
|
||||
End of Item 0006
|
||||
|
||||
|
||||
|
||||
Begin of Item 0007
|
||||
|
||||
Format 1
|
||||
|
||||
srcBegin = 009B
|
||||
|
||||
srcEnd = 009C
|
||||
|
||||
mappingOffset = 0004
|
||||
|
||||
Mapping =
|
||||
|
||||
00C0 00A3
|
||||
|
||||
End of Item 0007
|
||||
|
||||
|
||||
|
||||
Begin of Item 0008
|
||||
|
||||
Format 1
|
||||
|
||||
srcBegin = 00AB
|
||||
|
||||
srcEnd = 00C5
|
||||
|
||||
mappingOffset = 0006
|
||||
|
||||
Mapping =
|
||||
|
||||
0094 0095 FFFD 0097 0098 FFFD 0084 FFFD
|
||||
|
||||
0086 0088 FFFD FFFD FFFD FFFD FFFD FFFD
|
||||
|
||||
FFFD FFFD FFFD FFFD 008C 008E 008B 0089
|
||||
|
||||
008A 0085 0087
|
||||
|
||||
End of Item 0008
|
||||
|
||||
|
||||
|
||||
Begin of Item 0009
|
||||
|
||||
Format 1
|
||||
|
||||
srcBegin = 00D7
|
||||
|
||||
srcEnd = 00FF
|
||||
|
||||
mappingOffset = 0021
|
||||
|
||||
Mapping =
|
||||
|
||||
00DE FFFD 008F 008D FFFD 00DC FFFD FFFD
|
||||
|
||||
FFFD FFFD 0090 FFFD FFFD FFFD FFFD FFFD
|
||||
|
||||
FFFD FFFD FFFD FFFD FFFD 0091 0092 00A7
|
||||
|
||||
FFFD FFFD 0093 FFFD FFFD FFFD FFFD 00DD
|
||||
|
||||
0096 0080 0082 0081 0083 FFFD FFFD 00FE
|
||||
|
||||
00FF
|
||||
|
||||
End of Item 0009
|
||||
|
||||
|
||||
|
||||
Begin of Item 000A
|
||||
|
||||
Format 2
|
||||
|
||||
srcBegin = 060C
|
||||
|
||||
destBegin = 00AC
|
||||
|
||||
End of Item 000A
|
||||
|
||||
|
||||
|
||||
Begin of Item 000B
|
||||
|
||||
Format 1
|
||||
|
||||
srcBegin = 061B
|
||||
|
||||
srcEnd = 0624
|
||||
|
||||
mappingOffset = 004A
|
||||
|
||||
Mapping =
|
||||
|
||||
00BB FFFD FFFD FFFD 00BF FFFD 00C1 00C2
|
||||
|
||||
00C3 00C4
|
||||
|
||||
End of Item 000B
|
||||
|
||||
|
||||
|
||||
Begin of Item 000C
|
||||
|
||||
Format 1
|
||||
|
||||
srcBegin = 0636
|
||||
|
||||
srcEnd = 0651
|
||||
|
||||
mappingOffset = 0054
|
||||
|
||||
Mapping =
|
||||
|
||||
00EB 00D7 00D8 00EC 00F7 FFFD FFFD FFFD
|
||||
|
||||
FFFD FFFD 00E0 00E1 00F8 00FC 00FB 00EF
|
||||
|
||||
00F2 00F4 00E8 00F5 00FD FFFD FFFD FFFD
|
||||
|
||||
FFFD FFFD FFFD 00F1
|
||||
|
||||
End of Item 000C
|
||||
|
||||
|
||||
|
||||
Begin of Item 000D
|
||||
|
||||
Format 2
|
||||
|
||||
srcBegin = 200A
|
||||
|
||||
destBegin = 009F
|
||||
|
||||
End of Item 000D
|
||||
|
||||
|
||||
|
||||
========================================================*/
|
||||
|
||||
/* Offset=0x0000 ItemOfList */
|
||||
|
||||
0x000E,
|
||||
|
||||
/*-------------------------------------------------------*/
|
||||
|
||||
/* Offset=0x0001 offsetToFormatArray */
|
||||
|
||||
0x0004,
|
||||
|
||||
/*-------------------------------------------------------*/
|
||||
|
||||
/* Offset=0x0002 offsetToMapCellArray */
|
||||
|
||||
0x0008,
|
||||
|
||||
/*-------------------------------------------------------*/
|
||||
|
||||
/* Offset=0x0003 offsetToMappingTable */
|
||||
|
||||
0x0032,
|
||||
|
||||
/*-------------------------------------------------------*/
|
||||
|
||||
/* Offset=0x0004 Start of Format Array */
|
||||
|
||||
/* Total of Format 0 : 0x0005 */
|
||||
|
||||
/* Total of Format 1 : 0x0006 */
|
||||
|
||||
/* Total of Format 2 : 0x0003 */
|
||||
|
||||
/* Total of Format 3 : 0x0000 */
|
||||
|
||||
|
||||
|
||||
0x0000, 0x1120, 0x1211, 0x0021,
|
||||
|
||||
/*-------------------------------------------------------*/
|
||||
|
||||
/* Offset=0x0008 Start of MapCell Array */
|
||||
|
||||
/* 0000 */ 0x0000, 0x0006, 0x0000,
|
||||
|
||||
/* 0001 */ 0x0008, 0x001F, 0x0008,
|
||||
|
||||
/* 0002 */ 0x0021, 0x007B, 0x0021,
|
||||
|
||||
/* 0003 */ 0x0626, 0x0635, 0x00C6,
|
||||
|
||||
/* 0004 */ 0x0660, 0x0669, 0x00B0,
|
||||
|
||||
/* 0005 */ 0x0020, 0x0000, 0x00A6,
|
||||
|
||||
/* 0006 */ 0x007C, 0x007F, 0x0000,
|
||||
|
||||
/* 0007 */ 0x009B, 0x009C, 0x0004,
|
||||
|
||||
/* 0008 */ 0x00AB, 0x00C5, 0x0006,
|
||||
|
||||
/* 0009 */ 0x00D7, 0x00FF, 0x0021,
|
||||
|
||||
/* 000A */ 0x060C, 0x0000, 0x00AC,
|
||||
|
||||
/* 000B */ 0x061B, 0x0624, 0x004A,
|
||||
|
||||
/* 000C */ 0x0636, 0x0651, 0x0054,
|
||||
|
||||
/* 000D */ 0x200A, 0x0000, 0x009F,
|
||||
|
||||
/*-------------------------------------------------------*/
|
||||
|
||||
/* Offset=0x0032 Start of MappingTable */
|
||||
|
||||
|
||||
|
||||
/* 0000 */ 0x00DB, 0x007D, 0x007E, 0x007F, 0x00C0, 0x00A3, 0x0094, 0x0095,
|
||||
|
||||
/* 0008 */ 0xFFFD, 0x0097, 0x0098, 0xFFFD, 0x0084, 0xFFFD, 0x0086, 0x0088,
|
||||
|
||||
/* 0010 */ 0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD,
|
||||
|
||||
/* 0018 */ 0xFFFD, 0xFFFD, 0x008C, 0x008E, 0x008B, 0x0089, 0x008A, 0x0085,
|
||||
|
||||
/* 0020 */ 0x0087, 0x00DE, 0xFFFD, 0x008F, 0x008D, 0xFFFD, 0x00DC, 0xFFFD,
|
||||
|
||||
/* 0028 */ 0xFFFD, 0xFFFD, 0xFFFD, 0x0090, 0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD,
|
||||
|
||||
/* 0030 */ 0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0x0091, 0x0092,
|
||||
|
||||
/* 0038 */ 0x00A7, 0xFFFD, 0xFFFD, 0x0093, 0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD,
|
||||
|
||||
/* 0040 */ 0x00DD, 0x0096, 0x0080, 0x0082, 0x0081, 0x0083, 0xFFFD, 0xFFFD,
|
||||
|
||||
/* 0048 */ 0x00FE, 0x00FF, 0x00BB, 0xFFFD, 0xFFFD, 0xFFFD, 0x00BF, 0xFFFD,
|
||||
|
||||
/* 0050 */ 0x00C1, 0x00C2, 0x00C3, 0x00C4, 0x00EB, 0x00D7, 0x00D8, 0x00EC,
|
||||
|
||||
/* 0058 */ 0x00F7, 0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0x00E0, 0x00E1,
|
||||
|
||||
/* 0060 */ 0x00F8, 0x00FC, 0x00FB, 0x00EF, 0x00F2, 0x00F4, 0x00E8, 0x00F5,
|
||||
|
||||
/* 0068 */ 0x00FD, 0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0x00F1,
|
||||
|
||||
/* End of table Total Length = 0x00A2 * 2 */
|
||||
|
|
@ -0,0 +1,332 @@
|
|||
/* -*- Mode: C; tab-width: 4; 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.org code.
|
||||
|
||||
*
|
||||
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
|
||||
* Rights Reserved.
|
||||
|
||||
*
|
||||
|
||||
* Contributor(s):
|
||||
|
||||
* IBM Corporation
|
||||
|
||||
*
|
||||
|
||||
* This Original Code has been modified by IBM Corporation.
|
||||
|
||||
* Modifications made by IBM described herein are
|
||||
|
||||
* Copyright (c) International Business Machines
|
||||
|
||||
* Corporation, 1999
|
||||
|
||||
*
|
||||
|
||||
* Modifications to Mozilla code or documentation
|
||||
|
||||
* identified per MPL Section 3.3
|
||||
|
||||
*
|
||||
|
||||
*
|
||||
|
||||
*/
|
||||
|
||||
/*========================================================
|
||||
|
||||
This is a Generated file. Please don't edit it.
|
||||
|
||||
|
||||
|
||||
The tool which used to generate this file is called fromu.
|
||||
|
||||
If you have any problem of this file. Please contact
|
||||
|
||||
Netscape Client International Team or
|
||||
|
||||
ftang@netscape <Frank Tang>
|
||||
|
||||
|
||||
|
||||
Table in Debug form
|
||||
|
||||
Begin of Item 0000
|
||||
|
||||
Format 0
|
||||
|
||||
srcBegin = 0000
|
||||
|
||||
srcEnd = 0006
|
||||
|
||||
destBegin = 0000
|
||||
|
||||
End of Item 0000
|
||||
|
||||
|
||||
|
||||
Begin of Item 0001
|
||||
|
||||
Format 0
|
||||
|
||||
srcBegin = 0008
|
||||
|
||||
srcEnd = 007F
|
||||
|
||||
destBegin = 0008
|
||||
|
||||
End of Item 0001
|
||||
|
||||
|
||||
|
||||
Begin of Item 0002
|
||||
|
||||
Format 0
|
||||
|
||||
srcBegin = 00B0
|
||||
|
||||
srcEnd = 00B9
|
||||
|
||||
destBegin = 0660
|
||||
|
||||
End of Item 0002
|
||||
|
||||
|
||||
|
||||
Begin of Item 0003
|
||||
|
||||
Format 0
|
||||
|
||||
srcBegin = 00C6
|
||||
|
||||
srcEnd = 00DA
|
||||
|
||||
destBegin = 0626
|
||||
|
||||
End of Item 0003
|
||||
|
||||
|
||||
|
||||
Begin of Item 0004
|
||||
|
||||
Format 0
|
||||
|
||||
srcBegin = 00E0
|
||||
|
||||
srcEnd = 00EA
|
||||
|
||||
destBegin = 0640
|
||||
|
||||
End of Item 0004
|
||||
|
||||
|
||||
|
||||
Begin of Item 0005
|
||||
|
||||
Format 2
|
||||
|
||||
srcBegin = 0007
|
||||
|
||||
destBegin = 0017
|
||||
|
||||
End of Item 0005
|
||||
|
||||
|
||||
|
||||
Begin of Item 0006
|
||||
|
||||
Format 1
|
||||
|
||||
srcBegin = 0080
|
||||
|
||||
srcEnd = 00C5
|
||||
|
||||
mappingOffset = 0000
|
||||
|
||||
Mapping =
|
||||
|
||||
00F8 00FA 00F9 00FB 00B1 00C4 00B3 00C5
|
||||
|
||||
00B4 00C2 00C3 00C1 00BF 00DA 00C0 00D9
|
||||
|
||||
00E1 00EC 00ED 00F1 00AB 00AC 00F7 00AE
|
||||
|
||||
00AF 0644 0644 0020 0020 0644 0644 200A
|
||||
|
||||
0020 0020 0622 009C 0020 0623 0020 00EE
|
||||
|
||||
0627 0628 062A 062B 060C 062C 062D 062E
|
||||
|
||||
FFFD FFFD FFFD FFFD FFFD FFFD FFFD FFFD
|
||||
|
||||
FFFD FFFD 0641 061B 0633 0634 0635 061F
|
||||
|
||||
009B 0621 0622 0623 0624 0639
|
||||
|
||||
End of Item 0006
|
||||
|
||||
|
||||
|
||||
Begin of Item 0007
|
||||
|
||||
Format 1
|
||||
|
||||
srcBegin = 00DB
|
||||
|
||||
srcEnd = 00DF
|
||||
|
||||
mappingOffset = 0046
|
||||
|
||||
Mapping =
|
||||
|
||||
007C 00DC 00F6 00D7 0639
|
||||
|
||||
End of Item 0007
|
||||
|
||||
|
||||
|
||||
Begin of Item 0008
|
||||
|
||||
Format 1
|
||||
|
||||
srcBegin = 00EB
|
||||
|
||||
srcEnd = 00FF
|
||||
|
||||
mappingOffset = 004B
|
||||
|
||||
Mapping =
|
||||
|
||||
0636 0639 063A 063A 0645 0651 0651 0646
|
||||
|
||||
0647 0647 0649 064A 063A 0642 0644 0644
|
||||
|
||||
0644 0643 064A 00FE 00FF
|
||||
|
||||
End of Item 0008
|
||||
|
||||
|
||||
|
||||
========================================================*/
|
||||
|
||||
/* Offset=0x0000 ItemOfList */
|
||||
|
||||
0x0009,
|
||||
|
||||
/*-------------------------------------------------------*/
|
||||
|
||||
/* Offset=0x0001 offsetToFormatArray */
|
||||
|
||||
0x0004,
|
||||
|
||||
/*-------------------------------------------------------*/
|
||||
|
||||
/* Offset=0x0002 offsetToMapCellArray */
|
||||
|
||||
0x0007,
|
||||
|
||||
/*-------------------------------------------------------*/
|
||||
|
||||
/* Offset=0x0003 offsetToMappingTable */
|
||||
|
||||
0x0022,
|
||||
|
||||
/*-------------------------------------------------------*/
|
||||
|
||||
/* Offset=0x0004 Start of Format Array */
|
||||
|
||||
/* Total of Format 0 : 0x0005 */
|
||||
|
||||
/* Total of Format 1 : 0x0003 */
|
||||
|
||||
/* Total of Format 2 : 0x0001 */
|
||||
|
||||
/* Total of Format 3 : 0x0000 */
|
||||
|
||||
|
||||
|
||||
0x0000, 0x1120, 0x0001,
|
||||
|
||||
/*-------------------------------------------------------*/
|
||||
|
||||
/* Offset=0x0007 Start of MapCell Array */
|
||||
|
||||
/* 0000 */ 0x0000, 0x0006, 0x0000,
|
||||
|
||||
/* 0001 */ 0x0008, 0x007F, 0x0008,
|
||||
|
||||
/* 0002 */ 0x00B0, 0x00B9, 0x0660,
|
||||
|
||||
/* 0003 */ 0x00C6, 0x00DA, 0x0626,
|
||||
|
||||
/* 0004 */ 0x00E0, 0x00EA, 0x0640,
|
||||
|
||||
/* 0005 */ 0x0007, 0x0000, 0x0017,
|
||||
|
||||
/* 0006 */ 0x0080, 0x00C5, 0x0000,
|
||||
|
||||
/* 0007 */ 0x00DB, 0x00DF, 0x0046,
|
||||
|
||||
/* 0008 */ 0x00EB, 0x00FF, 0x004B,
|
||||
|
||||
/*-------------------------------------------------------*/
|
||||
|
||||
/* Offset=0x0022 Start of MappingTable */
|
||||
|
||||
|
||||
|
||||
/* 0000 */ 0x00F8, 0x00FA, 0x00F9, 0x00FB, 0x00B1, 0x00C4, 0x00B3, 0x00C5,
|
||||
|
||||
/* 0008 */ 0x00B4, 0x00C2, 0x00C3, 0x00C1, 0x00BF, 0x00DA, 0x00C0, 0x00D9,
|
||||
|
||||
/* 0010 */ 0x00E1, 0x00EC, 0x00ED, 0x00F1, 0x00AB, 0x00AC, 0x00F7, 0x00AE,
|
||||
|
||||
/* 0018 */ 0x00AF, 0x0644, 0x0644, 0x0020, 0x0020, 0x0644, 0x0644, 0x200A,
|
||||
|
||||
/* 0020 */ 0x0020, 0x0020, 0x0622, 0x009C, 0x0020, 0x0623, 0x0020, 0x00EE,
|
||||
|
||||
/* 0028 */ 0x0627, 0x0628, 0x062A, 0x062B, 0x060C, 0x062C, 0x062D, 0x062E,
|
||||
|
||||
/* 0030 */ 0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD, 0xFFFD,
|
||||
|
||||
/* 0038 */ 0xFFFD, 0xFFFD, 0x0641, 0x061B, 0x0633, 0x0634, 0x0635, 0x061F,
|
||||
|
||||
/* 0040 */ 0x009B, 0x0621, 0x0622, 0x0623, 0x0624, 0x0639, 0x007C, 0x00DC,
|
||||
|
||||
/* 0048 */ 0x00F6, 0x00D7, 0x0639, 0x0636, 0x0639, 0x063A, 0x063A, 0x0645,
|
||||
|
||||
/* 0050 */ 0x0651, 0x0651, 0x0646, 0x0647, 0x0647, 0x0649, 0x064A, 0x063A,
|
||||
|
||||
/* 0058 */ 0x0642, 0x0644, 0x0644, 0x0644, 0x0643, 0x064A, 0x00FE, 0x00FF,
|
||||
|
||||
/* End of table Total Length = 0x0082 * 2 */
|
||||
|
|
@ -0,0 +1,116 @@
|
|||
/* -*- 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 Netscape Communications
|
||||
|
||||
* Corporation. Portions created by Netscape are
|
||||
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
|
||||
* Rights Reserved.
|
||||
|
||||
*
|
||||
|
||||
* Contributor(s):
|
||||
|
||||
* IBM Corporation
|
||||
|
||||
*
|
||||
|
||||
* This Original Code has been modified by IBM Corporation.
|
||||
|
||||
* Modifications made by IBM described herein are
|
||||
|
||||
* Copyright (c) International Business Machines
|
||||
|
||||
* Corporation, 1999
|
||||
|
||||
*
|
||||
|
||||
* Modifications to Mozilla code or documentation
|
||||
|
||||
* identified per MPL Section 3.3
|
||||
|
||||
*
|
||||
|
||||
* Date Modified by Description of modification
|
||||
|
||||
* 12/09/1999 IBM Corp. Support for IBM codepage 864i
|
||||
|
||||
*
|
||||
|
||||
*/
|
||||
|
||||
|
||||
|
||||
#include "nsCP864iToUnicode.h"
|
||||
|
||||
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
// Global functions and data [declaration]
|
||||
|
||||
|
||||
|
||||
static PRUint16 g_utMappingTable[] = {
|
||||
|
||||
#include "864i.ut"
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
static PRInt16 g_utShiftTable[] = {
|
||||
|
||||
0, u1ByteCharset ,
|
||||
|
||||
ShiftCell(0,0,0,0,0,0,0,0)
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
// Class nsCP864iToUnicode [implementation]
|
||||
|
||||
|
||||
|
||||
nsCP864iToUnicode::nsCP864iToUnicode()
|
||||
|
||||
: nsOneByteDecoderSupport((uShiftTable*) &g_utShiftTable,
|
||||
|
||||
(uMappingTable*) &g_utMappingTable)
|
||||
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,116 @@
|
|||
/* -*- 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 Netscape Communications
|
||||
|
||||
* Corporation. Portions created by Netscape are
|
||||
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
|
||||
* Rights Reserved.
|
||||
|
||||
*
|
||||
|
||||
* Contributor(s):
|
||||
|
||||
* IBM Corporation
|
||||
|
||||
*
|
||||
|
||||
* This Original Code has been modified by IBM Corporation.
|
||||
|
||||
* Modifications made by IBM described herein are
|
||||
|
||||
* Copyright (c) International Business Machines
|
||||
|
||||
* Corporation, 1999
|
||||
|
||||
*
|
||||
|
||||
* Modifications to Mozilla code or documentation
|
||||
|
||||
* identified per MPL Section 3.3
|
||||
|
||||
*
|
||||
|
||||
* Date Modified by Description of modification
|
||||
|
||||
* 12/09/1999 IBM Corp. Support for IBM codepage 864i
|
||||
|
||||
*
|
||||
|
||||
*/
|
||||
|
||||
|
||||
|
||||
#ifndef nsCP864iToUnicode_h___
|
||||
|
||||
#define nsCP864iToUnicode_h___
|
||||
|
||||
|
||||
|
||||
#include "nsUCvIBMSupport.h"
|
||||
|
||||
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
// Class nsCP864iToUnicode [declaration]
|
||||
|
||||
|
||||
|
||||
/**
|
||||
|
||||
* A character set converter from CP864i to Unicode.
|
||||
|
||||
*/
|
||||
|
||||
class nsCP864iToUnicode : public nsOneByteDecoderSupport
|
||||
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
|
||||
/**
|
||||
|
||||
* Class constructor.
|
||||
|
||||
*/
|
||||
|
||||
nsCP864iToUnicode();
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif /* nsCP864iToUnicode_h___ */
|
||||
|
|
@ -0,0 +1,138 @@
|
|||
/* -*- 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 Netscape Communications
|
||||
|
||||
* Corporation. Portions created by Netscape are
|
||||
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
|
||||
* Rights Reserved.
|
||||
|
||||
*
|
||||
|
||||
* Contributor(s):
|
||||
|
||||
* IBM Corporation
|
||||
|
||||
*
|
||||
|
||||
* This Original Code has been modified by IBM Corporation.
|
||||
|
||||
* Modifications made by IBM described herein are
|
||||
|
||||
* Copyright (c) International Business Machines
|
||||
|
||||
* Corporation, 1999
|
||||
|
||||
*
|
||||
|
||||
* Modifications to Mozilla code or documentation
|
||||
|
||||
* identified per MPL Section 3.3
|
||||
|
||||
*
|
||||
|
||||
* Date Modified by Description of modification
|
||||
|
||||
* 12/09/1999 IBM Corp. Support for IBM codepages - 864i
|
||||
|
||||
*
|
||||
|
||||
*/
|
||||
|
||||
|
||||
|
||||
#include "nsUnicodeToCP864i.h"
|
||||
|
||||
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
// Global functions and data [declaration]
|
||||
|
||||
|
||||
|
||||
static PRUint16 g_ufMappingTable[] = {
|
||||
|
||||
#include "864i.uf"
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
static PRInt16 g_ufShiftTable[] = {
|
||||
|
||||
0, u1ByteCharset ,
|
||||
|
||||
ShiftCell(0,0,0,0,0,0,0,0)
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
// Class nsUnicodeToCP864i [implementation]
|
||||
|
||||
|
||||
|
||||
nsUnicodeToCP864i::nsUnicodeToCP864i()
|
||||
|
||||
: nsTableEncoderSupport((uShiftTable*) &g_ufShiftTable,
|
||||
|
||||
(uMappingTable*) &g_ufMappingTable)
|
||||
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
// Subclassing of nsTableEncoderSupport class [implementation]
|
||||
|
||||
|
||||
|
||||
NS_IMETHODIMP nsUnicodeToCP864i::GetMaxLength(const PRUnichar * aSrc,
|
||||
|
||||
PRInt32 aSrcLength,
|
||||
|
||||
PRInt32 * aDestLength)
|
||||
|
||||
{
|
||||
|
||||
*aDestLength = aSrcLength;
|
||||
|
||||
return NS_OK_UENC_EXACTLENGTH;
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,130 @@
|
|||
/* -*- 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 Netscape Communications
|
||||
|
||||
* Corporation. Portions created by Netscape are
|
||||
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
|
||||
* Rights Reserved.
|
||||
|
||||
*
|
||||
|
||||
* Contributor(s):
|
||||
|
||||
* IBM Corporation
|
||||
|
||||
*
|
||||
|
||||
* This Original Code has been modified by IBM Corporation.
|
||||
|
||||
* Modifications made by IBM described herein are
|
||||
|
||||
* Copyright (c) International Business Machines
|
||||
|
||||
* Corporation, 1999
|
||||
|
||||
*
|
||||
|
||||
* Modifications to Mozilla code or documentation
|
||||
|
||||
* identified per MPL Section 3.3
|
||||
|
||||
*
|
||||
|
||||
* Date Modified by Description of modification
|
||||
|
||||
* 12/09/1999 IBM Corp. Support for IBM codepages - 864i
|
||||
|
||||
*
|
||||
|
||||
*/
|
||||
|
||||
|
||||
|
||||
#ifndef nsUnicodeToCP864i_h___
|
||||
|
||||
#define nsUnicodeToCP864i_h___
|
||||
|
||||
|
||||
|
||||
#include "nsUCvIBMSupport.h"
|
||||
|
||||
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
// Class nsUnicodeToCP864i [declaration]
|
||||
|
||||
|
||||
|
||||
/**
|
||||
|
||||
* A character set converter from Unicode to CP864i.
|
||||
|
||||
*/
|
||||
|
||||
class nsUnicodeToCP864i : public nsTableEncoderSupport
|
||||
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
|
||||
/**
|
||||
|
||||
* Class constructor.
|
||||
|
||||
*/
|
||||
|
||||
nsUnicodeToCP864i();
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
|
||||
// Subclassing of nsEncoderSupport class [declaration]
|
||||
|
||||
|
||||
|
||||
NS_IMETHOD GetMaxLength(const PRUnichar * aSrc, PRInt32 aSrcLength,
|
||||
|
||||
PRInt32 * aDestLength);
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif /* nsUnicodeToCP864i_h___ */
|
||||
|
Загрузка…
Ссылка в новой задаче