fix for bug 158003 - custom static constructors for i18n unicode converters.

r=shanjian, sr=bz, a=roc+moz
This commit is contained in:
alecf%netscape.com 2002-09-07 01:17:57 +00:00
parent 70941124cb
commit 71f32d15bb
316 changed files with 1827 additions and 4525 deletions

View File

@ -51,6 +51,7 @@ CSRCS = \
$(NULL)
CPPSRCS = \
nsUConvModule.cpp \
nsCharsetConverterManager.cpp \
nsTextToSubURI.cpp \
nsUnicodeDecodeHelper.cpp \
@ -58,7 +59,6 @@ CPPSRCS = \
nsCharsetAliasImp.cpp \
nsURLProperties.cpp \
nsMappingCache.cpp \
nsUConvModule.cpp \
nsISO88591ToUnicode.cpp \
nsCP1252ToUnicode.cpp \
nsMacRomanToUnicode.cpp \

View File

@ -36,7 +36,7 @@
*
* ***** END LICENSE BLOCK ***** */
#include "nsUCSupport.h"
#include "nsUCConstructors.h"
#include "nsCP1252ToUnicode.h"
//----------------------------------------------------------------------
@ -51,11 +51,11 @@ static const PRInt16 g_utShiftTable[] = {
ShiftCell(0,0,0,0,0,0,0,0)
};
//----------------------------------------------------------------------
// Class nsCP1252ToUnicode [implementation]
nsCP1252ToUnicode::nsCP1252ToUnicode()
: nsOneByteDecoderSupport((uShiftTable*) &g_utShiftTable,
(uMappingTable*) &g_utMappingTable)
NS_METHOD
nsCP1252ToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult)
{
return CreateOneByteDecoder((uShiftTable*) &g_utShiftTable,
(uMappingTable*) &g_utMappingTable,
aOuter, aIID, aResult);
}

View File

@ -39,6 +39,8 @@
#ifndef nsCP1252ToUnicode_h___
#define nsCP1252ToUnicode_h___
#include "nsISupports.h"
// Class ID for our CP1252ToUnicode charset converter
// {7C657D15-EC5E-11d2-8AAC-00600811A836}
#define NS_CP1252TOUNICODE_CID \
@ -46,24 +48,14 @@
#define NS_CP1252TOUNICODE_CONTRACTID "@mozilla.org/intl/unicode/decoder;1?charset=windows-1252"
//----------------------------------------------------------------------
// Class nsCP1252ToUnicode [declaration]
/**
* A character set converter from CP1252 to Unicode.
*
* @created 20/Apr/1999
* @author Catalin Rotaru [CATA]
*/
class nsCP1252ToUnicode : public nsOneByteDecoderSupport
{
public:
/**
* Class constructor.
*/
nsCP1252ToUnicode();
};
NS_METHOD
nsCP1252ToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult);
#endif /* nsCP1252ToUnicode_h___ */

View File

@ -36,7 +36,7 @@
*
* ***** END LICENSE BLOCK ***** */
#include "nsUCSupport.h"
#include "nsUCConstructors.h"
#include "nsISO88591ToUnicode.h"
//----------------------------------------------------------------------
@ -51,12 +51,12 @@ static const PRInt16 g_utShiftTable[] = {
ShiftCell(0,0,0,0,0,0,0,0)
};
//----------------------------------------------------------------------
// Class nsISO88591ToUnicode [implementation]
nsISO88591ToUnicode::nsISO88591ToUnicode()
: nsOneByteDecoderSupport((uShiftTable*) &g_utShiftTable,
(uMappingTable*) &g_utMappingTable)
NS_METHOD
nsISO88591ToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult)
{
return CreateOneByteDecoder((uShiftTable*) &g_utShiftTable,
(uMappingTable*) &g_utMappingTable,
aOuter, aIID, aResult);
}

View File

@ -39,6 +39,8 @@
#ifndef nsISO88591ToUnicode_h___
#define nsISO88591ToUnicode_h___
#include "nsISupports.h"
// Class ID for our ISO88591ToUnicode charset converter
// {A3254CB0-8E20-11d2-8A98-00600811A836}
#define NS_ISO88591TOUNICODE_CID \
@ -46,24 +48,14 @@
#define NS_ISO88591TOUNICODE_CONTRACTID "@mozilla.org/intl/unicode/decoder;1?charset=ISO-8859-1"
//----------------------------------------------------------------------
// Class nsISO88591ToUnicode [declaration]
/**
* A character set converter from ISO88591 to Unicode.
*
* @created 23/Nov/1998
* @author Catalin Rotaru [CATA]
*/
class nsISO88591ToUnicode : public nsOneByteDecoderSupport
{
public:
/**
* Class constructor.
*/
nsISO88591ToUnicode();
};
NS_METHOD
nsISO88591ToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult);
#endif /* nsISO88591ToUnicode_h___ */

View File

@ -36,7 +36,7 @@
*
* ***** END LICENSE BLOCK ***** */
#include "nsUCSupport.h"
#include "nsUCConstructors.h"
#include "nsMacRomanToUnicode.h"
//----------------------------------------------------------------------
@ -51,12 +51,12 @@ static const PRInt16 g_MacRomanShiftTable[] = {
ShiftCell(0,0,0,0,0,0,0,0)
};
//----------------------------------------------------------------------
// Class nsMacRomanToUnicode [implementation]
nsMacRomanToUnicode::nsMacRomanToUnicode()
: nsTableDecoderSupport((uShiftTable*) &g_MacRomanShiftTable,
(uMappingTable*) &g_MacRomanMappingTable, 1)
NS_METHOD
nsMacRomanToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult)
{
return CreateTableDecoder((uShiftTable*) &g_MacRomanShiftTable,
(uMappingTable*) &g_MacRomanMappingTable, 1,
aOuter, aIID, aResult);
}

View File

@ -39,6 +39,8 @@
#ifndef nsMacRomanToUnicode_h___
#define nsMacRomanToUnicode_h___
#include "nsISupports.h"
// Class ID for our MacRomanToUnicode charset converter
// {7B8556A1-EC79-11d2-8AAC-00600811A836}
#define NS_MACROMANTOUNICODE_CID \
@ -49,26 +51,14 @@
//#define NS_ERROR_UCONV_NOMACROMANTOUNICODE
// NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_UCONV, 0x31)
//----------------------------------------------------------------------
// Class nsMacRomanToUnicode [declaration]
/**
* A character set converter from MacRoman to Unicode.
*
* @created 05/Apr/1999
* @author Catalin Rotaru [CATA]
*/
class nsMacRomanToUnicode : public nsTableDecoderSupport
{
public:
/**
* Class constructor.
*/
nsMacRomanToUnicode();
protected:
};
NS_METHOD
nsMacRomanToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult);
#endif /* nsMacRomanToUnicode_h___ */

View File

@ -426,114 +426,18 @@ NS_GENERIC_FACTORY_CONSTRUCTOR(nsCharsetAlias2)
NS_GENERIC_FACTORY_CONSTRUCTOR(nsTextToSubURI)
NS_GENERIC_FACTORY_CONSTRUCTOR(nsScriptableUnicodeConverter)
NS_GENERIC_FACTORY_CONSTRUCTOR(nsConverterInputStream)
NS_GENERIC_FACTORY_CONSTRUCTOR(nsISO88591ToUnicode)
NS_GENERIC_FACTORY_CONSTRUCTOR(nsCP1252ToUnicode)
NS_GENERIC_FACTORY_CONSTRUCTOR(nsMacRomanToUnicode)
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUTF8ToUnicode)
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToISO88591)
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToCP1252)
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToMacRoman)
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToUTF8)
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUTF8ToUnicode)
// ucvlatin
NS_GENERIC_FACTORY_CONSTRUCTOR(nsAsciiToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUEscapeToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsISO88592ToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsISO88593ToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsISO88594ToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsISO88595ToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsISO88596ToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsISO88596EToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsISO88596IToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsISO88597ToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsISO88598ToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsISO88598EToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsISO88598IToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsISO88599ToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsISO885910ToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsISO885913ToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsISO885914ToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsISO885915ToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsISO885916ToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsISOIR111ToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsCP1250ToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsCP1251ToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsCP1253ToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsCP1254ToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsCP1255ToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsCP1256ToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsCP1257ToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsCP1258ToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsCP874ToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsCP866ToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsKOI8RToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsKOI8UToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsMacCEToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsMacGreekToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsMacTurkishToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsMacCroatianToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsMacRomanianToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsMacCyrillicToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsMacUkrainianToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsMacIcelandicToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsGEOSTD8ToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsARMSCII8ToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsTCVN5712ToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsVISCIIToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsVPSToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUTF7ToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsMUTF7ToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUTF16BEToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUTF16LEToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUCS4BEToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUCS4LEToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsT61ToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUserDefinedToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToAscii);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToUEscape);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToISO88592);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToISO88593);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToISO88594);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToISO88595);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToISO88596);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToISO88596E);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToISO88596I);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToISO88597);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToISO88598);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToISO88598E);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToISO88598I);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToISO88599);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToISO885910);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToISO885913);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToISO885914);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToISO885915);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToISO885916);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToISOIR111);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToCP1250);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToCP1251);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToCP1253);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToCP1254);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToCP1255);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToCP1256);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToCP1257);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToCP1258);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToCP874);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToCP866);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToKOI8R);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToKOI8U);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToMacCE);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToMacGreek);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToMacTurkish);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToMacCroatian);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToMacRomanian);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToMacCyrillic);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToMacUkrainian);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToMacIcelandic);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToGEOSTD8);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToARMSCII8);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToTCVN5712);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToVISCII);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToVPS);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUEscapeToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToUTF7);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToMUTF7);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToUTF16BE);
@ -541,79 +445,22 @@ NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToUTF16LE);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToUTF16);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToUCS4BE);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToUCS4LE);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToT61);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToUserDefined);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToSymbol);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToZapfDingbat);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsMacArabicToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsMacDevanagariToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsMacFarsiToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsMacGurmukhiToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsMacGujaratiToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsMacHebrewToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToMacArabic);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToMacDevanagari);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToMacFarsi);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToMacGurmukhi);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToMacGujarati);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToMacHebrew);
// ucvibm
NS_GENERIC_FACTORY_CONSTRUCTOR(nsCP850ToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsCP852ToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsCP855ToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsCP857ToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsCP862ToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsCP864ToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsCP864iToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToCP850);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToCP852);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToCP855);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToCP857);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToCP862);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToCP864);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToCP864i);
// ucvja
NS_GENERIC_FACTORY_CONSTRUCTOR(nsShiftJISToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsEUCJPToUnicodeV2);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsISO2022JPToUnicodeV2);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToSJIS);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToEUCJP);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToISO2022JP);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToJISx0201);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToJISx0208);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToJISx0212);
// ucvtw2
NS_GENERIC_FACTORY_CONSTRUCTOR(nsEUCTWToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToEUCTW);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToCNS11643p1);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToCNS11643p2);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToCNS11643p3);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToCNS11643p4);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToCNS11643p5);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToCNS11643p6);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToCNS11643p7);
// ucvtw
NS_GENERIC_FACTORY_CONSTRUCTOR(nsBIG5ToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToBIG5);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToBIG5NoAscii);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsBIG5HKSCSToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToBIG5HKSCS);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToHKSCS);
// ucvko
NS_GENERIC_FACTORY_CONSTRUCTOR(nsEUCKRToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToEUCKR);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToKSC5601);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToX11Johab);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsJohabToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToJohab);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToJohabNoAscii);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsCP949ToUnicode);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsUnicodeToCP949);
NS_GENERIC_FACTORY_CONSTRUCTOR(nsISO2022KRToUnicode);
// ucvcn

