зеркало из https://github.com/mozilla/gecko-dev.git
Components exported.
This commit is contained in:
Родитель
3b92777151
Коммит
0a8662065a
|
@ -27,9 +27,39 @@
|
|||
NS_DECLARE_ID(kBIG5ToUnicodeCID,
|
||||
0xefc323e1, 0xec62, 0x11d2, 0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36);
|
||||
|
||||
// Class ID for our EUCTWToUnicode charset converter
|
||||
// {379C2771-EC77-11d2-8AAC-00600811A836}
|
||||
NS_DECLARE_ID(kEUCTWToUnicodeCID,
|
||||
0x379c2771, 0xec77, 0x11d2, 0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36);
|
||||
|
||||
// Class ID for our GB2312ToUnicode charset converter
|
||||
// {379C2774-EC77-11d2-8AAC-00600811A836}
|
||||
NS_DECLARE_ID(kGB2312ToUnicodeCID,
|
||||
0x379c2774, 0xec77, 0x11d2, 0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36);
|
||||
|
||||
// Class ID for our EUCKRToUnicode charset converter
|
||||
// {379C2775-EC77-11d2-8AAC-00600811A836}
|
||||
NS_DECLARE_ID(kEUCKRToUnicodeCID,
|
||||
0x379c2775, 0xec77, 0x11d2, 0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36);
|
||||
|
||||
// Class ID for our UnicodeToBIG5 charset converter
|
||||
// {EFC323E2-EC62-11d2-8AAC-00600811A836}
|
||||
NS_DECLARE_ID(kUnicodeToBIG5CID,
|
||||
0xefc323e2, 0xec62, 0x11d2, 0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36);
|
||||
|
||||
// Class ID for our UnicodeToEUCTW charset converter
|
||||
// {379C2776-EC77-11d2-8AAC-00600811A836}
|
||||
NS_DECLARE_ID(kUnicodeToEUCTWCID,
|
||||
0x379c2776, 0xec77, 0x11d2, 0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36);
|
||||
|
||||
// Class ID for our UnicodeToGB2312 charset converter
|
||||
// {379C2777-EC77-11d2-8AAC-00600811A836}
|
||||
NS_DECLARE_ID(kUnicodeToGB2312CID,
|
||||
0x379c2777, 0xec77, 0x11d2, 0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36);
|
||||
|
||||
// Class ID for our UnicodeToEUCKR charset converter
|
||||
// {379C2778-EC77-11d2-8AAC-00600811A836}
|
||||
NS_DECLARE_ID(kUnicodeToEUCKRCID,
|
||||
0x379c2778, 0xec77, 0x11d2, 0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36);
|
||||
|
||||
#endif /* nsUCvCnCID_h___ */
|
||||
|
|
|
@ -28,7 +28,13 @@
|
|||
#include "nsUCvCnCID.h"
|
||||
#include "nsUCvCnDll.h"
|
||||
#include "nsBIG5ToUnicode.h"
|
||||
#include "nsEUCTWToUnicode.h"
|
||||
#include "nsGB2312ToUnicode.h"
|
||||
#include "nsEUCKRToUnicode.h"
|
||||
#include "nsUnicodeToBIG5.h"
|
||||
#include "nsUnicodeToEUCTW.h"
|
||||
#include "nsUnicodeToGB2312.h"
|
||||
#include "nsUnicodeToEUCKR.h"
|
||||
|
||||
// just for NS_IMPL_IDS; this is a good, central place to implement GUIDs
|
||||
#include "nsIUnicodeDecoder.h"
|
||||
|
@ -66,11 +72,47 @@ FactoryData g_FactoryData[] =
|
|||
"BIG5",
|
||||
"Unicode"
|
||||
},
|
||||
{
|
||||
&kEUCTWToUnicodeCID,
|
||||
nsEUCTWToUnicode::CreateInstance,
|
||||
"EUCTW",
|
||||
"Unicode"
|
||||
},
|
||||
{
|
||||
&kGB2312ToUnicodeCID,
|
||||
nsGB2312ToUnicode::CreateInstance,
|
||||
"GB2312",
|
||||
"Unicode"
|
||||
},
|
||||
{
|
||||
&kEUCKRToUnicodeCID,
|
||||
nsEUCKRToUnicode::CreateInstance,
|
||||
"EUCKR",
|
||||
"Unicode"
|
||||
},
|
||||
{
|
||||
&kUnicodeToBIG5CID,
|
||||
nsUnicodeToBIG5::CreateInstance,
|
||||
"Unicode",
|
||||
"BIG5"
|
||||
},
|
||||
{
|
||||
&kUnicodeToEUCTWCID,
|
||||
nsUnicodeToEUCTW::CreateInstance,
|
||||
"Unicode",
|
||||
"EUCTW"
|
||||
},
|
||||
{
|
||||
&kUnicodeToGB2312CID,
|
||||
nsUnicodeToGB2312::CreateInstance,
|
||||
"Unicode",
|
||||
"GB2312"
|
||||
},
|
||||
{
|
||||
&kUnicodeToEUCKRCID,
|
||||
nsUnicodeToEUCKR::CreateInstance,
|
||||
"Unicode",
|
||||
"EUCKR"
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче