UTF8 decoder added.

This commit is contained in:
cata%netscape.com 1999-03-19 01:15:04 +00:00
parent 96f4be6c34
commit 8d6ab7d21c
4 changed files with 15 additions and 0 deletions

View File

@ -32,6 +32,7 @@ CPPSRCS = \
nsLatin1ToUnicode.cpp \
nsISO88597ToUnicode.cpp \
nsCP1253ToUnicode.cpp \
nsUTF8ToUnicode.cpp \
nsUnicodeToLatin1.cpp \
ns1ByteToUnicodeBase.cpp \
nsUCvLatinSupport.cpp \

View File

@ -30,6 +30,7 @@ CPPSRCS = \
nsLatin1ToUnicode.cpp \
nsISO88597ToUnicode.cpp \
nsCP1253ToUnicode.cpp \
nsUTF8ToUnicode.cpp \
nsUnicodeToLatin1.cpp \
ns1ByteToUnicodeBase.cpp \
nsUCvLatinSupport.cpp \
@ -40,6 +41,7 @@ CPP_OBJS= \
.\$(OBJDIR)\nsLatin1ToUnicode.obj \
.\$(OBJDIR)\nsISO88597ToUnicode.obj \
.\$(OBJDIR)\nsCP1253ToUnicode.obj \
.\$(OBJDIR)\nsUTF8ToUnicode.obj \
.\$(OBJDIR)\nsUnicodeToLatin1.obj \
.\$(OBJDIR)\ns1ByteToUnicodeBase.obj \
.\$(OBJDIR)\nsUCvLatinSupport.obj \

View File

@ -37,6 +37,11 @@ NS_DECLARE_ID(kISO88597ToUnicodeCID,
NS_DECLARE_ID(kCP1253ToUnicodeCID,
0xaf7a9952, 0xaa48, 0x11d2, 0xb3, 0xae, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
// Class ID for our UTF8ToUnicode charset converter
// {5534DDC0-DD96-11d2-8AAC-00600811A836}
NS_DECLARE_ID(kUTF8ToUnicodeCID,
0x5534ddc0, 0xdd96, 0x11d2, 0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36);
// Class ID for our UnicodeToLatin1 charset converter
// {920307B0-C6E8-11d2-8AA8-00600811A836}
NS_DECLARE_ID(kUnicodeToLatin1CID,

View File

@ -30,6 +30,7 @@
#include "nsLatin1ToUnicode.h"
#include "nsISO88597ToUnicode.h"
#include "nsCP1253ToUnicode.h"
#include "nsUTF8ToUnicode.h"
#include "nsUnicodeToLatin1.h"
// just for NS_IMPL_IDS; this is a good, central place to implement GUIDs
@ -79,6 +80,12 @@ FactoryData g_FactoryData[] =
"windows-1253",
"Unicode"
},
{
&kUTF8ToUnicodeCID,
nsUTF8ToUnicode::CreateInstance,
"UTF-8",
"Unicode"
},
{
&kUnicodeToLatin1CID,
nsUnicodeToLatin1::CreateInstance,