View File

@ -36,7 +36,7 @@
*
* ***** END LICENSE BLOCK ***** */
#include "nsUCSupport.h"
#include "nsUCConstructors.h"
#include "nsUnicodeToCP1252.h"
//----------------------------------------------------------------------
@ -51,12 +51,12 @@ static const PRInt16 g_ufShiftTable[] = {
ShiftCell(0,0,0,0,0,0,0,0)
};
//----------------------------------------------------------------------
// Class nsUnicodeToCP1252 [implementation]
nsUnicodeToCP1252::nsUnicodeToCP1252()
: nsTableEncoderSupport((uShiftTable*) &g_ufShiftTable,
(uMappingTable*) &g_ufMappingTable, 1)
NS_METHOD
nsUnicodeToCP1252Constructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult)
{
return CreateTableEncoder((uShiftTable*) &g_ufShiftTable,
(uMappingTable*) &g_ufMappingTable, 1,
aOuter, aIID, aResult);
}

View File

@ -39,6 +39,7 @@
#ifndef nsUnicodeToCP1252_h___
#define nsUnicodeToCP1252_h___
#include "nsISupports.h"
// Class ID for our UnicodeToCP1252 charset converter
// {7B8556AC-EC79-11d2-8AAC-00600811A836}
#define NS_UNICODETOCP1252_CID \
@ -49,24 +50,14 @@
//#define NS_ERROR_UCONV_NOUNICODETOCP1252
// NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_UCONV, 0x31)
//----------------------------------------------------------------------
// Class nsUnicodeToCP1252 [declaration]
/**
* A character set converter from Unicode to CP1252.
*
* @created 20/Apr/1999
* @author Catalin Rotaru [CATA]
*/
class nsUnicodeToCP1252 : public nsTableEncoderSupport
{
public:
/**
* Class constructor.
*/
nsUnicodeToCP1252();
};
NS_METHOD
nsUnicodeToCP1252Constructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult);
#endif /* nsUnicodeToCP1252_h___ */

View File

@ -36,7 +36,7 @@
*
* ***** END LICENSE BLOCK ***** */
#include "nsUCSupport.h"
#include "nsUCConstructors.h"
#include "nsUnicodeToISO88591.h"
//----------------------------------------------------------------------
@ -51,12 +51,12 @@ static const PRInt16 g_ufShiftTable[] = {
ShiftCell(0,0,0,0,0,0,0,0)
};
//----------------------------------------------------------------------
// Class nsUnicodeToISO88591 [implementation]
nsUnicodeToISO88591::nsUnicodeToISO88591()
: nsTableEncoderSupport((uShiftTable*) &g_ufShiftTable,
(uMappingTable*) &g_ufMappingTable, 1)
NS_METHOD
nsUnicodeToISO88591Constructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult)
{
return CreateTableEncoder((uShiftTable*) &g_ufShiftTable,
(uMappingTable*) &g_ufMappingTable, 1,
aOuter, aIID, aResult);
}

View File

@ -39,6 +39,8 @@
#ifndef nsUnicodeToISO88591_h___
#define nsUnicodeToISO88591_h___
#include "nsISupports.h"
// {920307B0-C6E8-11d2-8AA8-00600811A836}
#define NS_UNICODETOISO88591_CID \
{ 0x920307b0, 0xc6e8, 0x11d2, {0x8a, 0xa8, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36}}
@ -49,23 +51,14 @@
// NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_UCONV, 0x31)
//----------------------------------------------------------------------
// Class nsUnicodeToISO88591 [declaration]
/**
* A character set converter from Unicode to ISO88591.
*
* @created 17/Feb/1999
* @author Catalin Rotaru [CATA]
*/
class nsUnicodeToISO88591 : public nsTableEncoderSupport
{
public:
NS_METHOD
nsUnicodeToISO88591Constructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult);
/**
* Class constructor.
*/
nsUnicodeToISO88591();
};
#endif /* nsUnicodeToISO88591_h___ */

View File

@ -36,7 +36,7 @@
*
* ***** END LICENSE BLOCK ***** */
#include "nsUCSupport.h"
#include "nsUCConstructors.h"
#include "nsUnicodeToMacRoman.h"
//----------------------------------------------------------------------
@ -51,12 +51,12 @@ static const PRInt16 g_MacRomanShiftTable[] = {
ShiftCell(0,0,0,0,0,0,0,0)
};
//----------------------------------------------------------------------
// Class nsUnicodeToMacRoman [implementation]
nsUnicodeToMacRoman::nsUnicodeToMacRoman()
: nsTableEncoderSupport((uShiftTable*) &g_MacRomanShiftTable,
(uMappingTable*) &g_MacRomanMappingTable, 1)
NS_METHOD
nsUnicodeToMacRomanConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult)
{
return CreateTableEncoder((uShiftTable*) &g_MacRomanShiftTable,
(uMappingTable*) &g_MacRomanMappingTable, 1,
aOuter, aIID, aResult);
}

View File

@ -39,6 +39,8 @@
#ifndef nsUnicodeToMacRoman_h___
#define nsUnicodeToMacRoman_h___
#include "nsISupports.h"
// Class ID for our UnicodeToMacRoman charset converter
// {7B8556AF-EC79-11d2-8AAC-00600811A836}
#define NS_UNICODETOMACROMAN_CID \
@ -46,24 +48,14 @@
#define NS_UNICODETOMACROMAN_CONTRACTID "@mozilla.org/intl/unicode/encoder;1?charset=x-mac-roman"
//----------------------------------------------------------------------
// Class nsUnicodeToMacRoman [declaration]
/**
* A character set converter from Unicode to MacRoman.
*
* @created 05/Apr/1999
* @author Catalin Rotaru [CATA]
*/
class nsUnicodeToMacRoman : public nsTableEncoderSupport
{
public:
/**
* Class constructor.
*/
nsUnicodeToMacRoman();
};
NS_METHOD
nsUnicodeToMacRomanConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult);
#endif /* nsUnicodeToMacRoman_h___ */

View File

@ -33,6 +33,7 @@
*
*/
#include "nsUCConstructors.h"
#include "nsCP850ToUnicode.h"
//----------------------------------------------------------------------
@ -50,8 +51,11 @@ static const PRInt16 g_utShiftTable[] = {
//----------------------------------------------------------------------
// Class nsCP850ToUnicode [implementation]
nsCP850ToUnicode::nsCP850ToUnicode()
: nsOneByteDecoderSupport((uShiftTable*) &g_utShiftTable,
(uMappingTable*) &g_utMappingTable)
NS_METHOD
nsCP850ToUnicodeConstructor(nsISupports* aOuter, REFNSIID aIID,
void **aResult)
{
return CreateOneByteDecoder((uShiftTable*) &g_utShiftTable,
(uMappingTable*) &g_utMappingTable,
aOuter, aIID, aResult);
}

View File

@ -36,22 +36,13 @@
#ifndef nsCP850ToUnicode_h___
#define nsCP850ToUnicode_h___
#include "nsUCSupport.h"
//----------------------------------------------------------------------
// Class nsCP850ToUnicode [declaration]
#include "nsISupports.h"
/**
* A character set converter from CP850 to Unicode.
*/
class nsCP850ToUnicode : public nsOneByteDecoderSupport
{
public:
NS_METHOD
nsCP850ToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult);
/**
* Class constructor.
*/
nsCP850ToUnicode();
};
#endif /* nsCP850ToUnicode_h___ */

View File

@ -33,6 +33,7 @@
*
*/
#include "nsUCConstructors.h"
#include "nsCP852ToUnicode.h"
//----------------------------------------------------------------------
@ -47,12 +48,12 @@ static const PRInt16 g_utShiftTable[] = {
ShiftCell(0,0,0,0,0,0,0,0)
};
//----------------------------------------------------------------------
// Class nsCP852ToUnicode [implementation]
nsCP852ToUnicode::nsCP852ToUnicode()
: nsOneByteDecoderSupport((uShiftTable*) &g_utShiftTable,
(uMappingTable*) &g_utMappingTable)
NS_METHOD
nsCP852ToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult)
{
return CreateOneByteDecoder((uShiftTable*) &g_utShiftTable,
(uMappingTable*) &g_utMappingTable,
aOuter, aIID, aResult);
}

View File

@ -36,22 +36,14 @@
#ifndef nsCP852ToUnicode_h___
#define nsCP852ToUnicode_h___
#include "nsUCSupport.h"
//----------------------------------------------------------------------
// Class nsCP852ToUnicode [declaration]
#include "nsISupports.h"
/**
* A character set converter from CP852 to Unicode.
*/
class nsCP852ToUnicode : public nsOneByteDecoderSupport
{
public:
NS_METHOD
nsCP852ToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult);
/**
* Class constructor.
*/
nsCP852ToUnicode();
};
#endif /* nsCP852ToUnicode_h___ */

View File

@ -33,6 +33,7 @@
*
*/
#include "nsUCConstructors.h"
#include "nsCP855ToUnicode.h"
//----------------------------------------------------------------------
@ -47,12 +48,13 @@ static const PRInt16 g_utShiftTable[] = {
ShiftCell(0,0,0,0,0,0,0,0)
};
//----------------------------------------------------------------------
// Class nsCP855ToUnicode [implementation]
nsCP855ToUnicode::nsCP855ToUnicode()
: nsOneByteDecoderSupport((uShiftTable*) &g_utShiftTable,
(uMappingTable*) &g_utMappingTable)
NS_METHOD
nsCP855ToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult)
{
return CreateOneByteDecoder((uShiftTable*) &g_utShiftTable,
(uMappingTable*) &g_utMappingTable,
aOuter, aIID, aResult);
}

View File

