зеркало из https://github.com/mozilla/pjs.git
fix bug 75814. add hkscs support
r=nhotta sr=blizzard
This commit is contained in:
Родитель
932028310f
Коммит
7762a9c364
|
@ -77,4 +77,10 @@ NS_DECLARE_ID(kUnicodeToBIG5HKSCSCID,
|
|||
#define NS_UNICODETOBIG5HKSCS_CID \
|
||||
{ 0xba6151bc, 0xec62, 0x11d2, {0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36}}
|
||||
|
||||
// Class ID for our UnicodeToHKSCS charset converter
|
||||
// {A59DA931-4091-11d5-A145-005004832142}
|
||||
#define NS_UNICODETOHKSCS_CID \
|
||||
{ 0xa59da931, 0x4091, 0x11d5, { 0xa1, 0x45, 0x0, 0x50, 0x4, 0x83, 0x21, 0x42 } }
|
||||
|
||||
|
||||
#endif /* nsUCvTWCID_h___ */
|
||||
|
|
|
@ -39,6 +39,7 @@
|
|||
#include "nsUnicodeToBIG5NoAscii.h"
|
||||
#include "nsBIG5HKSCSToUnicode.h"
|
||||
#include "nsUnicodeToBIG5HKSCS.h"
|
||||
#include "nsUnicodeToHKSCS.h"
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
// Global functions and data [declaration]
|
||||
|
@ -78,12 +79,14 @@ NS_UCONV_REG_UNREG(nsUnicodeToBIG5NoAscii, "Unicode", "x-x-big5", NS_UNICODETOB
|
|||
NS_UCONV_REG_UNREG(nsUnicodeToBIG5, "Unicode", "Big5" , NS_UNICODETOBIG5_CID);
|
||||
NS_UCONV_REG_UNREG(nsBIG5HKSCSToUnicode, "Big5-HKSCS", "Unicode" , NS_BIG5HKSCSTOUNICODE_CID);
|
||||
NS_UCONV_REG_UNREG(nsUnicodeToBIG5HKSCS, "Unicode", "Big5-HKSCS" , NS_UNICODETOBIG5HKSCS_CID);
|
||||
NS_UCONV_REG_UNREG(nsUnicodeToHKSCS, "Unicode", "hkscs-1" , NS_UNICODETOHKSCS_CID);
|
||||
|
||||
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);
|
||||
|
||||
static nsModuleComponentInfo components[] =
|
||||
{
|
||||
|
@ -111,6 +114,12 @@ static nsModuleComponentInfo components[] =
|
|||
nsUnicodeToBIG5HKSCSConstructor,
|
||||
nsUnicodeToBIG5HKSCSRegSelf, nsUnicodeToBIG5HKSCSUnRegSelf
|
||||
},
|
||||
{
|
||||
ENCODER_NAME_BASE "hkscs-1" , NS_UNICODETOHKSCS_CID,
|
||||
NS_UNICODEENCODER_CONTRACTID_BASE "hkscs-1",
|
||||
nsUnicodeToHKSCSConstructor,
|
||||
nsUnicodeToHKSCSRegSelf, nsUnicodeToHKSCSUnRegSelf
|
||||
},
|
||||
{
|
||||
DECODER_NAME_BASE "Big5-HKSCS" , NS_BIG5HKSCSTOUNICODE_CID,
|
||||
NS_UNICODEDECODER_CONTRACTID_BASE "Big5-HKSCS",
|
||||
|
|
Загрузка…
Ссылка в новой задаче