зеркало из https://github.com/mozilla/pjs.git
fix CID.h file misspell and repeat CID. add ASCII to the factory
This commit is contained in:
Родитель
6fb5a28954
Коммит
25f85fad70
|
@ -536,15 +536,16 @@ NS_DECLARE_ID(kUnicodeToUserDefinedCID,
|
|||
|
||||
|
||||
// Class ID for our AsciiToUnicode charset converter
|
||||
NS_DECLARE_ID(kUAsciiToUnicodeCID,
|
||||
NS_DECLARE_ID(kAsciiToUnicodeCID,
|
||||
// {BA6151B9-1DFA-11d3-B3BF-00805F8A6670}
|
||||
0xba6151b9, 0x1dfa, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
|
||||
|
||||
// Class ID for our UnicodeToAscii charset converter
|
||||
NS_DECLARE_ID(kUnicodeToAsciiCID,
|
||||
// {BA6151B9-1DFA-11d3-B3BF-00805F8A6670}
|
||||
0xba6151b9, 0x1dfa, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
// {BA6151BA-1DFA-11d3-B3BF-00805F8A6670}
|
||||
0xba6151ba, 0x1dfa, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
#include "nsICharsetConverterInfo.h"
|
||||
#include "nsUCvLatinCID.h"
|
||||
#include "nsUCvLatinDll.h"
|
||||
#include "nsAsciiToUnicode.h"
|
||||
#include "nsISO88591ToUnicode.h"
|
||||
#include "nsISO88592ToUnicode.h"
|
||||
#include "nsISO88593ToUnicode.h"
|
||||
|
@ -75,6 +76,7 @@
|
|||
#include "nsUCS2LEToUnicode.h"
|
||||
#include "nsT61ToUnicode.h"
|
||||
#include "nsUserDefinedToUnicode.h"
|
||||
#include "nsUnicodeToAscii.h"
|
||||
#include "nsUnicodeToISO88591.h"
|
||||
#include "nsUnicodeToISO88592.h"
|
||||
#include "nsUnicodeToISO88593.h"
|
||||
|
@ -154,6 +156,12 @@ struct FactoryData
|
|||
|
||||
FactoryData g_FactoryData[] =
|
||||
{
|
||||
{
|
||||
&kAsciiToUnicodeCID,
|
||||
nsAsciiToUnicode::CreateInstance,
|
||||
"us-ascii",
|
||||
"Unicode"
|
||||
},
|
||||
{
|
||||
&kISO88591ToUnicodeCID,
|
||||
nsISO88591ToUnicode::CreateInstance,
|
||||
|
@ -442,6 +450,12 @@ FactoryData g_FactoryData[] =
|
|||
"x-user-defined",
|
||||
"Unicode"
|
||||
},
|
||||
{
|
||||
&kUnicodeToAsciiCID,
|
||||
nsUnicodeToAscii::CreateInstance,
|
||||
"Unicode",
|
||||
"us-ascii"
|
||||
},
|
||||
{
|
||||
&kUnicodeToISO88591CID,
|
||||
nsUnicodeToISO88591::CreateInstance,
|
||||
|
|
Загрузка…
Ссылка в новой задаче