@ -36,22 +36,14 @@
#ifndef nsCP855ToUnicode_h___
#define nsCP855ToUnicode_h___
#include "nsUCSupport.h"
//----------------------------------------------------------------------
// Class nsCP855ToUnicode [declaration]
#include "nsISupports.h"
/**
* A character set converter from CP855 to Unicode.
*/
class nsCP855ToUnicode : public nsOneByteDecoderSupport
{
public:
NS_METHOD
nsCP855ToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult);
/**
* Class constructor.
*/
nsCP855ToUnicode();
};
#endif /* nsCP855ToUnicode_h___ */

View File

@ -33,6 +33,7 @@
*
*/
#include "nsUCConstructors.h"
#include "nsCP857ToUnicode.h"
//----------------------------------------------------------------------
@ -47,12 +48,12 @@ static const PRInt16 g_utShiftTable[] = {
ShiftCell(0,0,0,0,0,0,0,0)
};
//----------------------------------------------------------------------
// Class nsCP857ToUnicode [implementation]
nsCP857ToUnicode::nsCP857ToUnicode()
: nsOneByteDecoderSupport((uShiftTable*) &g_utShiftTable,
(uMappingTable*) &g_utMappingTable)
NS_METHOD
nsCP857ToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult)
{
return CreateOneByteDecoder((uShiftTable*) &g_utShiftTable,
(uMappingTable*) &g_utMappingTable,
aOuter, aIID, aResult);
}

View File

@ -36,22 +36,15 @@
#ifndef nsCP857ToUnicode_h___
#define nsCP857ToUnicode_h___
#include "nsUCSupport.h"
#include "nsISupports.h"
//----------------------------------------------------------------------
// Class nsCP857ToUnicode [declaration]
/**
* A character set converter from CP857 to Unicode.
*/
class nsCP857ToUnicode : public nsOneByteDecoderSupport
{
public:
NS_METHOD
nsCP857ToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult);
/**
* Class constructor.
*/
nsCP857ToUnicode();
};
#endif /* nsCP857ToUnicode_h___ */

View File

@ -33,6 +33,7 @@
*
*/
#include "nsUCConstructors.h"
#include "nsCP862ToUnicode.h"
//----------------------------------------------------------------------
@ -47,12 +48,12 @@ static const PRInt16 g_utShiftTable[] = {
ShiftCell(0,0,0,0,0,0,0,0)
};
//----------------------------------------------------------------------
// Class nsCP862ToUnicode [implementation]
nsCP862ToUnicode::nsCP862ToUnicode()
: nsOneByteDecoderSupport((uShiftTable*) &g_utShiftTable,
(uMappingTable*) &g_utMappingTable)
NS_METHOD
nsCP862ToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult)
{
return CreateOneByteDecoder((uShiftTable*) &g_utShiftTable,
(uMappingTable*) &g_utMappingTable,
aOuter, aIID, aResult);
}

View File

@ -36,22 +36,15 @@
#ifndef nsCP862ToUnicode_h___
#define nsCP862ToUnicode_h___
#include "nsUCSupport.h"
#include "nsISupports.h"
//----------------------------------------------------------------------
// Class nsCP862ToUnicode [declaration]
/**
* A character set converter from CP862 to Unicode.
*/
class nsCP862ToUnicode : public nsOneByteDecoderSupport
{
public:
NS_METHOD
nsCP862ToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult);
/**
* Class constructor.
*/
nsCP862ToUnicode();
};
#endif /* nsCP862ToUnicode_h___ */

View File

@ -33,6 +33,7 @@
*
*/
#include "nsUCConstructors.h"
#include "nsCP864ToUnicode.h"
//----------------------------------------------------------------------
@ -47,12 +48,12 @@ static const PRInt16 g_utShiftTable[] = {
ShiftCell(0,0,0,0,0,0,0,0)
};
//----------------------------------------------------------------------
// Class nsCP864ToUnicode [implementation]
nsCP864ToUnicode::nsCP864ToUnicode()
: nsOneByteDecoderSupport((uShiftTable*) &g_utShiftTable,
(uMappingTable*) &g_utMappingTable)
NS_METHOD
nsCP864ToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult)
{
return CreateOneByteDecoder((uShiftTable*) &g_utShiftTable,
(uMappingTable*) &g_utMappingTable,
aOuter, aIID, aResult);
}

View File

@ -36,22 +36,15 @@
#ifndef nsCP864ToUnicode_h___
#define nsCP864ToUnicode_h___
#include "nsUCSupport.h"
#include "nsISupports.h"
//----------------------------------------------------------------------
// Class nsCP864ToUnicode [declaration]
/**
* A character set converter from CP864 to Unicode.
*/
class nsCP864ToUnicode : public nsOneByteDecoderSupport
{
public:
NS_METHOD
nsCP864ToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult);
/**
* Class constructor.
*/
nsCP864ToUnicode();
};
#endif /* nsCP864ToUnicode_h___ */

View File

@ -1,83 +1,44 @@
/* -*- 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 "nsUCConstructors.h"
#include "nsCP864iToUnicode.h"
//----------------------------------------------------------------------
// Global functions and data [declaration]
static const PRUint16 g_utMappingTable[] = {
#include "864i.ut"
};
@ -87,20 +48,13 @@ static const PRInt16 g_utShiftTable[] = {
ShiftCell(0,0,0,0,0,0,0,0)
};
//----------------------------------------------------------------------
// Class nsCP864iToUnicode [implementation]
nsCP864iToUnicode::nsCP864iToUnicode()
: nsOneByteDecoderSupport((uShiftTable*) &g_utShiftTable,
(uMappingTable*) &g_utMappingTable)
NS_METHOD
nsCP864iToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult)
{
return CreateOneByteDecoder((uShiftTable*) &g_utShiftTable,
(uMappingTable*) &g_utMappingTable,
aOuter, aIID, aResult);
}

View File

@ -1,116 +1,50 @@
/* -*- 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 "nsUCSupport.h"
//----------------------------------------------------------------------
// Class nsCP864iToUnicode [declaration]
#include "nsISupports.h"
/**
* A character set converter from CP864i to Unicode.
*/
class nsCP864iToUnicode : public nsOneByteDecoderSupport
{
public:
/**
* Class constructor.
*/
nsCP864iToUnicode();
};
NS_METHOD
nsCP864iToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult);
#endif /* nsCP864iToUnicode_h___ */

View File

@ -33,6 +33,7 @@
*
*/
#include "nsUCConstructors.h"
#include "nsUnicodeToCP850.h"
//----------------------------------------------------------------------
@ -47,12 +48,12 @@ static const PRInt16 g_ufShiftTable[] = {
ShiftCell(0,0,0,0,0,0,0,0)
};
//----------------------------------------------------------------------
// Class nsUnicodeToCP850 [implementation]
nsUnicodeToCP850::nsUnicodeToCP850()
: nsTableEncoderSupport((uShiftTable*) &g_ufShiftTable,
(uMappingTable*) &g_ufMappingTable, 1)
NS_METHOD
nsUnicodeToCP850Constructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult)
{
return CreateTableEncoder((uShiftTable*) &g_ufShiftTable,
(uMappingTable*) &g_ufMappingTable, 1,
aOuter, aIID, aResult);
}

View File

@ -36,22 +36,15 @@
#ifndef nsUnicodeToCP850_h___
#define nsUnicodeToCP850_h___
#include "nsUCSupport.h"
#include "nsISupports.h"
//----------------------------------------------------------------------
// Class nsUnicodeToCP850 [declaration]
/**
* A character set converter from Unicode to CP850.
*/
class nsUnicodeToCP850 : public nsTableEncoderSupport
{
public:
NS_METHOD
nsUnicodeToCP850Constructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult);
/**
* Class constructor.
*/
nsUnicodeToCP850();
};
#endif /* nsUnicodeToCP850_h___ */

View File

@ -33,6 +33,7 @@
*
*/
#include "nsUCConstructors.h"
#include "nsUnicodeToCP852.h"
//----------------------------------------------------------------------
@ -47,12 +48,12 @@ static const PRInt16 g_ufShiftTable[] = {
ShiftCell(0,0,0,0,0,0,0,0)
};
//----------------------------------------------------------------------
// Class nsUnicodeToCP852 [implementation]
nsUnicodeToCP852::nsUnicodeToCP852()
: nsTableEncoderSupport((uShiftTable*) &g_ufShiftTable,
(uMappingTable*) &g_ufMappingTable, 1)
NS_METHOD
nsUnicodeToCP852Constructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult)
{
return CreateTableEncoder((uShiftTable*) &g_ufShiftTable,
(uMappingTable*) &g_ufMappingTable, 1,
aOuter, aIID, aResult);
}

View File

@ -36,23 +36,13 @@
#ifndef nsUnicodeToCP852_h___
#define nsUnicodeToCP852_h___
#include "nsUCSupport.h"
//----------------------------------------------------------------------
// Class nsUnicodeToCP852 [declaration]
#include "nsISupports.h"
/**
* A character set converter from Unicode to CP852.
*/
class nsUnicodeToCP852 : public nsTableEncoderSupport
{
public:
/**
* Class constructor.
*/
nsUnicodeToCP852();
};
NS_METHOD
nsUnicodeToCP852Constructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult);
#endif /* nsUnicodeToCP852_h___ */

View File

@ -33,6 +33,7 @@
*
*/
#include "nsUCConstructors.h"
#include "nsUnicodeToCP855.h"
//----------------------------------------------------------------------
@ -47,12 +48,12 @@ static const PRInt16 g_ufShiftTable[] = {
ShiftCell(0,0,0,0,0,0,0,0)
};
//----------------------------------------------------------------------
// Class nsUnicodeToCP855 [implementation]
nsUnicodeToCP855::nsUnicodeToCP855()
: nsTableEncoderSupport((uShiftTable*) &g_ufShiftTable,
(uMappingTable*) &g_ufMappingTable, 1)
NS_METHOD
nsUnicodeToCP855Constructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult)
{
return CreateTableEncoder((uShiftTable*) &g_ufShiftTable,
(uMappingTable*) &g_ufMappingTable, 1,
aOuter, aIID, aResult);
}

View File

@ -36,23 +36,14 @@
#ifndef nsUnicodeToCP855_h___
#define nsUnicodeToCP855_h___
#include "nsUCSupport.h"
#include "nsISupports.h"
//----------------------------------------------------------------------
// Class nsUnicodeToCP855 [declaration]
/**
* A character set converter from Unicode to CP855.
*/
class nsUnicodeToCP855 : public nsTableEncoderSupport
{
public:
/**
* Class constructor.
*/
nsUnicodeToCP855();
};
NS_METHOD
nsUnicodeToCP855Constructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult);
#endif /* nsUnicodeToCP855_h___ */

View File

