mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
UTF8 decoder added.
This commit is contained in:
parent
96f4be6c34
commit
8d6ab7d21c
@ -32,6 +32,7 @@ CPPSRCS = \
|
||||
nsLatin1ToUnicode.cpp \
|
||||
nsISO88597ToUnicode.cpp \
|
||||
nsCP1253ToUnicode.cpp \
|
||||
nsUTF8ToUnicode.cpp \
|
||||
nsUnicodeToLatin1.cpp \
|
||||
ns1ByteToUnicodeBase.cpp \
|
||||
nsUCvLatinSupport.cpp \
|
||||
|
@ -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 \
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user