@ -33,6 +33,7 @@
*
*/
#include "nsUCConstructors.h"
#include "nsUnicodeToCP857.h"
//----------------------------------------------------------------------
@ -47,12 +48,12 @@ static const PRInt16 g_ufShiftTable[] = {
ShiftCell(0,0,0,0,0,0,0,0)
};
//----------------------------------------------------------------------
// Class nsUnicodeToCP857 [implementation]
nsUnicodeToCP857::nsUnicodeToCP857()
: nsTableEncoderSupport((uShiftTable*) &g_ufShiftTable,
(uMappingTable*) &g_ufMappingTable, 1)
NS_METHOD
nsUnicodeToCP857Constructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult)
{
return CreateTableEncoder((uShiftTable*) &g_ufShiftTable,
(uMappingTable*) &g_ufMappingTable, 1,
aOuter, aIID, aResult);
}

View File

@ -36,23 +36,13 @@
#ifndef nsUnicodeToCP857_h___
#define nsUnicodeToCP857_h___
#include "nsUCSupport.h"
//----------------------------------------------------------------------
// Class nsUnicodeToCP857 [declaration]
#include "nsISupports.h"
/**
* A character set converter from Unicode to CP857.
*/
class nsUnicodeToCP857 : public nsTableEncoderSupport
{
public:
/**
* Class constructor.
*/
nsUnicodeToCP857();
};
NS_METHOD
nsUnicodeToCP857Constructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult);
#endif /* nsUnicodeToCP857_h___ */

View File

@ -33,6 +33,7 @@
*
*/
#include "nsUCConstructors.h"
#include "nsUnicodeToCP862.h"
//----------------------------------------------------------------------
@ -47,12 +48,12 @@ static const PRInt16 g_ufShiftTable[] = {
ShiftCell(0,0,0,0,0,0,0,0)
};
//----------------------------------------------------------------------
// Class nsUnicodeToCP862 [implementation]
nsUnicodeToCP862::nsUnicodeToCP862()
: nsTableEncoderSupport((uShiftTable*) &g_ufShiftTable,
(uMappingTable*) &g_ufMappingTable, 1)
NS_METHOD
nsUnicodeToCP862Constructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult)
{
return CreateTableEncoder((uShiftTable*) &g_ufShiftTable,
(uMappingTable*) &g_ufMappingTable, 1,
aOuter, aIID, aResult);
}

View File

@ -36,23 +36,13 @@
#ifndef nsUnicodeToCP862_h___
#define nsUnicodeToCP862_h___
#include "nsUCSupport.h"
//----------------------------------------------------------------------
// Class nsUnicodeToCP862 [declaration]
#include "nsISupports.h"
/**
* A character set converter from Unicode to CP862.
*/
class nsUnicodeToCP862 : public nsTableEncoderSupport
{
public:
/**
* Class constructor.
*/
nsUnicodeToCP862();
};
NS_METHOD
nsUnicodeToCP862Constructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult);
#endif /* nsUnicodeToCP862_h___ */

View File

@ -33,6 +33,7 @@
*
*/
#include "nsUCConstructors.h"
#include "nsUnicodeToCP864.h"
//----------------------------------------------------------------------
@ -47,12 +48,12 @@ static const PRInt16 g_ufShiftTable[] = {
ShiftCell(0,0,0,0,0,0,0,0)
};
//----------------------------------------------------------------------
// Class nsUnicodeToCP864 [implementation]
nsUnicodeToCP864::nsUnicodeToCP864()
: nsTableEncoderSupport((uShiftTable*) &g_ufShiftTable,
(uMappingTable*) &g_ufMappingTable, 1)
NS_METHOD
nsUnicodeToCP864Constructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult)
{
return CreateTableEncoder((uShiftTable*) &g_ufShiftTable,
(uMappingTable*) &g_ufMappingTable, 1,
aOuter, aIID, aResult);
}

View File

@ -36,23 +36,13 @@
#ifndef nsUnicodeToCP864_h___
#define nsUnicodeToCP864_h___
#include "nsUCSupport.h"
//----------------------------------------------------------------------
// Class nsUnicodeToCP864 [declaration]
#include "nsISupports.h"
/**
* A character set converter from Unicode to CP864.
*/
class nsUnicodeToCP864 : public nsTableEncoderSupport
{
public:
/**
* Class constructor.
*/
nsUnicodeToCP864();
};
NS_METHOD
nsUnicodeToCP864Constructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult);
#endif /* nsUnicodeToCP864_h___ */

View File

@ -33,6 +33,7 @@
*
*/
#include "nsUCConstructors.h"
#include "nsUnicodeToCP864i.h"
//----------------------------------------------------------------------
@ -46,13 +47,13 @@ static const PRInt16 g_ufShiftTable[] = {
ShiftCell(0,0,0,0,0,0,0,0)
};
//----------------------------------------------------------------------
// Class nsUnicodeToCP864i [implementation]
nsUnicodeToCP864i::nsUnicodeToCP864i()
: nsTableEncoderSupport((uShiftTable*) &g_ufShiftTable,
(uMappingTable*) &g_ufMappingTable, 1)
NS_METHOD
nsUnicodeToCP864iConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult)
{
return CreateTableEncoder((uShiftTable*) &g_ufShiftTable,
(uMappingTable*) &g_ufMappingTable, 1,
aOuter, aIID, aResult);
}

View File

@ -36,23 +36,13 @@
#ifndef nsUnicodeToCP864i_h___
#define nsUnicodeToCP864i_h___
#include "nsUCSupport.h"
//----------------------------------------------------------------------
// Class nsUnicodeToCP864i [declaration]
#include "nsISupports.h"
/**
* A character set converter from Unicode to CP864i.
*/
class nsUnicodeToCP864i : public nsTableEncoderSupport
{
public:
/**
* Class constructor.
*/
nsUnicodeToCP864i();
};
NS_METHOD
nsUnicodeToCP864iConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult);
#endif /* nsUnicodeToCP864i_h___ */

View File

@ -38,6 +38,7 @@
#include "nsUnicodeToEUCJP.h"
#include "nsUCVJADll.h"
#include "nsUCConstructors.h"
//----------------------------------------------------------------------
// Global functions and data [declaration]
@ -74,14 +75,14 @@ static const PRUint16 *gMappingTables[SIZE_OF_TABLES] = {
g_uf0212Mapping
};
//----------------------------------------------------------------------
// Class nsUnicodeToEUCJP [implementation]
nsUnicodeToEUCJP::nsUnicodeToEUCJP()
: nsMultiTableEncoderSupport(SIZE_OF_TABLES,
(uShiftTable**) gShiftTables,
(uMappingTable**) gMappingTables,
3 /* max length = src * 3 */)
NS_METHOD
nsUnicodeToEUCJPConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult)
{
return CreateMultiTableEncoder(SIZE_OF_TABLES,
(uShiftTable**) gShiftTables,
(uMappingTable**) gMappingTables,
3 /* max length = src * 3 */,
aOuter, aIID, aResult);
}

View File

@ -39,10 +39,7 @@
#ifndef nsUnicodeToEUCJP_h___
#define nsUnicodeToEUCJP_h___
#include "nsUCSupport.h"
//----------------------------------------------------------------------
// Class nsUnicodeToEUCJP [declaration]
#include "nsISupports.h"
/**
* A character set converter from Unicode to EUCJP.
@ -50,17 +47,8 @@
* @created 17/Feb/1999
* @author Catalin Rotaru [CATA]
*/
class nsUnicodeToEUCJP : public nsMultiTableEncoderSupport
{
public:
/**
* Class constructor.
*/
nsUnicodeToEUCJP();
protected:
};
NS_METHOD
nsUnicodeToEUCJPConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult);
#endif /* nsUnicodeToEUCJP_h___ */

View File

@ -38,6 +38,7 @@
#include "nsUnicodeToJISx0201.h"
#include "nsUCVJADll.h"
#include "nsUCConstructors.h"
// Shift Table
static PRInt16 g0201ShiftTable[] = {
@ -45,12 +46,12 @@ static PRInt16 g0201ShiftTable[] = {
ShiftCell(0,0,0,0,0,0,0,0)
};
//----------------------------------------------------------------------
// Class nsUnicodeToJISx0201 [implementation]
nsUnicodeToJISx0201::nsUnicodeToJISx0201()
: nsTableEncoderSupport((uShiftTable*) g0201ShiftTable,
(uMappingTable*) g_uf0201Mapping, 1)
NS_METHOD
nsUnicodeToJISx0201Constructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult)
{
return CreateTableEncoder((uShiftTable*) g0201ShiftTable,
(uMappingTable*) g_uf0201Mapping, 1,
aOuter, aIID, aResult);
}

View File

@ -39,10 +39,7 @@
#ifndef nsUnicodeToJISx0201_h___
#define nsUnicodeToJISx0201_h___
#include "nsUCSupport.h"
//----------------------------------------------------------------------
// Class nsUnicodeToJISx0201 [declaration]
#include "nsISupports.h"
/**
* A character set converter from Unicode to JISx0201.
@ -50,17 +47,8 @@
* @created 17/Feb/1999
* @author Catalin Rotaru [CATA]
*/
class nsUnicodeToJISx0201 : public nsTableEncoderSupport
{
public:
/**
* Class constructor.
*/
nsUnicodeToJISx0201();
protected:
};
NS_METHOD
nsUnicodeToJISx0201Constructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult);
#endif /* nsUnicodeToJISx0201_h___ */

View File

@ -38,6 +38,7 @@
#include "nsUnicodeToJISx0208.h"
#include "nsUCVJADll.h"
#include "nsUCConstructors.h"
//----------------------------------------------------------------------
// Global functions and data [declaration]
@ -46,13 +47,14 @@ static PRInt16 g0208ShiftTable[] = {
0, u2BytesCharset,
ShiftCell(0,0,0,0,0,0,0,0)
};
//----------------------------------------------------------------------
// Class nsUnicodeToJISx0208 [implementation]
nsUnicodeToJISx0208::nsUnicodeToJISx0208()
: nsTableEncoderSupport( (uShiftTable*) g0208ShiftTable,
(uMappingTable*) g_uf0208Mapping,
2 /* max length = src * 2 */)
NS_METHOD
nsUnicodeToJISx0208Constructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult)
{
return CreateTableEncoder((uShiftTable*) g0208ShiftTable,
(uMappingTable*) g_uf0208Mapping,
2 /* max length = src * 2 */,
aOuter, aIID, aResult);
}

View File

@ -39,10 +39,7 @@
#ifndef nsUnicodeToJISx0208_h___
#define nsUnicodeToJISx0208_h___
#include "nsUCSupport.h"
//----------------------------------------------------------------------
// Class nsUnicodeToJISx0208 [declaration]
#include "nsISupports.h"
/**
* A character set converter from Unicode to JISx0208.
@ -50,17 +47,8 @@
* @created 17/Feb/1999
* @author Catalin Rotaru [CATA]
*/
class nsUnicodeToJISx0208 : public nsTableEncoderSupport
{
public:
/**
* Class constructor.
*/
nsUnicodeToJISx0208();
protected:
};
NS_METHOD
nsUnicodeToJISx0208Constructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult);
#endif /* nsUnicodeToJISx0208_h___ */

View File

@ -38,6 +38,7 @@
#include "nsUnicodeToJISx0212.h"
#include "nsUCVJADll.h"
#include "nsUCConstructors.h"
//----------------------------------------------------------------------
// Global functions and data [declaration]
@ -46,13 +47,14 @@ static PRInt16 g0212ShiftTable[] = {
0, u2BytesCharset,
ShiftCell(0,0,0,0,0,0,0,0)
};
//----------------------------------------------------------------------
// Class nsUnicodeToJISx0212 [implementation]
nsUnicodeToJISx0212::nsUnicodeToJISx0212()
: nsTableEncoderSupport((uShiftTable*) g0212ShiftTable,
(uMappingTable*) g_uf0212Mapping,
2 /* max len = src * 2 */)
NS_METHOD
nsUnicodeToJISx0212Constructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult)
{
return CreateTableEncoder((uShiftTable*) g0212ShiftTable,
(uMappingTable*) g_uf0212Mapping,
2 /* max len = src * 2 */,
aOuter, aIID, aResult);
}

View File

@ -39,10 +39,7 @@
#ifndef nsUnicodeToJISx0212_h___
#define nsUnicodeToJISx0212_h___
#include "nsUCSupport.h"
//----------------------------------------------------------------------
// Class nsUnicodeToJISx0212 [declaration]
#include "nsISupports.h"
/**
* A character set converter from Unicode to JISx0212.
@ -50,17 +47,8 @@
* @created 17/Feb/1999
* @author Catalin Rotaru [CATA]
*/
class nsUnicodeToJISx0212 : public nsTableEncoderSupport
{
public:
/**
* Class constructor.
*/
nsUnicodeToJISx0212();
protected:
};
NS_METHOD
nsUnicodeToJISx0212Constructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult);
#endif /* nsUnicodeToJISx0212_h___ */

View File

@ -36,6 +36,7 @@
*
* ***** END LICENSE BLOCK ***** */
#include "nsUCConstructors.h"
#include "nsUnicodeToSJIS.h"
//----------------------------------------------------------------------
@ -53,13 +54,13 @@ static const PRInt16 g_SJISShiftTable[] = {
ShiftCell(u2BytesChar, 2, 0xE0, 0xFC, 0xE0, 0x40, 0xFC, 0xFC)
};
//----------------------------------------------------------------------
// Class nsUnicodeToSJIS [implementation]
nsUnicodeToSJIS::nsUnicodeToSJIS()
: nsTableEncoderSupport((uShiftTable*) &g_SJISShiftTable,
(uMappingTable*) &g_SJISMappingTable,
2 /* max length = src * 2 */)
NS_METHOD
nsUnicodeToSJISConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult)
{
return CreateTableEncoder((uShiftTable*) &g_SJISShiftTable,
(uMappingTable*) &g_SJISMappingTable,
2 /* max length = src * 2 */,
aOuter, aIID, aResult);
}

View File

@ -39,10 +39,7 @@
#ifndef nsUnicodeToSJIS_h___
#define nsUnicodeToSJIS_h___
#include "nsUCSupport.h"
//----------------------------------------------------------------------
// Class nsUnicodeToSJIS [declaration]
#include "nsISupports.h"
/**
* A character set converter from Unicode to SJIS.
@ -50,17 +47,8 @@
* @created 17/Feb/1999
* @author Catalin Rotaru [CATA]
*/
class nsUnicodeToSJIS : public nsTableEncoderSupport
{
public:
/**
* Class constructor.
*/
nsUnicodeToSJIS();
protected:
};
NS_METHOD
nsUnicodeToSJISConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult);
#endif /* nsUnicodeToSJIS_h___ */

View File

@ -38,6 +38,7 @@
#include "nsCP949ToUnicode.h"
#include "nsUCvKODll.h"
#include "nsUCConstructors.h"
//----------------------------------------------------------------------
// Global functions and data [declaration]
@ -105,14 +106,14 @@ static const PRUint16 *g_CP949MappingTableSet [] ={
};
//----------------------------------------------------------------------
// Class nsCP949ToUnicode [implementation]
nsCP949ToUnicode::nsCP949ToUnicode()
: nsMultiTableDecoderSupport(sizeof(g_CP949Ranges) / sizeof(g_CP949Ranges[0]),
(uRange*) &g_CP949Ranges,
(uShiftTable**) &g_CP949ShiftTableSet,
(uMappingTable**) &g_CP949MappingTableSet, 1)
NS_METHOD
nsCP949ToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult)
{
return CreateMultiTableDecoder(sizeof(g_CP949Ranges) / sizeof(g_CP949Ranges[0]),
(uRange*) &g_CP949Ranges,
(uShiftTable**) &g_CP949ShiftTableSet,
(uMappingTable**) &g_CP949MappingTableSet, 1,
aOuter, aIID, aResult);
}

View File

@ -39,10 +39,7 @@
#ifndef nsCP949ToUnicode_h___
#define nsCP949ToUnicode_h___
#include "nsUCSupport.h"
//----------------------------------------------------------------------
// Class nsCP949ToUnicode [declaration]
#include "nsISupports.h"
/**
* A character set converter from CP949 to Unicode.
@ -50,16 +47,8 @@
* @created 06/Apr/1999
* @author Catalin Rotaru [CATA]
*/
class nsCP949ToUnicode : public nsMultiTableDecoderSupport
{
public:
/**
* Class constructor.
*/
nsCP949ToUnicode();
protected:
};
NS_METHOD
nsCP949ToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult);
#endif /* nsCP949ToUnicode_h___ */

View File

@ -38,11 +38,11 @@
#include "nsEUCKRToUnicode.h"
#include "nsUCvKODll.h"
#include "nsUCConstructors.h"
//----------------------------------------------------------------------
// Class nsEUCKRToUnicode [implementation]
nsEUCKRToUnicode::nsEUCKRToUnicode()
: nsCP949ToUnicode()
NS_METHOD
nsEUCKRToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult)
{
return nsCP949ToUnicodeConstructor(aOuter, aIID, aResult);
}

View File

@ -39,12 +39,8 @@
#ifndef nsEUCKRToUnicode_h___
#define nsEUCKRToUnicode_h___
#include "nsUCSupport.h"
#include "nsCP949ToUnicode.h"
//----------------------------------------------------------------------
// Class nsEUCKRToUnicode [declaration]
/**
* A character set converter from EUCKR to Unicode.
*
@ -52,14 +48,8 @@
* @author Catalin Rotaru [CATA]
*/
// Just make it an alias to CP949 decoder. bug 131388
class nsEUCKRToUnicode : public nsCP949ToUnicode
{
public:
/**
* Class constructor.
*/
nsEUCKRToUnicode();
};
NS_METHOD
nsEUCKRToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult);
#endif /* nsEUCKRToUnicode_h___ */

View File

@ -38,6 +38,7 @@
#include "nsJohabToUnicode.h"
#include "nsUCvKODll.h"
#include "nsUCConstructors.h"
//----------------------------------------------------------------------
// Global functions and data [declaration]
@ -93,11 +94,14 @@ static const PRUint16 *g_JOHABMappingTableSet [] ={
//----------------------------------------------------------------------
// Class nsJohabToUnicode [implementation]
nsJohabToUnicode::nsJohabToUnicode()
: nsMultiTableDecoderSupport(sizeof(g_JOHABRanges) / sizeof(g_JOHABRanges[0]),
(uRange*) &g_JOHABRanges,
(uShiftTable**) &g_JOHABShiftTableSet,
(uMappingTable**) &g_JOHABMappingTableSet, 1)
NS_METHOD
nsJohabToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult)
{
return CreateMultiTableDecoder(sizeof(g_JOHABRanges) / sizeof(g_JOHABRanges[0]),
(uRange*) &g_JOHABRanges,
(uShiftTable**) &g_JOHABShiftTableSet,
(uMappingTable**) &g_JOHABMappingTableSet, 1,
aOuter, aIID, aResult);
}

View File

@ -39,10 +39,7 @@
#ifndef nsJohabToUnicode_h___
#define nsJohabToUnicode_h___
#include "nsUCSupport.h"
//----------------------------------------------------------------------
// Class nsJohabToUnicode [declaration]
#include "nsISupports.h"
/**
* A character set converter from Johab to Unicode.
@ -50,16 +47,8 @@
* @created 06/Apr/1999
* @author Catalin Rotaru [CATA]
*/
class nsJohabToUnicode : public nsMultiTableDecoderSupport
{
public:
/**
* Class constructor.
*/
nsJohabToUnicode();
protected:
};
NS_METHOD
nsJohabToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult);
#endif /* nsJohabToUnicode_h___ */

View File

@ -39,6 +39,7 @@
#include "nsUnicodeToCP949.h"
#include "nsUCvKODll.h"
#include "nsUCConstructors.h"
//----------------------------------------------------------------------
// Global functions and data [declaration]
@ -77,14 +78,14 @@ static const PRUint16 *g_CP949ShiftTable[3] = {
gCP949ShiftTable
};
//----------------------------------------------------------------------
// Class nsUnicodeToEUCKR [implementation]
nsUnicodeToCP949::nsUnicodeToCP949()
: nsMultiTableEncoderSupport(3,
(uShiftTable**) g_CP949ShiftTable,
(uMappingTable**) g_CP949MappingTable,
2 /* max len = src * 2 */)
NS_METHOD
nsUnicodeToCP949Constructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult)
{
return CreateMultiTableEncoder(3,
(uShiftTable**) g_CP949ShiftTable,
(uMappingTable**) g_CP949MappingTable,
2 /* max len = src * 2 */,
aOuter, aIID, aResult);
}

View File

@ -39,10 +39,7 @@
#ifndef nsUnicodeToCP949_h___
#define nsUnicodeToCP949_h___
#include "nsUCSupport.h"
//----------------------------------------------------------------------
// Class nsUnicodeToCP949 [declaration]
#include "nsISupports.h"
/**
* A character set converter from Unicode to CP949.
@ -50,16 +47,8 @@
* @created 14/May/2001 (patterned after Unicode to EUCKR converter
* @author Jungshik Shin
*/
class nsUnicodeToCP949 : public nsMultiTableEncoderSupport
{
public:
/**
* Class constructor.
*/
nsUnicodeToCP949();
protected:
};
NS_METHOD
nsUnicodeToCP949Constructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult);
#endif /* nsUnicodeToCP949_h___ */

View File

@ -38,6 +38,7 @@
#include "nsUnicodeToEUCKR.h"
#include "nsUCvKODll.h"
#include "nsUCConstructors.h"
//----------------------------------------------------------------------
// Global functions and data [declaration]
@ -69,15 +70,15 @@ static const PRUint16 *g_EUCKRShiftTable[3] = {
gDecomposedHangulShiftTable
};
//----------------------------------------------------------------------
// Class nsUnicodeToEUCKR [implementation]
nsUnicodeToEUCKR::nsUnicodeToEUCKR()
: nsMultiTableEncoderSupport(3,
(uShiftTable**) g_EUCKRShiftTable,
(uMappingTable**) g_EUCKRMappingTable,
// change from 2 to 8 because of composed jamo
8 /* max length = src * 8 */)
NS_METHOD
nsUnicodeToEUCKRConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult)
{
return CreateMultiTableEncoder(3,
(uShiftTable**) g_EUCKRShiftTable,
(uMappingTable**) g_EUCKRMappingTable,
// change from 2 to 8 because of composed jamo
8 /* max length = src * 8 */,
aOuter, aIID, aResult);
}

View File

@ -39,10 +39,7 @@
#ifndef nsUnicodeToEUCKR_h___
#define nsUnicodeToEUCKR_h___
#include "nsUCSupport.h"
//----------------------------------------------------------------------
// Class nsUnicodeToEUCKR [declaration]
#include "nsISupports.h"
/**
* A character set converter from Unicode to EUCKR.
@ -50,16 +47,8 @@
* @created 06/Apr/1999
* @author Catalin Rotaru [CATA]
*/
class nsUnicodeToEUCKR : public nsMultiTableEncoderSupport
{
public:
/**
* Class constructor.
*/
nsUnicodeToEUCKR();
protected:
};
NS_METHOD
nsUnicodeToEUCKRConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult);
#endif /* nsUnicodeToEUCKR_h___ */

View File

@ -38,6 +38,7 @@
#include "nsUnicodeToJohab.h"
#include "nsUCvKODll.h"
#include "nsUCConstructors.h"
//----------------------------------------------------------------------
// Global functions and data [declaration]
@ -78,10 +79,13 @@ static const PRUint16 *g_JohabShiftTable[4] = {
//----------------------------------------------------------------------
// Class nsUnicodeToJohab [implementation]
nsUnicodeToJohab::nsUnicodeToJohab()
: nsMultiTableEncoderSupport(sizeof(g_JohabShiftTable) / sizeof(g_JohabShiftTable[0]),
(uShiftTable**) g_JohabShiftTable,
(uMappingTable**) g_JohabMappingTable,
2 /* max length = src * 2*/)
{
NS_METHOD
nsUnicodeToJohabConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult) {
return CreateMultiTableEncoder(sizeof(g_JohabShiftTable) / sizeof(g_JohabShiftTable[0]),
(uShiftTable**) g_JohabShiftTable,
(uMappingTable**) g_JohabMappingTable,
2 /* max length = src * 2*/,
aOuter, aIID, aResult);
}

View File

@ -39,24 +39,14 @@
#ifndef nsUnicodeToJohab_h___
#define nsUnicodeToJohab_h___
#include "nsUCSupport.h"
//----------------------------------------------------------------------
// Class nsUnicodeToJohab [declaration]
#include "nsISupports.h"
/**
* A character set converter from Unicode to Johab.
*
*/
class nsUnicodeToJohab : public nsMultiTableEncoderSupport
{
public:
/**
* Class constructor.
*/
nsUnicodeToJohab();
};
NS_METHOD
nsUnicodeToJohabConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult);
#endif /* nsUnicodeToJohab_h___ */

View File

@ -38,6 +38,7 @@
#include "nsUnicodeToJohabNoAscii.h"
#include "nsUCvKODll.h"
#include "nsUCConstructors.h"
//----------------------------------------------------------------------
// Global functions and data [declaration]
@ -70,13 +71,13 @@ static const PRUint16 *g_JohabShiftTable[3] = {
};
//----------------------------------------------------------------------
// Class nsUnicodeToJohabNoAscii [implementation]
nsUnicodeToJohabNoAscii::nsUnicodeToJohabNoAscii()
: nsMultiTableEncoderSupport(sizeof(g_JohabShiftTable) / sizeof(g_JohabShiftTable[0]),
(uShiftTable**) g_JohabShiftTable,
(uMappingTable**) g_JohabMappingTable,
2 /* max length = src * 2 */)
NS_METHOD
nsUnicodeToJohabNoAsciiConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult)
{
return CreateMultiTableEncoder(sizeof(g_JohabShiftTable) / sizeof(g_JohabShiftTable[0]),
(uShiftTable**) g_JohabShiftTable,
(uMappingTable**) g_JohabMappingTable,
2 /* max length = src * 2 */,
aOuter, aIID, aResult);
}

View File

@ -39,24 +39,14 @@
#ifndef nsUnicodeToJohabNoAscii_h___
#define nsUnicodeToJohabNoAscii_h___
#include "nsUCSupport.h"
//----------------------------------------------------------------------
// Class nsUnicodeToJohabNoAscii [declaration]
#include "nsISupports.h"
/**
* A character set converter from Unicode to Johab Sun Font encoding
* ksc5601_1992-3 (Johab without US-ASCII)
*/
class nsUnicodeToJohabNoAscii : public nsMultiTableEncoderSupport
{
public:
/**
* Class constructor.
*/
nsUnicodeToJohabNoAscii();
};
NS_METHOD
nsUnicodeToJohabNoAsciiConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult);
#endif /* nsUnicodeToJohabNoAscii_h___ */

View File

@ -38,6 +38,7 @@
#include "nsUnicodeToKSC5601.h"
#include "nsUCvKODll.h"
#include "nsUCConstructors.h"
//----------------------------------------------------------------------
// Global functions and data [declaration]
@ -62,13 +63,13 @@ static const PRUint16 *g_ShiftTable[3] = {
gDecomposedHangulShiftTable
};
//----------------------------------------------------------------------
// Class nsUnicodeToKSC5601 [implementation]
nsUnicodeToKSC5601::nsUnicodeToKSC5601()
: nsMultiTableEncoderSupport(2, (uShiftTable**) g_ShiftTable,
(uMappingTable**) g_MappingTable,
8 /* max length = src * 8 */)
NS_METHOD
nsUnicodeToKSC5601Constructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult)
{
return CreateMultiTableEncoder(2, (uShiftTable**) g_ShiftTable,
(uMappingTable**) g_MappingTable,
8 /* max length = src * 8 */,
aOuter, aIID, aResult);
}

View File

@ -39,10 +39,7 @@
#ifndef nsUnicodeToKSC5601_h___
#define nsUnicodeToKSC5601_h___
#include "nsUCSupport.h"
//----------------------------------------------------------------------
// Class nsUnicodeToKSC5601 [declaration]
#include "nsISupports.h"
/**
* A character set converter from Unicode to KSC5601.
@ -50,17 +47,7 @@
* @created 06/Apr/1999
* @author Catalin Rotaru [CATA]
*/
class nsUnicodeToKSC5601 : public nsMultiTableEncoderSupport
{
public:
/**
* Class constructor.
*/
nsUnicodeToKSC5601();
protected:
};
NS_METHOD
nsUnicodeToKSC5601Constructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult);
#endif /* nsUnicodeToKSC5601_h___ */

View File

@ -36,6 +36,7 @@
*
* ***** END LICENSE BLOCK ***** */
#include "nsUCConstructors.h"
#include "nsARMSCII8ToUnicode.h"
//----------------------------------------------------------------------
@ -50,12 +51,12 @@ static const PRInt16 g_utShiftTable[] = {
ShiftCell(0,0,0,0,0,0,0,0)
};
//----------------------------------------------------------------------
// Class nsARMSCII8ToUnicode [implementation]
nsARMSCII8ToUnicode::nsARMSCII8ToUnicode()
: nsOneByteDecoderSupport((uShiftTable*) &g_utShiftTable,
(uMappingTable*) &g_utMappingTable)
NS_METHOD
nsARMSCII8ToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult)
{
return CreateOneByteDecoder((uShiftTable*) &g_utShiftTable,
(uMappingTable*) &g_utMappingTable,
aOuter, aIID, aResult);
}

View File

@ -39,10 +39,7 @@
#ifndef nsARMSCII8ToUnicode_h___
#define nsARMSCII8ToUnicode_h___
#include "nsUCSupport.h"
//----------------------------------------------------------------------
// Class nsARMSCII8ToUnicode [declaration]
#include "nsISupports.h"
/**
* A character set converter from ARMSCII8 to Unicode.
@ -50,15 +47,8 @@
* @created 4/26/1999
* @author Frank Tang [ftang]
*/
class nsARMSCII8ToUnicode : public nsOneByteDecoderSupport
{
public:
/**
* Class constructor.
*/
nsARMSCII8ToUnicode();
};
NS_METHOD
nsARMSCII8ToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult);
#endif /* nsARMSCII8ToUnicode_h___ */

View File

@ -36,6 +36,7 @@
*
* ***** END LICENSE BLOCK ***** */
#include "nsUCConstructors.h"
#include "nsAsciiToUnicode.h"
//----------------------------------------------------------------------
@ -50,11 +51,11 @@ static const PRInt16 g_utShiftTable[] = {
ShiftCell(0,0,0,0,0,0,0,0)
};
//----------------------------------------------------------------------
// Class nsAsciiToUnicode [implementation]
nsAsciiToUnicode::nsAsciiToUnicode()
: nsOneByteDecoderSupport((uShiftTable*) &g_utShiftTable,
(uMappingTable*) &g_utMappingTable)
NS_METHOD
nsAsciiToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult)
{
return CreateOneByteDecoder((uShiftTable*) &g_utShiftTable,
(uMappingTable*) &g_utMappingTable,
aOuter, aIID, aResult);
}

View File

@ -39,10 +39,7 @@
#ifndef nsAsciiToUnicode_h___
#define nsAsciiToUnicode_h___
#include "nsUCSupport.h"
//----------------------------------------------------------------------
// Class nsAsciiToUnicode [declaration]
#include "nsISupports.h"
/**
* A character set converter from Ascii to Unicode.
@ -50,15 +47,8 @@
* @created 23/Nov/1998
* @author Catalin Rotaru [CATA]
*/
class nsAsciiToUnicode : public nsOneByteDecoderSupport
{
public:
/**
* Class constructor.
*/
nsAsciiToUnicode();
};
NS_METHOD
nsAsciiToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult);
#endif /* nsAsciiToUnicode_h___ */

View File

@ -36,6 +36,7 @@
*
* ***** END LICENSE BLOCK ***** */
#include "nsUCConstructors.h"
#include "nsCP1250ToUnicode.h"
//----------------------------------------------------------------------
@ -50,12 +51,12 @@ static const PRInt16 g_utShiftTable[] = {
ShiftCell(0,0,0,0,0,0,0,0)
};
//----------------------------------------------------------------------
// Class nsCP1250ToUnicode [implementation]
nsCP1250ToUnicode::nsCP1250ToUnicode()
: nsOneByteDecoderSupport((uShiftTable*) &g_utShiftTable,
(uMappingTable*) &g_utMappingTable)
NS_METHOD
nsCP1250ToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult)
{
return CreateOneByteDecoder((uShiftTable*) &g_utShiftTable,
(uMappingTable*) &g_utMappingTable,
aOuter, aIID, aResult);
}

View File

@ -39,10 +39,7 @@
#ifndef nsCP1250ToUnicode_h___
#define nsCP1250ToUnicode_h___
#include "nsUCSupport.h"
//----------------------------------------------------------------------
// Class nsCP1250ToUnicode [declaration]
#include "nsISupports.h"
/**
* A character set converter from CP1250 to Unicode.
@ -50,16 +47,7 @@
* @created 20/Apr/1999
* @author Catalin Rotaru [CATA]
*/
class nsCP1250ToUnicode : public nsOneByteDecoderSupport
{
public:
/**
* Class constructor.
*/
nsCP1250ToUnicode();
};
NS_METHOD
nsCP1250ToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult);
#endif /* nsCP1250ToUnicode_h___ */

View File

@ -36,6 +36,7 @@
*
* ***** END LICENSE BLOCK ***** */
#include "nsUCConstructors.h"
#include "nsCP1251ToUnicode.h"
//----------------------------------------------------------------------
@ -50,11 +51,11 @@ static const PRInt16 g_utShiftTable[] = {
ShiftCell(0,0,0,0,0,0,0,0)
};
//----------------------------------------------------------------------
// Class nsCP1251ToUnicode [implementation]
nsCP1251ToUnicode::nsCP1251ToUnicode()
: nsOneByteDecoderSupport((uShiftTable*) &g_utShiftTable,
(uMappingTable*) &g_utMappingTable)
NS_METHOD
nsCP1251ToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult)
{
return CreateOneByteDecoder((uShiftTable*) &g_utShiftTable,
(uMappingTable*) &g_utMappingTable,
aOuter, aIID, aResult);
}

View File

@ -39,10 +39,7 @@
#ifndef nsCP1251ToUnicode_h___
#define nsCP1251ToUnicode_h___
#include "nsUCSupport.h"
//----------------------------------------------------------------------
// Class nsCP1251ToUnicode [declaration]
#include "nsISupports.h"
/**
* A character set converter from CP1251 to Unicode.
@ -50,15 +47,8 @@
* @created 20/Apr/1999
* @author Catalin Rotaru [CATA]
*/
class nsCP1251ToUnicode : public nsOneByteDecoderSupport
{
public:
/**
* Class constructor.
*/
nsCP1251ToUnicode();
};
NS_METHOD
nsCP1251ToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult);
#endif /* nsCP1251ToUnicode_h___ */

View File

@ -36,6 +36,7 @@
*
* ***** END LICENSE BLOCK ***** */
#include "nsUCConstructors.h"
#include "nsCP1253ToUnicode.h"
//----------------------------------------------------------------------
@ -50,12 +51,12 @@ static const PRInt16 g_utShiftTable[] = {
ShiftCell(0,0,0,0,0,0,0,0)
};
//----------------------------------------------------------------------
// Class nsCP1253ToUnicode [implementation]
nsCP1253ToUnicode::nsCP1253ToUnicode()
: nsOneByteDecoderSupport((uShiftTable*) &g_utShiftTable,
(uMappingTable*) &g_utMappingTable)
NS_METHOD
nsCP1253ToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult)
{
return CreateOneByteDecoder((uShiftTable*) &g_utShiftTable,
(uMappingTable*) &g_utMappingTable,
aOuter, aIID, aResult);
}

View File

@ -39,10 +39,7 @@
#ifndef nsCP1253ToUnicode_h___
#define nsCP1253ToUnicode_h___
#include "nsUCSupport.h"
//----------------------------------------------------------------------
// Class nsCP1253ToUnicode [declaration]
#include "nsISupports.h"
/**
* A character set converter from CP1253 to Unicode.
@ -50,15 +47,8 @@
* @created 20/Apr/1999
* @author Catalin Rotaru [CATA]
*/
class nsCP1253ToUnicode : public nsOneByteDecoderSupport
{
public:
/**
* Class constructor.
*/
nsCP1253ToUnicode();
};
NS_METHOD
nsCP1253ToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult);
#endif /* nsCP1253ToUnicode_h___ */

View File

@ -36,6 +36,7 @@
*
* ***** END LICENSE BLOCK ***** */
#include "nsUCConstructors.h"
#include "nsCP1254ToUnicode.h"
//----------------------------------------------------------------------
@ -50,11 +51,11 @@ static const PRInt16 g_utShiftTable[] = {
ShiftCell(0,0,0,0,0,0,0,0)
};
//----------------------------------------------------------------------
// Class nsCP1254ToUnicode [implementation]
nsCP1254ToUnicode::nsCP1254ToUnicode()
: nsOneByteDecoderSupport((uShiftTable*) &g_utShiftTable,
(uMappingTable*) &g_utMappingTable)
NS_METHOD
nsCP1254ToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult)
{
return CreateOneByteDecoder((uShiftTable*) &g_utShiftTable,
(uMappingTable*) &g_utMappingTable,
aOuter, aIID, aResult);
}

View File

@ -39,10 +39,7 @@
#ifndef nsCP1254ToUnicode_h___
#define nsCP1254ToUnicode_h___
#include "nsUCSupport.h"
//----------------------------------------------------------------------
// Class nsCP1254ToUnicode [declaration]
#include "nsISupports.h"
/**
* A character set converter from CP1254 to Unicode.
@ -50,15 +47,8 @@
* @created 20/Apr/1999
* @author Catalin Rotaru [CATA]
*/
class nsCP1254ToUnicode : public nsOneByteDecoderSupport
{
public:
/**
* Class constructor.
*/
nsCP1254ToUnicode();
};
NS_METHOD
nsCP1254ToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult);
#endif /* nsCP1254ToUnicode_h___ */

View File

@ -36,6 +36,7 @@
*
* ***** END LICENSE BLOCK ***** */
#include "nsUCConstructors.h"
#include "nsCP1255ToUnicode.h"
//----------------------------------------------------------------------
@ -50,11 +51,11 @@ static const PRInt16 g_utShiftTable[] = {
ShiftCell(0,0,0,0,0,0,0,0)
};
//----------------------------------------------------------------------
// Class nsCP1255ToUnicode [implementation]
nsCP1255ToUnicode::nsCP1255ToUnicode()
: nsOneByteDecoderSupport((uShiftTable*) &g_utShiftTable,
(uMappingTable*) &g_utMappingTable)
NS_METHOD
nsCP1255ToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult)
{
return CreateOneByteDecoder((uShiftTable*) &g_utShiftTable,
(uMappingTable*) &g_utMappingTable,
aOuter, aIID, aResult);
}

View File

@ -39,10 +39,7 @@
#ifndef nsCP1255ToUnicode_h___
#define nsCP1255ToUnicode_h___
#include "nsUCSupport.h"
//----------------------------------------------------------------------
// Class nsCP1255ToUnicode [declaration]
#include "nsISupports.h"
/**
* A character set converter from CP1255 to Unicode.
@ -50,15 +47,9 @@
* @created 20/Apr/1999
* @author Catalin Rotaru [CATA]
*/
class nsCP1255ToUnicode : public nsOneByteDecoderSupport
{
public:
/**
* Class constructor.
*/
nsCP1255ToUnicode();
};
NS_METHOD
nsCP1255ToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult);
#endif /* nsCP1255ToUnicode_h___ */

View File

@ -36,6 +36,7 @@
*
* ***** END LICENSE BLOCK ***** */
#include "nsUCConstructors.h"
#include "nsCP1256ToUnicode.h"
//----------------------------------------------------------------------
@ -50,12 +51,12 @@ static const PRInt16 g_utShiftTable[] = {
ShiftCell(0,0,0,0,0,0,0,0)
};
//----------------------------------------------------------------------
// Class nsCP1256ToUnicode [implementation]
nsCP1256ToUnicode::nsCP1256ToUnicode()
: nsOneByteDecoderSupport((uShiftTable*) &g_utShiftTable,
(uMappingTable*) &g_utMappingTable)
NS_METHOD
nsCP1256ToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult)
{
return CreateOneByteDecoder((uShiftTable*) &g_utShiftTable,
(uMappingTable*) &g_utMappingTable,
aOuter, aIID, aResult);
}

View File

@ -39,10 +39,7 @@
#ifndef nsCP1256ToUnicode_h___
#define nsCP1256ToUnicode_h___
#include "nsUCSupport.h"
//----------------------------------------------------------------------
// Class nsCP1256ToUnicode [declaration]
#include "nsISupports.h"
/**
* A character set converter from CP1256 to Unicode.
@ -50,14 +47,8 @@
* @created 20/Apr/1999
* @author Catalin Rotaru [CATA]
*/
class nsCP1256ToUnicode : public nsOneByteDecoderSupport
{
public:
/**
* Class constructor.
*/
nsCP1256ToUnicode();
};
NS_METHOD
nsCP1256ToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult);
#endif /* nsCP1256ToUnicode_h___ */

View File

@ -36,6 +36,7 @@
*
* ***** END LICENSE BLOCK ***** */
#include "nsUCConstructors.h"
#include "nsCP1257ToUnicode.h"
//----------------------------------------------------------------------
@ -50,11 +51,11 @@ static const PRInt16 g_utShiftTable[] = {
ShiftCell(0,0,0,0,0,0,0,0)
};
//----------------------------------------------------------------------
// Class nsCP1257ToUnicode [implementation]
nsCP1257ToUnicode::nsCP1257ToUnicode()
: nsOneByteDecoderSupport((uShiftTable*) &g_utShiftTable,
(uMappingTable*) &g_utMappingTable)
NS_METHOD
nsCP1257ToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult)
{
return CreateOneByteDecoder((uShiftTable*) &g_utShiftTable,
(uMappingTable*) &g_utMappingTable,
aOuter, aIID, aResult);
}

View File

@ -39,7 +39,7 @@
#ifndef nsCP1257ToUnicode_h___
#define nsCP1257ToUnicode_h___
#include "nsUCSupport.h"
#include "nsISupports.h"
//----------------------------------------------------------------------
// Class nsCP1257ToUnicode [declaration]
@ -50,15 +50,8 @@
* @created 20/Apr/1999
* @author Catalin Rotaru [CATA]
*/
class nsCP1257ToUnicode : public nsOneByteDecoderSupport
{
public:
/**
* Class constructor.
*/
nsCP1257ToUnicode();
};
NS_METHOD
nsCP1257ToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult);
#endif /* nsCP1257ToUnicode_h___ */

View File

@ -36,6 +36,7 @@
*
* ***** END LICENSE BLOCK ***** */
#include "nsUCConstructors.h"
#include "nsCP1258ToUnicode.h"
//----------------------------------------------------------------------
@ -50,12 +51,12 @@ static const PRInt16 g_utShiftTable[] = {
ShiftCell(0,0,0,0,0,0,0,0)
};
//----------------------------------------------------------------------
// Class nsCP1258ToUnicode [implementation]
nsCP1258ToUnicode::nsCP1258ToUnicode()
: nsOneByteDecoderSupport((uShiftTable*) &g_utShiftTable,
(uMappingTable*) &g_utMappingTable)
NS_METHOD
nsCP1258ToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult)
{
return CreateOneByteDecoder((uShiftTable*) &g_utShiftTable,
(uMappingTable*) &g_utMappingTable,
aOuter, aIID, aResult);
}

View File

@ -39,10 +39,7 @@
#ifndef nsCP1258ToUnicode_h___
#define nsCP1258ToUnicode_h___
#include "nsUCSupport.h"
//----------------------------------------------------------------------
// Class nsCP1258ToUnicode [declaration]
#include "nsISupports.h"
/**
* A character set converter from CP1258 to Unicode.
@ -50,15 +47,8 @@
* @created 4/26/1999
* @author Frank Tang [ftang]
*/
class nsCP1258ToUnicode : public nsOneByteDecoderSupport
{
public:
/**
* Class constructor.
*/
nsCP1258ToUnicode();
};
NS_METHOD
nsCP1258ToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult);
#endif /* nsCP1258ToUnicode_h___ */

View File

@ -36,6 +36,7 @@
*
* ***** END LICENSE BLOCK ***** */
#include "nsUCConstructors.h"
#include "nsCP866ToUnicode.h"
//----------------------------------------------------------------------
@ -50,13 +51,13 @@ static const PRInt16 g_utShiftTable[] = {
ShiftCell(0,0,0,0,0,0,0,0)
};
//----------------------------------------------------------------------
// Class nsCP866ToUnicode [implementation]
nsCP866ToUnicode::nsCP866ToUnicode()
: nsOneByteDecoderSupport((uShiftTable*) &g_utShiftTable,
(uMappingTable*) &g_utMappingTable)
NS_METHOD
nsCP866ToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult)
{
return CreateOneByteDecoder((uShiftTable*) &g_utShiftTable,
(uMappingTable*) &g_utMappingTable,
aOuter, aIID, aResult);
}

View File

@ -39,10 +39,7 @@
#ifndef nsCP866ToUnicode_h___
#define nsCP866ToUnicode_h___
#include "nsUCSupport.h"
//----------------------------------------------------------------------
// Class nsCP866ToUnicode [declaration]
#include "nsISupports.h"
/**
* A character set converter from CP866 to Unicode.
@ -50,15 +47,8 @@
* @created 20/Apr/1999
* @author Catalin Rotaru [CATA]
*/
class nsCP866ToUnicode : public nsOneByteDecoderSupport
{
public:
/**
* Class constructor.
*/
nsCP866ToUnicode();
};
NS_METHOD
nsCP866ToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult);
#endif /* nsCP866ToUnicode_h___ */

View File

@ -36,6 +36,7 @@
*
* ***** END LICENSE BLOCK ***** */
#include "nsUCConstructors.h"
#include "nsCP874ToUnicode.h"
//----------------------------------------------------------------------
@ -50,11 +51,11 @@ static const PRInt16 g_utShiftTable[] = {
ShiftCell(0,0,0,0,0,0,0,0)
};
//----------------------------------------------------------------------
// Class nsCP874ToUnicode [implementation]
nsCP874ToUnicode::nsCP874ToUnicode()
: nsOneByteDecoderSupport((uShiftTable*) &g_utShiftTable,
(uMappingTable*) &g_utMappingTable)
NS_METHOD
nsCP874ToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult)
{
return CreateOneByteDecoder((uShiftTable*) &g_utShiftTable,
(uMappingTable*) &g_utMappingTable,
aOuter, aIID, aResult);
}

View File

@ -39,10 +39,7 @@
#ifndef nsCP874ToUnicode_h___
#define nsCP874ToUnicode_h___
#include "nsUCSupport.h"
//----------------------------------------------------------------------
// Class nsCP874ToUnicode [declaration]
#include "nsISupports.h"
/**
* A character set converter from CP874 to Unicode.
@ -50,15 +47,8 @@
* @created 4/26/1999
* @author Frank Tang [ftang]
*/
class nsCP874ToUnicode : public nsOneByteDecoderSupport
{
public:
/**
* Class constructor.
*/
nsCP874ToUnicode();
};
NS_METHOD
nsCP874ToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult);
#endif /* nsCP874ToUnicode_h___ */

View File

@ -20,6 +20,7 @@
* Contributor(s):
*/
#include "nsUCConstructors.h"
#include "nsGEOSTD8ToUnicode.h"
//----------------------------------------------------------------------
@ -34,12 +35,12 @@ static const PRInt16 g_utShiftTable[] = {
ShiftCell(0,0,0,0,0,0,0,0)
};
//----------------------------------------------------------------------
// Class nsGEOSTD8ToUnicode [implementation]
nsGEOSTD8ToUnicode::nsGEOSTD8ToUnicode()
: nsOneByteDecoderSupport((uShiftTable*) &g_utShiftTable,
(uMappingTable*) &g_utMappingTable)
NS_METHOD
nsGEOSTD8ToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult)
{
return CreateOneByteDecoder((uShiftTable*) &g_utShiftTable,
(uMappingTable*) &g_utMappingTable,
aOuter, aIID, aResult);
}

View File

@ -23,24 +23,14 @@
#ifndef nsGEOSTD8ToUnicode_h___
#define nsGEOSTD8ToUnicode_h___
#include "nsUCSupport.h"
//----------------------------------------------------------------------
// Class nsGEOSTD8ToUnicode [declaration]
#include "nsISupports.h"
/**
* A character set converter from GEOSTD8 to Unicode.
*
*/
class nsGEOSTD8ToUnicode : public nsOneByteDecoderSupport
{
public:
/**
* Class constructor.
*/
nsGEOSTD8ToUnicode();
};
NS_METHOD
nsGEOSTD8ToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult);
#endif /* nsGEOSTD8ToUnicode_h___ */

View File

@ -36,6 +36,7 @@
*
* ***** END LICENSE BLOCK ***** */
#include "nsUCConstructors.h"
#include "nsISO885910ToUnicode.h"
//----------------------------------------------------------------------
@ -50,11 +51,12 @@ static const PRInt16 g_utShiftTable[] = {
ShiftCell(0,0,0,0,0,0,0,0)
};
//----------------------------------------------------------------------
// Class nsISO885910ToUnicode [implementation]
nsISO885910ToUnicode::nsISO885910ToUnicode()
: nsOneByteDecoderSupport((uShiftTable*) &g_utShiftTable,
(uMappingTable*) &g_utMappingTable)
NS_METHOD
nsISO885910ToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult)
{
return CreateOneByteDecoder((uShiftTable*) &g_utShiftTable,
(uMappingTable*) &g_utMappingTable,
aOuter, aIID, aResult);
}

View File

@ -39,7 +39,7 @@
#ifndef nsISO885910ToUnicode_h___
#define nsISO885910ToUnicode_h___
#include "nsUCSupport.h"
#include "nsISupports.h"
//----------------------------------------------------------------------
// Class nsISO885910ToUnicode [declaration]
@ -50,15 +50,8 @@
* @created 23/Nov/1998
* @author Catalin Rotaru [CATA]
*/
class nsISO885910ToUnicode : public nsOneByteDecoderSupport
{
public:
/**
* Class constructor.
*/
nsISO885910ToUnicode();
};
NS_METHOD
nsISO885910ToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult);
#endif /* nsISO885910ToUnicode_h___ */

View File

@ -36,6 +36,7 @@
*
* ***** END LICENSE BLOCK ***** */
#include "nsUCConstructors.h"
#include "nsISO885913ToUnicode.h"
//----------------------------------------------------------------------
@ -50,12 +51,12 @@ static const PRInt16 g_utShiftTable[] = {
ShiftCell(0,0,0,0,0,0,0,0)
};
//----------------------------------------------------------------------
// Class nsISO885913ToUnicode [implementation]
nsISO885913ToUnicode::nsISO885913ToUnicode()
: nsOneByteDecoderSupport((uShiftTable*) &g_utShiftTable,
(uMappingTable*) &g_utMappingTable)
NS_METHOD
nsISO885913ToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult)
{
return CreateOneByteDecoder((uShiftTable*) &g_utShiftTable,
(uMappingTable*) &g_utMappingTable,
aOuter, aIID, aResult);
}

View File

@ -39,10 +39,7 @@
#ifndef nsISO885913ToUnicode_h___
#define nsISO885913ToUnicode_h___
#include "nsUCSupport.h"
//----------------------------------------------------------------------
// Class nsISO885913ToUnicode [declaration]
#include "nsISupports.h"
/**
* A character set converter from ISO885913 to Unicode.
@ -50,15 +47,8 @@
* @created 05/Apr/1999
* @author Catalin Rotaru [CATA]
*/
class nsISO885913ToUnicode : public nsOneByteDecoderSupport
{
public:
/**
* Class constructor.
*/
nsISO885913ToUnicode();
};
NS_METHOD
nsISO885913ToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult);
#endif /* nsISO885913ToUnicode_h___ */

View File

@ -36,6 +36,7 @@
*
* ***** END LICENSE BLOCK ***** */
#include "nsUCConstructors.h"
#include "nsISO885914ToUnicode.h"
//----------------------------------------------------------------------
@ -50,11 +51,11 @@ static const PRInt16 g_utShiftTable[] = {
ShiftCell(0,0,0,0,0,0,0,0)
};
//----------------------------------------------------------------------
// Class nsISO885914ToUnicode [implementation]
nsISO885914ToUnicode::nsISO885914ToUnicode()
: nsOneByteDecoderSupport((uShiftTable*) &g_utShiftTable,
(uMappingTable*) &g_utMappingTable)
NS_METHOD
nsISO885914ToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult)
{
return CreateOneByteDecoder((uShiftTable*) &g_utShiftTable,
(uMappingTable*) &g_utMappingTable,
aOuter, aIID, aResult);
}

View File

@ -39,10 +39,7 @@
#ifndef nsISO885914ToUnicode_h___
#define nsISO885914ToUnicode_h___
#include "nsUCSupport.h"
//----------------------------------------------------------------------
// Class nsISO885914ToUnicode [declaration]
#include "nsISupports.h"
/**
* A character set converter from ISO885914 to Unicode.
@ -50,15 +47,8 @@
* @created 4/26/1999
* @author Frank Tang [ftang]
*/
class nsISO885914ToUnicode : public nsOneByteDecoderSupport
{
public:
/**
* Class constructor.
*/
nsISO885914ToUnicode();
};
NS_METHOD
nsISO885914ToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
void **aResult);
#endif /* nsISO885914ToUnicode_h___ */

Some files were not shown because too many files have changed in this diff Show More