зеркало из https://github.com/mozilla/pjs.git
Fix for 22921; nsIModule code. /sr=ftang
This commit is contained in:
Родитель
8fd241d406
Коммит
a8a692d8d5
|
@ -40,8 +40,12 @@ CPPSRCS = \
|
|||
nsISO88594ToUnicode.cpp \
|
||||
nsISO88595ToUnicode.cpp \
|
||||
nsISO88596ToUnicode.cpp \
|
||||
nsISO88596EToUnicode.cpp \
|
||||
nsISO88596IToUnicode.cpp \
|
||||
nsISO88597ToUnicode.cpp \
|
||||
nsISO88598ToUnicode.cpp \
|
||||
nsISO88598EToUnicode.cpp \
|
||||
nsISO88598IToUnicode.cpp \
|
||||
nsISO88599ToUnicode.cpp \
|
||||
nsISO885910ToUnicode.cpp \
|
||||
nsISO885913ToUnicode.cpp \
|
||||
|
@ -93,8 +97,12 @@ CPPSRCS = \
|
|||
nsUnicodeToISO88594.cpp \
|
||||
nsUnicodeToISO88595.cpp \
|
||||
nsUnicodeToISO88596.cpp \
|
||||
nsUnicodeToISO88596E.cpp \
|
||||
nsUnicodeToISO88596I.cpp \
|
||||
nsUnicodeToISO88597.cpp \
|
||||
nsUnicodeToISO88598.cpp \
|
||||
nsUnicodeToISO88598E.cpp \
|
||||
nsUnicodeToISO88598I.cpp \
|
||||
nsUnicodeToISO88599.cpp \
|
||||
nsUnicodeToISO885910.cpp \
|
||||
nsUnicodeToISO885913.cpp \
|
||||
|
|
|
@ -38,8 +38,12 @@ CPPSRCS = \
|
|||
nsISO88594ToUnicode.cpp \
|
||||
nsISO88595ToUnicode.cpp \
|
||||
nsISO88596ToUnicode.cpp \
|
||||
nsISO88596EToUnicode.cpp \
|
||||
nsISO88596IToUnicode.cpp \
|
||||
nsISO88597ToUnicode.cpp \
|
||||
nsISO88598ToUnicode.cpp \
|
||||
nsISO88598EToUnicode.cpp \
|
||||
nsISO88598IToUnicode.cpp \
|
||||
nsISO88599ToUnicode.cpp \
|
||||
nsISO885910ToUnicode.cpp \
|
||||
nsISO885913ToUnicode.cpp \
|
||||
|
@ -91,8 +95,12 @@ CPPSRCS = \
|
|||
nsUnicodeToISO88594.cpp \
|
||||
nsUnicodeToISO88595.cpp \
|
||||
nsUnicodeToISO88596.cpp \
|
||||
nsUnicodeToISO88596E.cpp \
|
||||
nsUnicodeToISO88596I.cpp \
|
||||
nsUnicodeToISO88597.cpp \
|
||||
nsUnicodeToISO88598.cpp \
|
||||
nsUnicodeToISO88598E.cpp \
|
||||
nsUnicodeToISO88598I.cpp \
|
||||
nsUnicodeToISO88599.cpp \
|
||||
nsUnicodeToISO885910.cpp \
|
||||
nsUnicodeToISO885913.cpp \
|
||||
|
@ -150,9 +158,13 @@ CPP_OBJS= \
|
|||
.\$(OBJDIR)\nsISO88593ToUnicode.obj \
|
||||
.\$(OBJDIR)\nsISO88594ToUnicode.obj \
|
||||
.\$(OBJDIR)\nsISO88595ToUnicode.obj \
|
||||
.\$(OBJDIR)\nsISO88596EToUnicode.obj \
|
||||
.\$(OBJDIR)\nsISO88596IToUnicode.obj \
|
||||
.\$(OBJDIR)\nsISO88596ToUnicode.obj \
|
||||
.\$(OBJDIR)\nsISO88597ToUnicode.obj \
|
||||
.\$(OBJDIR)\nsISO88598ToUnicode.obj \
|
||||
.\$(OBJDIR)\nsISO88598EToUnicode.obj \
|
||||
.\$(OBJDIR)\nsISO88598IToUnicode.obj \
|
||||
.\$(OBJDIR)\nsISO88599ToUnicode.obj \
|
||||
.\$(OBJDIR)\nsISO885910ToUnicode.obj \
|
||||
.\$(OBJDIR)\nsISO885913ToUnicode.obj \
|
||||
|
@ -204,8 +216,12 @@ CPP_OBJS= \
|
|||
.\$(OBJDIR)\nsUnicodeToISO88594.obj \
|
||||
.\$(OBJDIR)\nsUnicodeToISO88595.obj \
|
||||
.\$(OBJDIR)\nsUnicodeToISO88596.obj \
|
||||
.\$(OBJDIR)\nsUnicodeToISO88596E.obj \
|
||||
.\$(OBJDIR)\nsUnicodeToISO88596I.obj \
|
||||
.\$(OBJDIR)\nsUnicodeToISO88597.obj \
|
||||
.\$(OBJDIR)\nsUnicodeToISO88598.obj \
|
||||
.\$(OBJDIR)\nsUnicodeToISO88598E.obj \
|
||||
.\$(OBJDIR)\nsUnicodeToISO88598I.obj \
|
||||
.\$(OBJDIR)\nsUnicodeToISO88599.obj \
|
||||
.\$(OBJDIR)\nsUnicodeToISO885910.obj \
|
||||
.\$(OBJDIR)\nsUnicodeToISO885913.obj \
|
||||
|
|
|
@ -43,8 +43,3 @@ nsARMSCII8ToUnicode::nsARMSCII8ToUnicode()
|
|||
{
|
||||
}
|
||||
|
||||
nsresult nsARMSCII8ToUnicode::CreateInstance(nsISupports ** aResult)
|
||||
{
|
||||
*aResult = new nsARMSCII8ToUnicode();
|
||||
return (*aResult == NULL)? NS_ERROR_OUT_OF_MEMORY : NS_OK;
|
||||
}
|
||||
|
|
|
@ -43,10 +43,6 @@ public:
|
|||
*/
|
||||
nsARMSCII8ToUnicode();
|
||||
|
||||
/**
|
||||
* Static class constructor.
|
||||
*/
|
||||
static nsresult CreateInstance(nsISupports **aResult);
|
||||
};
|
||||
|
||||
#endif /* nsARMSCII8ToUnicode_h___ */
|
||||
|
|
|
@ -42,9 +42,3 @@ nsAsciiToUnicode::nsAsciiToUnicode()
|
|||
(uMappingTable*) &g_utMappingTable)
|
||||
{
|
||||
}
|
||||
|
||||
nsresult nsAsciiToUnicode::CreateInstance(nsISupports ** aResult)
|
||||
{
|
||||
*aResult = new nsAsciiToUnicode();
|
||||
return (*aResult == NULL)? NS_ERROR_OUT_OF_MEMORY : NS_OK;
|
||||
}
|
||||
|
|
|
@ -43,10 +43,6 @@ public:
|
|||
*/
|
||||
nsAsciiToUnicode();
|
||||
|
||||
/**
|
||||
* Static class constructor.
|
||||
*/
|
||||
static nsresult CreateInstance(nsISupports **aResult);
|
||||
};
|
||||
|
||||
#endif /* nsAsciiToUnicode_h___ */
|
||||
|
|
|
@ -43,8 +43,3 @@ nsCP1250ToUnicode::nsCP1250ToUnicode()
|
|||
{
|
||||
}
|
||||
|
||||
nsresult nsCP1250ToUnicode::CreateInstance(nsISupports ** aResult)
|
||||
{
|
||||
*aResult = new nsCP1250ToUnicode();
|
||||
return (*aResult == NULL)? NS_ERROR_OUT_OF_MEMORY : NS_OK;
|
||||
}
|
||||
|
|
|
@ -43,10 +43,7 @@ public:
|
|||
*/
|
||||
nsCP1250ToUnicode();
|
||||
|
||||
/**
|
||||
* Static class constructor.
|
||||
*/
|
||||
static nsresult CreateInstance(nsISupports **aResult);
|
||||
|
||||
};
|
||||
|
||||
#endif /* nsCP1250ToUnicode_h___ */
|
||||
|
|
|
@ -42,9 +42,3 @@ nsCP1251ToUnicode::nsCP1251ToUnicode()
|
|||
(uMappingTable*) &g_utMappingTable)
|
||||
{
|
||||
}
|
||||
|
||||
nsresult nsCP1251ToUnicode::CreateInstance(nsISupports ** aResult)
|
||||
{
|
||||
*aResult = new nsCP1251ToUnicode();
|
||||
return (*aResult == NULL)? NS_ERROR_OUT_OF_MEMORY : NS_OK;
|
||||
}
|
||||
|
|
|
@ -43,10 +43,6 @@ public:
|
|||
*/
|
||||
nsCP1251ToUnicode();
|
||||
|
||||
/**
|
||||
* Static class constructor.
|
||||
*/
|
||||
static nsresult CreateInstance(nsISupports **aResult);
|
||||
};
|
||||
|
||||
#endif /* nsCP1251ToUnicode_h___ */
|
||||
|
|
|
@ -1,50 +0,0 @@
|
|||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is Mozilla Communicator client code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape Communications
|
||||
* Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
#include "nsCP1252ToUnicode.h"
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
// Global functions and data [declaration]
|
||||
|
||||
static PRUint16 g_utMappingTable[] = {
|
||||
#include "cp1252.ut"
|
||||
};
|
||||
|
||||
static PRInt16 g_utShiftTable[] = {
|
||||
0, u1ByteCharset ,
|
||||
ShiftCell(0,0,0,0,0,0,0,0)
|
||||
};
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
// Class nsCP1252ToUnicode [implementation]
|
||||
|
||||
nsCP1252ToUnicode::nsCP1252ToUnicode()
|
||||
: nsOneByteDecoderSupport((uShiftTable*) &g_utShiftTable,
|
||||
(uMappingTable*) &g_utMappingTable)
|
||||
{
|
||||
}
|
||||
|
||||
nsresult nsCP1252ToUnicode::CreateInstance(nsISupports ** aResult)
|
||||
{
|
||||
*aResult = new nsCP1252ToUnicode();
|
||||
return (*aResult == NULL)? NS_ERROR_OUT_OF_MEMORY : NS_OK;
|
||||
}
|
|
@ -1,52 +0,0 @@
|
|||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is Mozilla Communicator client code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape Communications
|
||||
* Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
#ifndef nsCP1252ToUnicode_h___
|
||||
#define nsCP1252ToUnicode_h___
|
||||
|
||||
#include "nsUCvLatinSupport.h"
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
// Class nsCP1252ToUnicode [declaration]
|
||||
|
||||
/**
|
||||
* A character set converter from CP1252 to Unicode.
|
||||
*
|
||||
* @created 20/Apr/1999
|
||||
* @author Catalin Rotaru [CATA]
|
||||
*/
|
||||
class nsCP1252ToUnicode : public nsOneByteDecoderSupport
|
||||
{
|
||||
public:
|
||||
|
||||
/**
|
||||
* Class constructor.
|
||||
*/
|
||||
nsCP1252ToUnicode();
|
||||
|
||||
/**
|
||||
* Static class constructor.
|
||||
*/
|
||||
static nsresult CreateInstance(nsISupports **aResult);
|
||||
};
|
||||
|
||||
#endif /* nsCP1252ToUnicode_h___ */
|
|
@ -43,8 +43,3 @@ nsCP1253ToUnicode::nsCP1253ToUnicode()
|
|||
{
|
||||
}
|
||||
|
||||
nsresult nsCP1253ToUnicode::CreateInstance(nsISupports ** aResult)
|
||||
{
|
||||
*aResult = new nsCP1253ToUnicode();
|
||||
return (*aResult == NULL)? NS_ERROR_OUT_OF_MEMORY : NS_OK;
|
||||
}
|
||||
|
|
|
@ -43,10 +43,6 @@ public:
|
|||
*/
|
||||
nsCP1253ToUnicode();
|
||||
|
||||
/**
|
||||
* Static class constructor.
|
||||
*/
|
||||
static nsresult CreateInstance(nsISupports **aResult);
|
||||
};
|
||||
|
||||
#endif /* nsCP1253ToUnicode_h___ */
|
||||
|
|
|
@ -42,9 +42,3 @@ nsCP1254ToUnicode::nsCP1254ToUnicode()
|
|||
(uMappingTable*) &g_utMappingTable)
|
||||
{
|
||||
}
|
||||
|
||||
nsresult nsCP1254ToUnicode::CreateInstance(nsISupports ** aResult)
|
||||
{
|
||||
*aResult = new nsCP1254ToUnicode();
|
||||
return (*aResult == NULL)? NS_ERROR_OUT_OF_MEMORY : NS_OK;
|
||||
}
|
||||
|
|
|
@ -43,10 +43,6 @@ public:
|
|||
*/
|
||||
nsCP1254ToUnicode();
|
||||
|
||||
/**
|
||||
* Static class constructor.
|
||||
*/
|
||||
static nsresult CreateInstance(nsISupports **aResult);
|
||||
};
|
||||
|
||||
#endif /* nsCP1254ToUnicode_h___ */
|
||||
|
|
|
@ -42,9 +42,3 @@ nsCP1255ToUnicode::nsCP1255ToUnicode()
|
|||
(uMappingTable*) &g_utMappingTable)
|
||||
{
|
||||
}
|
||||
|
||||
nsresult nsCP1255ToUnicode::CreateInstance(nsISupports ** aResult)
|
||||
{
|
||||
*aResult = new nsCP1255ToUnicode();
|
||||
return (*aResult == NULL)? NS_ERROR_OUT_OF_MEMORY : NS_OK;
|
||||
}
|
||||
|
|
|
@ -43,10 +43,6 @@ public:
|
|||
*/
|
||||
nsCP1255ToUnicode();
|
||||
|
||||
/**
|
||||
* Static class constructor.
|
||||
*/
|
||||
static nsresult CreateInstance(nsISupports **aResult);
|
||||
};
|
||||
|
||||
#endif /* nsCP1255ToUnicode_h___ */
|
||||
|
|
|
@ -43,8 +43,3 @@ nsCP1256ToUnicode::nsCP1256ToUnicode()
|
|||
{
|
||||
}
|
||||
|
||||
nsresult nsCP1256ToUnicode::CreateInstance(nsISupports ** aResult)
|
||||
{
|
||||
*aResult = new nsCP1256ToUnicode();
|
||||
return (*aResult == NULL)? NS_ERROR_OUT_OF_MEMORY : NS_OK;
|
||||
}
|
||||
|
|
|
@ -42,11 +42,6 @@ public:
|
|||
* Class constructor.
|
||||
*/
|
||||
nsCP1256ToUnicode();
|
||||
|
||||
/**
|
||||
* Static class constructor.
|
||||
*/
|
||||
static nsresult CreateInstance(nsISupports **aResult);
|
||||
};
|
||||
|
||||
#endif /* nsCP1256ToUnicode_h___ */
|
||||
|
|
|
@ -42,9 +42,3 @@ nsCP1257ToUnicode::nsCP1257ToUnicode()
|
|||
(uMappingTable*) &g_utMappingTable)
|
||||
{
|
||||
}
|
||||
|
||||
nsresult nsCP1257ToUnicode::CreateInstance(nsISupports ** aResult)
|
||||
{
|
||||
*aResult = new nsCP1257ToUnicode();
|
||||
return (*aResult == NULL)? NS_ERROR_OUT_OF_MEMORY : NS_OK;
|
||||
}
|
||||
|
|
|
@ -43,10 +43,6 @@ public:
|
|||
*/
|
||||
nsCP1257ToUnicode();
|
||||
|
||||
/**
|
||||
* Static class constructor.
|
||||
*/
|
||||
static nsresult CreateInstance(nsISupports **aResult);
|
||||
};
|
||||
|
||||
#endif /* nsCP1257ToUnicode_h___ */
|
||||
|
|
|
@ -43,8 +43,3 @@ nsCP1258ToUnicode::nsCP1258ToUnicode()
|
|||
{
|
||||
}
|
||||
|
||||
nsresult nsCP1258ToUnicode::CreateInstance(nsISupports ** aResult)
|
||||
{
|
||||
*aResult = new nsCP1258ToUnicode();
|
||||
return (*aResult == NULL)? NS_ERROR_OUT_OF_MEMORY : NS_OK;
|
||||
}
|
||||
|
|
|
@ -43,10 +43,6 @@ public:
|
|||
*/
|
||||
nsCP1258ToUnicode();
|
||||
|
||||
/**
|
||||
* Static class constructor.
|
||||
*/
|
||||
static nsresult CreateInstance(nsISupports **aResult);
|
||||
};
|
||||
|
||||
#endif /* nsCP1258ToUnicode_h___ */
|
||||
|
|
|
@ -43,8 +43,4 @@ nsCP866ToUnicode::nsCP866ToUnicode()
|
|||
{
|
||||
}
|
||||
|
||||
nsresult nsCP866ToUnicode::CreateInstance(nsISupports ** aResult)
|
||||
{
|
||||
*aResult = new nsCP866ToUnicode();
|
||||
return (*aResult == NULL)? NS_ERROR_OUT_OF_MEMORY : NS_OK;
|
||||
}
|
||||
|
||||
|
|
|
@ -43,10 +43,6 @@ public:
|
|||
*/
|
||||
nsCP866ToUnicode();
|
||||
|
||||
/**
|
||||
* Static class constructor.
|
||||
*/
|
||||
static nsresult CreateInstance(nsISupports **aResult);
|
||||
};
|
||||
|
||||
#endif /* nsCP866ToUnicode_h___ */
|
||||
|
|
|
@ -42,9 +42,3 @@ nsCP874ToUnicode::nsCP874ToUnicode()
|
|||
(uMappingTable*) &g_utMappingTable)
|
||||
{
|
||||
}
|
||||
|
||||
nsresult nsCP874ToUnicode::CreateInstance(nsISupports ** aResult)
|
||||
{
|
||||
*aResult = new nsCP874ToUnicode();
|
||||
return (*aResult == NULL)? NS_ERROR_OUT_OF_MEMORY : NS_OK;
|
||||
}
|
||||
|
|
|
@ -43,10 +43,6 @@ public:
|
|||
*/
|
||||
nsCP874ToUnicode();
|
||||
|
||||
/**
|
||||
* Static class constructor.
|
||||
*/
|
||||
static nsresult CreateInstance(nsISupports **aResult);
|
||||
};
|
||||
|
||||
#endif /* nsCP874ToUnicode_h___ */
|
||||
|
|
|
@ -42,9 +42,3 @@ nsISO885910ToUnicode::nsISO885910ToUnicode()
|
|||
(uMappingTable*) &g_utMappingTable)
|
||||
{
|
||||
}
|
||||
|
||||
nsresult nsISO885910ToUnicode::CreateInstance(nsISupports ** aResult)
|
||||
{
|
||||
*aResult = new nsISO885910ToUnicode();
|
||||
return (*aResult == NULL)? NS_ERROR_OUT_OF_MEMORY : NS_OK;
|
||||
}
|
||||
|
|
|
@ -43,10 +43,6 @@ public:
|
|||
*/
|
||||
nsISO885910ToUnicode();
|
||||
|
||||
/**
|
||||
* Static class constructor.
|
||||
*/
|
||||
static nsresult CreateInstance(nsISupports **aResult);
|
||||
};
|
||||
|
||||
#endif /* nsISO885910ToUnicode_h___ */
|
||||
|
|
|
@ -43,8 +43,3 @@ nsISO885913ToUnicode::nsISO885913ToUnicode()
|
|||
{
|
||||
}
|
||||
|
||||
nsresult nsISO885913ToUnicode::CreateInstance(nsISupports ** aResult)
|
||||
{
|
||||
*aResult = new nsISO885913ToUnicode();
|
||||
return (*aResult == NULL)? NS_ERROR_OUT_OF_MEMORY : NS_OK;
|
||||
}
|
||||
|
|
|
@ -43,10 +43,6 @@ public:
|
|||
*/
|
||||
nsISO885913ToUnicode();
|
||||
|
||||
/**
|
||||
* Static class constructor.
|
||||
*/
|
||||
static nsresult CreateInstance(nsISupports **aResult);
|
||||
};
|
||||
|
||||
#endif /* nsISO885913ToUnicode_h___ */
|
||||
|
|
|
@ -42,9 +42,3 @@ nsISO885914ToUnicode::nsISO885914ToUnicode()
|
|||
(uMappingTable*) &g_utMappingTable)
|
||||
{
|
||||
}
|
||||
|
||||
nsresult nsISO885914ToUnicode::CreateInstance(nsISupports ** aResult)
|
||||
{
|
||||
*aResult = new nsISO885914ToUnicode();
|
||||
return (*aResult == NULL)? NS_ERROR_OUT_OF_MEMORY : NS_OK;
|
||||
}
|
||||
|
|
|
@ -43,10 +43,6 @@ public:
|
|||
*/
|
||||
nsISO885914ToUnicode();
|
||||
|
||||
/**
|
||||
* Static class constructor.
|
||||
*/
|
||||
static nsresult CreateInstance(nsISupports **aResult);
|
||||
};
|
||||
|
||||
#endif /* nsISO885914ToUnicode_h___ */
|
||||
|
|
|
@ -42,9 +42,3 @@ nsISO885915ToUnicode::nsISO885915ToUnicode()
|
|||
(uMappingTable*) &g_utMappingTable)
|
||||
{
|
||||
}
|
||||
|
||||
nsresult nsISO885915ToUnicode::CreateInstance(nsISupports ** aResult)
|
||||
{
|
||||
*aResult = new nsISO885915ToUnicode();
|
||||
return (*aResult == NULL)? NS_ERROR_OUT_OF_MEMORY : NS_OK;
|
||||
}
|
||||
|
|
|
@ -43,10 +43,6 @@ public:
|
|||
*/
|
||||
nsISO885915ToUnicode();
|
||||
|
||||
/**
|
||||
* Static class constructor.
|
||||
*/
|
||||
static nsresult CreateInstance(nsISupports **aResult);
|
||||
};
|
||||
|
||||
#endif /* nsISO885915ToUnicode_h___ */
|
||||
|
|
|
@ -1,50 +0,0 @@
|
|||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is Mozilla Communicator client code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape Communications
|
||||
* Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
#include "nsISO88591ToUnicode.h"
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
// Global functions and data [declaration]
|
||||
|
||||
static PRUint16 g_utMappingTable[] = {
|
||||
#include "cp1252.ut"
|
||||
};
|
||||
|
||||
static PRInt16 g_utShiftTable[] = {
|
||||
0, u1ByteCharset ,
|
||||
ShiftCell(0,0,0,0,0,0,0,0)
|
||||
};
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
// Class nsISO88591ToUnicode [implementation]
|
||||
|
||||
nsISO88591ToUnicode::nsISO88591ToUnicode()
|
||||
: nsOneByteDecoderSupport((uShiftTable*) &g_utShiftTable,
|
||||
(uMappingTable*) &g_utMappingTable)
|
||||
{
|
||||
}
|
||||
|
||||
nsresult nsISO88591ToUnicode::CreateInstance(nsISupports ** aResult)
|
||||
{
|
||||
*aResult = new nsISO88591ToUnicode();
|
||||
return (*aResult == NULL)? NS_ERROR_OUT_OF_MEMORY : NS_OK;
|
||||
}
|
|
@ -1,52 +0,0 @@
|
|||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is Mozilla Communicator client code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape Communications
|
||||
* Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
#ifndef nsISO88591ToUnicode_h___
|
||||
#define nsISO88591ToUnicode_h___
|
||||
|
||||
#include "nsUCvLatinSupport.h"
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
// Class nsISO88591ToUnicode [declaration]
|
||||
|
||||
/**
|
||||
* A character set converter from ISO88591 to Unicode.
|
||||
*
|
||||
* @created 23/Nov/1998
|
||||
* @author Catalin Rotaru [CATA]
|
||||
*/
|
||||
class nsISO88591ToUnicode : public nsOneByteDecoderSupport
|
||||
{
|
||||
public:
|
||||
|
||||
/**
|
||||
* Class constructor.
|
||||
*/
|
||||
nsISO88591ToUnicode();
|
||||
|
||||
/**
|
||||
* Static class constructor.
|
||||
*/
|
||||
static nsresult CreateInstance(nsISupports **aResult);
|
||||
};
|
||||
|
||||
#endif /* nsISO88591ToUnicode_h___ */
|
|
@ -43,8 +43,3 @@ nsISO88592ToUnicode::nsISO88592ToUnicode()
|
|||
{
|
||||
}
|
||||
|
||||
nsresult nsISO88592ToUnicode::CreateInstance(nsISupports ** aResult)
|
||||
{
|
||||
*aResult = new nsISO88592ToUnicode();
|
||||
return (*aResult == NULL)? NS_ERROR_OUT_OF_MEMORY : NS_OK;
|
||||
}
|
||||
|
|
|
@ -43,10 +43,6 @@ public:
|
|||
*/
|
||||
nsISO88592ToUnicode();
|
||||
|
||||
/**
|
||||
* Static class constructor.
|
||||
*/
|
||||
static nsresult CreateInstance(nsISupports **aResult);
|
||||
};
|
||||
|
||||
#endif /* nsISO88592ToUnicode_h___ */
|
||||
|
|
|
@ -43,8 +43,3 @@ nsISO88593ToUnicode::nsISO88593ToUnicode()
|
|||
{
|
||||
}
|
||||
|
||||
nsresult nsISO88593ToUnicode::CreateInstance(nsISupports ** aResult)
|
||||
{
|
||||
*aResult = new nsISO88593ToUnicode();
|
||||
return (*aResult == NULL)? NS_ERROR_OUT_OF_MEMORY : NS_OK;
|
||||
}
|
||||
|
|
|
@ -43,10 +43,6 @@ public:
|
|||
*/
|
||||
nsISO88593ToUnicode();
|
||||
|
||||
/**
|
||||
* Static class constructor.
|
||||
*/
|
||||
static nsresult CreateInstance(nsISupports **aResult);
|
||||
};
|
||||
|
||||
#endif /* nsISO88593ToUnicode_h___ */
|
||||
|
|
|
@ -43,8 +43,4 @@ nsISO88594ToUnicode::nsISO88594ToUnicode()
|
|||
{
|
||||
}
|
||||
|
||||
nsresult nsISO88594ToUnicode::CreateInstance(nsISupports ** aResult)
|
||||
{
|
||||
*aResult = new nsISO88594ToUnicode();
|
||||
return (*aResult == NULL)? NS_ERROR_OUT_OF_MEMORY : NS_OK;
|
||||
}
|
||||
|
||||
|
|
|
@ -43,10 +43,6 @@ public:
|
|||
*/
|
||||
nsISO88594ToUnicode();
|
||||
|
||||
/**
|
||||
* Static class constructor.
|
||||
*/
|
||||
static nsresult CreateInstance(nsISupports **aResult);
|
||||
};
|
||||
|
||||
#endif /* nsISO88594ToUnicode_h___ */
|
||||
|
|
|
@ -43,8 +43,3 @@ nsISO88595ToUnicode::nsISO88595ToUnicode()
|
|||
{
|
||||
}
|
||||
|
||||
nsresult nsISO88595ToUnicode::CreateInstance(nsISupports ** aResult)
|
||||
{
|
||||
*aResult = new nsISO88595ToUnicode();
|
||||
return (*aResult == NULL)? NS_ERROR_OUT_OF_MEMORY : NS_OK;
|
||||
}
|
||||
|
|
|
@ -43,10 +43,6 @@ public:
|
|||
*/
|
||||
nsISO88595ToUnicode();
|
||||
|
||||
/**
|
||||
* Static class constructor.
|
||||
*/
|
||||
static nsresult CreateInstance(nsISupports **aResult);
|
||||
};
|
||||
|
||||
#endif /* nsISO88595ToUnicode_h___ */
|
||||
|
|
|
@ -0,0 +1,36 @@
|
|||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is Mozilla Communicator client code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape Communications
|
||||
* Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
#include "nsISO88596ToUnicode.h"
|
||||
#include "nsISO88596EToUnicode.h"
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
// Global functions and data [declaration]
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
// Class nsISO88596EToUnicode [implementation]
|
||||
|
||||
nsISO88596EToUnicode::nsISO88596EToUnicode()
|
||||
: nsISO88596ToUnicode()
|
||||
{
|
||||
}
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is Mozilla Communicator client code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape Communications
|
||||
* Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
#ifndef nsISO88596EToUnicode_h___
|
||||
#define nsISO88596EToUnicode_h___
|
||||
|
||||
#include "nsUCvLatinSupport.h"
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
// Class nsISO88596EToUnicode [declaration]
|
||||
|
||||
/**
|
||||
* A character set converter from ISO88596 to Unicode.
|
||||
*
|
||||
* @created 20/Apr/1999
|
||||
* @author Catalin Rotaru [CATA]
|
||||
*/
|
||||
class nsISO88596EToUnicode : public nsISO88596ToUnicode
|
||||
{
|
||||
public:
|
||||
|
||||
/**
|
||||
* Class constructor.
|
||||
*/
|
||||
nsISO88596EToUnicode();
|
||||
|
||||
};
|
||||
|
||||
#endif /* nsISO88596EToUnicode_h___ */
|
|
@ -0,0 +1,33 @@
|
|||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is Mozilla Communicator client code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape Communications
|
||||
* Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
#include "nsISO88596ToUnicode.h"
|
||||
#include "nsISO88596IToUnicode.h"
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
// Class nsISO88596IToUnicode [implementation]
|
||||
|
||||
nsISO88596IToUnicode::nsISO88596IToUnicode()
|
||||
: nsISO88596ToUnicode()
|
||||
{
|
||||
}
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is Mozilla Communicator client code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape Communications
|
||||
* Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
#ifndef nsISO88596IToUnicode_h___
|
||||
#define nsISO88596IToUnicode_h___
|
||||
|
||||
#include "nsUCvLatinSupport.h"
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
// Class nsISO88596IToUnicode [declaration]
|
||||
|
||||
/**
|
||||
* A character set converter from ISO88596I to Unicode.
|
||||
*
|
||||
* @created 20/Apr/1999
|
||||
* @author Catalin Rotaru [CATA]
|
||||
*/
|
||||
class nsISO88596IToUnicode : public nsISO88596ToUnicode
|
||||
{
|
||||
public:
|
||||
|
||||
/**
|
||||
* Class constructor.
|
||||
*/
|
||||
nsISO88596IToUnicode();
|
||||
|
||||
};
|
||||
|
||||
#endif /* nsISO88596IToUnicode_h___ */
|
|
@ -43,8 +43,3 @@ nsISO88596ToUnicode::nsISO88596ToUnicode()
|
|||
{
|
||||
}
|
||||
|
||||
nsresult nsISO88596ToUnicode::CreateInstance(nsISupports ** aResult)
|
||||
{
|
||||
*aResult = new nsISO88596ToUnicode();
|
||||
return (*aResult == NULL)? NS_ERROR_OUT_OF_MEMORY : NS_OK;
|
||||
}
|
||||
|
|
|
@ -43,10 +43,6 @@ public:
|
|||
*/
|
||||
nsISO88596ToUnicode();
|
||||
|
||||
/**
|
||||
* Static class constructor.
|
||||
*/
|
||||
static nsresult CreateInstance(nsISupports **aResult);
|
||||
};
|
||||
|
||||
#endif /* nsISO88596ToUnicode_h___ */
|
||||
|
|
|
@ -43,8 +43,3 @@ nsISO88597ToUnicode::nsISO88597ToUnicode()
|
|||
{
|
||||
}
|
||||
|
||||
nsresult nsISO88597ToUnicode::CreateInstance(nsISupports ** aResult)
|
||||
{
|
||||
*aResult = new nsISO88597ToUnicode();
|
||||
return (*aResult == NULL)? NS_ERROR_OUT_OF_MEMORY : NS_OK;
|
||||
}
|
||||
|
|
|
@ -43,10 +43,6 @@ public:
|
|||
*/
|
||||
nsISO88597ToUnicode();
|
||||
|
||||
/**
|
||||
* Static class constructor.
|
||||
*/
|
||||
static nsresult CreateInstance(nsISupports **aResult);
|
||||
};
|
||||
|
||||
#endif /* nsISO88597ToUnicode_h___ */
|
||||
|
|
|
@ -0,0 +1,36 @@
|
|||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is Mozilla Communicator client code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape Communications
|
||||
* Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
#include "nsISO88598ToUnicode.h"
|
||||
#include "nsISO88598EToUnicode.h"
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
// Global functions and data [declaration]
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
// Class nsISO88598EToUnicode [implementation]
|
||||
|
||||
nsISO88598EToUnicode::nsISO88598EToUnicode()
|
||||
: nsISO88598ToUnicode()
|
||||
{
|
||||
}
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is Mozilla Communicator client code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape Communications
|
||||
* Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
#ifndef nsISO88598EToUnicode_h___
|
||||
#define nsISO88598EToUnicode_h___
|
||||
|
||||
#include "nsUCvLatinSupport.h"
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
// Class nsISO88598EToUnicode [declaration]
|
||||
|
||||
/**
|
||||
* A character set converter from ISO88598 to Unicode.
|
||||
*
|
||||
* @created 20/Apr/1999
|
||||
* @author Catalin Rotaru [CATA]
|
||||
*/
|
||||
class nsISO88598EToUnicode : public nsISO88598ToUnicode
|
||||
{
|
||||
public:
|
||||
|
||||
/**
|
||||
* Class constructor.
|
||||
*/
|
||||
nsISO88598EToUnicode();
|
||||
|
||||
};
|
||||
|
||||
#endif /* nsISO88598EToUnicode_h___ */
|
|
@ -0,0 +1,36 @@
|
|||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is Mozilla Communicator client code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape Communications
|
||||
* Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
#include "nsISO88598ToUnicode.h"
|
||||
#include "nsISO88598IToUnicode.h"
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
// Global functions and data [declaration]
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
// Class nsISO88598IToUnicode [implementation]
|
||||
|
||||
nsISO88598IToUnicode::nsISO88598IToUnicode()
|
||||
: nsISO88598ToUnicode()
|
||||
{
|
||||
}
|
||||
|
|
@ -0,0 +1,49 @@
|
|||
/*-*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is Mozilla Communicator client code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape Communications
|
||||
* Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
#ifndef nsISO88598IToUnicode_h___
|
||||
#define nsISO88598IToUnicode_h___
|
||||
|
||||
#include "nsUCvLatinSupport.h"
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
// Class nsISO88598IToUnicode [declaration]
|
||||
|
||||
/**
|
||||
* A character set converter from ISO88598 to Unicode.
|
||||
*
|
||||
* @created 20/Apr/1999
|
||||
* @author Catalin Rotaru [CATA]
|
||||
*/
|
||||
class nsISO88598IToUnicode : public nsISO88598ToUnicode
|
||||
{
|
||||
public:
|
||||
|
||||
/**
|
||||
* Class constructor.
|
||||
*/
|
||||
nsISO88598IToUnicode();
|
||||
|
||||
};
|
||||
|
||||
#endif /* nsISO88598IToUnicode_h___ */
|
||||
|
|
@ -43,8 +43,3 @@ nsISO88598ToUnicode::nsISO88598ToUnicode()
|
|||
{
|
||||
}
|
||||
|
||||
nsresult nsISO88598ToUnicode::CreateInstance(nsISupports ** aResult)
|
||||
{
|
||||
*aResult = new nsISO88598ToUnicode();
|
||||
return (*aResult == NULL)? NS_ERROR_OUT_OF_MEMORY : NS_OK;
|
||||
}
|
||||
|
|
|
@ -43,10 +43,6 @@ public:
|
|||
*/
|
||||
nsISO88598ToUnicode();
|
||||
|
||||
/**
|
||||
* Static class constructor.
|
||||
*/
|
||||
static nsresult CreateInstance(nsISupports **aResult);
|
||||
};
|
||||
|
||||
#endif /* nsISO88598ToUnicode_h___ */
|
||||
|
|
|
@ -42,9 +42,3 @@ nsISO88599ToUnicode::nsISO88599ToUnicode()
|
|||
(uMappingTable*) &g_utMappingTable)
|
||||
{
|
||||
}
|
||||
|
||||
nsresult nsISO88599ToUnicode::CreateInstance(nsISupports ** aResult)
|
||||
{
|
||||
*aResult = new nsISO88599ToUnicode();
|
||||
return (*aResult == NULL)? NS_ERROR_OUT_OF_MEMORY : NS_OK;
|
||||
}
|
||||
|
|
|
@ -43,10 +43,6 @@ public:
|
|||
*/
|
||||
nsISO88599ToUnicode();
|
||||
|
||||
/**
|
||||
* Static class constructor.
|
||||
*/
|
||||
static nsresult CreateInstance(nsISupports **aResult);
|
||||
};
|
||||
|
||||
#endif /* nsISO88599ToUnicode_h___ */
|
||||
|
|
|
@ -42,9 +42,3 @@ nsISOIR111ToUnicode::nsISOIR111ToUnicode()
|
|||
(uMappingTable*) &g_utMappingTable)
|
||||
{
|
||||
}
|
||||
|
||||
nsresult nsISOIR111ToUnicode::CreateInstance(nsISupports ** aResult)
|
||||
{
|
||||
*aResult = new nsISOIR111ToUnicode();
|
||||
return (*aResult == NULL)? NS_ERROR_OUT_OF_MEMORY : NS_OK;
|
||||
}
|
||||
|
|
|
@ -43,10 +43,6 @@ public:
|
|||
*/
|
||||
nsISOIR111ToUnicode();
|
||||
|
||||
/**
|
||||
* Static class constructor.
|
||||
*/
|
||||
static nsresult CreateInstance(nsISupports **aResult);
|
||||
};
|
||||
|
||||
#endif /* nsISOIR111ToUnicode_h___ */
|
||||
|
|
|
@ -43,8 +43,3 @@ nsKOI8RToUnicode::nsKOI8RToUnicode()
|
|||
{
|
||||
}
|
||||
|
||||
nsresult nsKOI8RToUnicode::CreateInstance(nsISupports ** aResult)
|
||||
{
|
||||
*aResult = new nsKOI8RToUnicode();
|
||||
return (*aResult == NULL)? NS_ERROR_OUT_OF_MEMORY : NS_OK;
|
||||
}
|
||||
|
|
|
@ -43,10 +43,6 @@ public:
|
|||
*/
|
||||
nsKOI8RToUnicode();
|
||||
|
||||
/**
|
||||
* Static class constructor.
|
||||
*/
|
||||
static nsresult CreateInstance(nsISupports **aResult);
|
||||
};
|
||||
|
||||
#endif /* nsKOI8RToUnicode_h___ */
|
||||
|
|
|
@ -42,9 +42,3 @@ nsKOI8UToUnicode::nsKOI8UToUnicode()
|
|||
(uMappingTable*) &g_utMappingTable)
|
||||
{
|
||||
}
|
||||
|
||||
nsresult nsKOI8UToUnicode::CreateInstance(nsISupports ** aResult)
|
||||
{
|
||||
*aResult = new nsKOI8UToUnicode();
|
||||
return (*aResult == NULL)? NS_ERROR_OUT_OF_MEMORY : NS_OK;
|
||||
}
|
||||
|
|
|
@ -43,10 +43,6 @@ public:
|
|||
*/
|
||||
nsKOI8UToUnicode();
|
||||
|
||||
/**
|
||||
* Static class constructor.
|
||||
*/
|
||||
static nsresult CreateInstance(nsISupports **aResult);
|
||||
};
|
||||
|
||||
#endif /* nsKOI8UToUnicode_h___ */
|
||||
|
|
|
@ -29,9 +29,3 @@ nsMUTF7ToUnicode::nsMUTF7ToUnicode()
|
|||
: nsBasicUTF7Decoder(',', '&')
|
||||
{
|
||||
}
|
||||
|
||||
nsresult nsMUTF7ToUnicode::CreateInstance(nsISupports ** aResult)
|
||||
{
|
||||
*aResult = new nsMUTF7ToUnicode();
|
||||
return (*aResult == NULL)? NS_ERROR_OUT_OF_MEMORY : NS_OK;
|
||||
}
|
||||
|
|
|
@ -43,10 +43,6 @@ public:
|
|||
*/
|
||||
nsMUTF7ToUnicode();
|
||||
|
||||
/**
|
||||
* Static class constructor.
|
||||
*/
|
||||
static nsresult CreateInstance(nsISupports **aResult);
|
||||
};
|
||||
|
||||
#endif /* nsMUTF7ToUnicode_h___ */
|
||||
|
|
|
@ -43,12 +43,6 @@ nsMacCEToUnicode::nsMacCEToUnicode()
|
|||
{
|
||||
}
|
||||
|
||||
nsresult nsMacCEToUnicode::CreateInstance(nsISupports ** aResult)
|
||||
{
|
||||
*aResult = new nsMacCEToUnicode();
|
||||
return (*aResult == NULL)? NS_ERROR_OUT_OF_MEMORY : NS_OK;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
// Subclassing of nsTableDecoderSupport class [implementation]
|
||||
|
||||
|
|
|
@ -43,11 +43,6 @@ public:
|
|||
*/
|
||||
nsMacCEToUnicode();
|
||||
|
||||
/**
|
||||
* Static class constructor.
|
||||
*/
|
||||
static nsresult CreateInstance(nsISupports **aResult);
|
||||
|
||||
protected:
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
|
|
|
@ -43,8 +43,3 @@ nsMacCroatianToUnicode::nsMacCroatianToUnicode()
|
|||
{
|
||||
}
|
||||
|
||||
nsresult nsMacCroatianToUnicode::CreateInstance(nsISupports ** aResult)
|
||||
{
|
||||
*aResult = new nsMacCroatianToUnicode();
|
||||
return (*aResult == NULL)? NS_ERROR_OUT_OF_MEMORY : NS_OK;
|
||||
}
|
||||
|
|
|
@ -43,10 +43,6 @@ public:
|
|||
*/
|
||||
nsMacCroatianToUnicode();
|
||||
|
||||
/**
|
||||
* Static class constructor.
|
||||
*/
|
||||
static nsresult CreateInstance(nsISupports **aResult);
|
||||
};
|
||||
|
||||
#endif /* nsMacCroatianToUnicode_h___ */
|
||||
|
|
|
@ -43,8 +43,3 @@ nsMacCyrillicToUnicode::nsMacCyrillicToUnicode()
|
|||
{
|
||||
}
|
||||
|
||||
nsresult nsMacCyrillicToUnicode::CreateInstance(nsISupports ** aResult)
|
||||
{
|
||||
*aResult = new nsMacCyrillicToUnicode();
|
||||
return (*aResult == NULL)? NS_ERROR_OUT_OF_MEMORY : NS_OK;
|
||||
}
|
||||
|
|
|
@ -43,10 +43,6 @@ public:
|
|||
*/
|
||||
nsMacCyrillicToUnicode();
|
||||
|
||||
/**
|
||||
* Static class constructor.
|
||||
*/
|
||||
static nsresult CreateInstance(nsISupports **aResult);
|
||||
};
|
||||
|
||||
#endif /* nsMacCyrillicToUnicode_h___ */
|
||||
|
|
|
@ -43,12 +43,6 @@ nsMacGreekToUnicode::nsMacGreekToUnicode()
|
|||
{
|
||||
}
|
||||
|
||||
nsresult nsMacGreekToUnicode::CreateInstance(nsISupports ** aResult)
|
||||
{
|
||||
*aResult = new nsMacGreekToUnicode();
|
||||
return (*aResult == NULL)? NS_ERROR_OUT_OF_MEMORY : NS_OK;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
// Subclassing of nsTableDecoderSupport class [implementation]
|
||||
|
||||
|
|
|
@ -43,11 +43,6 @@ public:
|
|||
*/
|
||||
nsMacGreekToUnicode();
|
||||
|
||||
/**
|
||||
* Static class constructor.
|
||||
*/
|
||||
static nsresult CreateInstance(nsISupports **aResult);
|
||||
|
||||
protected:
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
|
|
|
@ -42,9 +42,3 @@ nsMacIcelandicToUnicode::nsMacIcelandicToUnicode()
|
|||
(uMappingTable*) &g_utMappingTable)
|
||||
{
|
||||
}
|
||||
|
||||
nsresult nsMacIcelandicToUnicode::CreateInstance(nsISupports ** aResult)
|
||||
{
|
||||
*aResult = new nsMacIcelandicToUnicode();
|
||||
return (*aResult == NULL)? NS_ERROR_OUT_OF_MEMORY : NS_OK;
|
||||
}
|
||||
|
|
|
@ -43,10 +43,6 @@ public:
|
|||
*/
|
||||
nsMacIcelandicToUnicode();
|
||||
|
||||
/**
|
||||
* Static class constructor.
|
||||
*/
|
||||
static nsresult CreateInstance(nsISupports **aResult);
|
||||
};
|
||||
|
||||
#endif /* nsMacIcelandicToUnicode_h___ */
|
||||
|
|
|
@ -1,62 +0,0 @@
|
|||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is Mozilla Communicator client code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape Communications
|
||||
* Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
#include "nsMacRomanToUnicode.h"
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
// Global functions and data [declaration]
|
||||
|
||||
static PRUint16 g_MacRomanMappingTable[] = {
|
||||
#include "macroman.ut"
|
||||
};
|
||||
|
||||
static PRInt16 g_MacRomanShiftTable[] = {
|
||||
1, u1ByteCharset ,
|
||||
ShiftCell(0,0,0,0,0,0,0,0)
|
||||
};
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
// Class nsMacRomanToUnicode [implementation]
|
||||
|
||||
nsMacRomanToUnicode::nsMacRomanToUnicode()
|
||||
: nsTableDecoderSupport((uShiftTable*) &g_MacRomanShiftTable,
|
||||
(uMappingTable*) &g_MacRomanMappingTable)
|
||||
{
|
||||
}
|
||||
|
||||
nsresult nsMacRomanToUnicode::CreateInstance(nsISupports ** aResult)
|
||||
{
|
||||
*aResult = new nsMacRomanToUnicode();
|
||||
return (*aResult == NULL)? NS_ERROR_OUT_OF_MEMORY : NS_OK;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
// Subclassing of nsTableDecoderSupport class [implementation]
|
||||
|
||||
NS_IMETHODIMP nsMacRomanToUnicode::GetMaxLength(const char * aSrc,
|
||||
PRInt32 aSrcLength,
|
||||
PRInt32 * aDestLength)
|
||||
{
|
||||
// we are a single byte to Unicode converter, so...
|
||||
*aDestLength = aSrcLength;
|
||||
return NS_OK_UDEC_EXACTLENGTH;
|
||||
}
|
|
@ -1,60 +0,0 @@
|
|||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is Mozilla Communicator client code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape Communications
|
||||
* Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
#ifndef nsMacRomanToUnicode_h___
|
||||
#define nsMacRomanToUnicode_h___
|
||||
|
||||
#include "nsUCvLatinSupport.h"
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
// Class nsMacRomanToUnicode [declaration]
|
||||
|
||||
/**
|
||||
* A character set converter from MacRoman to Unicode.
|
||||
*
|
||||
* @created 05/Apr/1999
|
||||
* @author Catalin Rotaru [CATA]
|
||||
*/
|
||||
class nsMacRomanToUnicode : public nsTableDecoderSupport
|
||||
{
|
||||
public:
|
||||
|
||||
/**
|
||||
* Class constructor.
|
||||
*/
|
||||
nsMacRomanToUnicode();
|
||||
|
||||
/**
|
||||
* Static class constructor.
|
||||
*/
|
||||
static nsresult CreateInstance(nsISupports **aResult);
|
||||
|
||||
protected:
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
// Subclassing of nsDecoderSupport class [declaration]
|
||||
|
||||
NS_IMETHOD GetMaxLength(const char * aSrc, PRInt32 aSrcLength,
|
||||
PRInt32 * aDestLength);
|
||||
};
|
||||
|
||||
#endif /* nsMacRomanToUnicode_h___ */
|
|
@ -42,9 +42,3 @@ nsMacRomanianToUnicode::nsMacRomanianToUnicode()
|
|||
(uMappingTable*) &g_utMappingTable)
|
||||
{
|
||||
}
|
||||
|
||||
nsresult nsMacRomanianToUnicode::CreateInstance(nsISupports ** aResult)
|
||||
{
|
||||
*aResult = new nsMacRomanianToUnicode();
|
||||
return (*aResult == NULL)? NS_ERROR_OUT_OF_MEMORY : NS_OK;
|
||||
}
|
||||
|
|
|
@ -43,10 +43,6 @@ public:
|
|||
*/
|
||||
nsMacRomanianToUnicode();
|
||||
|
||||
/**
|
||||
* Static class constructor.
|
||||
*/
|
||||
static nsresult CreateInstance(nsISupports **aResult);
|
||||
};
|
||||
|
||||
#endif /* nsMacRomanianToUnicode_h___ */
|
||||
|
|
|
@ -43,12 +43,6 @@ nsMacTurkishToUnicode::nsMacTurkishToUnicode()
|
|||
{
|
||||
}
|
||||
|
||||
nsresult nsMacTurkishToUnicode::CreateInstance(nsISupports ** aResult)
|
||||
{
|
||||
*aResult = new nsMacTurkishToUnicode();
|
||||
return (*aResult == NULL)? NS_ERROR_OUT_OF_MEMORY : NS_OK;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
// Subclassing of nsTableDecoderSupport class [implementation]
|
||||
|
||||
|
|
|
@ -43,11 +43,6 @@ public:
|
|||
*/
|
||||
nsMacTurkishToUnicode();
|
||||
|
||||
/**
|
||||
* Static class constructor.
|
||||
*/
|
||||
static nsresult CreateInstance(nsISupports **aResult);
|
||||
|
||||
protected:
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
|
|
|
@ -42,9 +42,3 @@ nsMacUkrainianToUnicode::nsMacUkrainianToUnicode()
|
|||
(uMappingTable*) &g_utMappingTable)
|
||||
{
|
||||
}
|
||||
|
||||
nsresult nsMacUkrainianToUnicode::CreateInstance(nsISupports ** aResult)
|
||||
{
|
||||
*aResult = new nsMacUkrainianToUnicode();
|
||||
return (*aResult == NULL)? NS_ERROR_OUT_OF_MEMORY : NS_OK;
|
||||
}
|
||||
|
|
|
@ -43,10 +43,6 @@ public:
|
|||
*/
|
||||
nsMacUkrainianToUnicode();
|
||||
|
||||
/**
|
||||
* Static class constructor.
|
||||
*/
|
||||
static nsresult CreateInstance(nsISupports **aResult);
|
||||
};
|
||||
|
||||
#endif /* nsMacUkrainianToUnicode_h___ */
|
||||
|
|
|
@ -46,12 +46,6 @@ nsT61ToUnicode::nsT61ToUnicode()
|
|||
{
|
||||
}
|
||||
|
||||
nsresult nsT61ToUnicode::CreateInstance(nsISupports ** aResult)
|
||||
{
|
||||
*aResult = new nsT61ToUnicode();
|
||||
return (*aResult == NULL)? NS_ERROR_OUT_OF_MEMORY : NS_OK;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
// Subclassing of nsTableDecoderSupport class [implementation]
|
||||
|
||||
|
|
|
@ -43,11 +43,6 @@ public:
|
|||
*/
|
||||
nsT61ToUnicode();
|
||||
|
||||
/**
|
||||
* Static class constructor.
|
||||
*/
|
||||
static nsresult CreateInstance(nsISupports **aResult);
|
||||
|
||||
protected:
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
|
|
|
@ -42,9 +42,3 @@ nsTCVN5712ToUnicode::nsTCVN5712ToUnicode()
|
|||
(uMappingTable*) &g_utMappingTable)
|
||||
{
|
||||
}
|
||||
|
||||
nsresult nsTCVN5712ToUnicode::CreateInstance(nsISupports ** aResult)
|
||||
{
|
||||
*aResult = new nsTCVN5712ToUnicode();
|
||||
return (*aResult == NULL)? NS_ERROR_OUT_OF_MEMORY : NS_OK;
|
||||
}
|
||||
|
|
|
@ -43,10 +43,6 @@ public:
|
|||
*/
|
||||
nsTCVN5712ToUnicode();
|
||||
|
||||
/**
|
||||
* Static class constructor.
|
||||
*/
|
||||
static nsresult CreateInstance(nsISupports **aResult);
|
||||
};
|
||||
|
||||
#endif /* nsTCVN5712ToUnicode_h___ */
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
*/
|
||||
|
||||
#include "nsUCS2BEToUnicode.h"
|
||||
#include "nsUCvlatinDll.h"
|
||||
#include <string.h>
|
||||
//----------------------------------------------------------------------
|
||||
// Global functions and data [declaration]
|
||||
|
@ -210,9 +211,9 @@ NS_IMETHODIMP nsUTF16DiffEndianToUnicode::Convert(
|
|||
|
||||
return res;
|
||||
}
|
||||
|
||||
static char BOM[] = {(char)0xfe, (char)0xff};
|
||||
#define IsBigEndian() (0xFEFF == *((PRUint16*)BOM))
|
||||
|
||||
nsresult NEW_UTF16BEToUnicode(nsISupports **aResult)
|
||||
{
|
||||
if(IsBigEndian()) {
|
||||
|
@ -231,3 +232,171 @@ nsresult NEW_UTF16LEToUnicode(nsISupports **aResult)
|
|||
}
|
||||
return (NULL == *aResult) ? NS_ERROR_OUT_OF_MEMORY : NS_OK;
|
||||
}
|
||||
|
||||
//============== above code is obsolete ==============================
|
||||
|
||||
nsresult UTF16ConvertToUnicode(PRUint8 mState, PRUint8 mData, const char * aSrc, PRInt32 * aSrcLength, PRUnichar * aDest, PRInt32 * aDestLength)
|
||||
{
|
||||
const char* src = aSrc;
|
||||
const char* srcEnd = aSrc + *aSrcLength;
|
||||
PRUnichar* dest = aDest;
|
||||
PRUnichar* destEnd = aDest + *aDestLength;
|
||||
PRInt32 copybytes;
|
||||
|
||||
if(2 == mState) // first time called
|
||||
{
|
||||
// eleminate BOM
|
||||
if(0xFEFF == *((PRUnichar*)src)) {
|
||||
src+=2;
|
||||
} else if(0xFFFE == *((PRUnichar*)src)) {
|
||||
*aSrcLength=0;
|
||||
*aDestLength=0;
|
||||
return NS_ERROR_ILLEGAL_INPUT;
|
||||
}
|
||||
mState=0;
|
||||
}
|
||||
|
||||
if((1 == mState) && (src < srcEnd))
|
||||
{
|
||||
if(dest >= destEnd)
|
||||
goto error;
|
||||
if(src>=srcEnd)
|
||||
goto done;
|
||||
char tmpbuf[2];
|
||||
PRUnichar * up = (PRUnichar*) &tmpbuf[0];
|
||||
tmpbuf[0]= mData;
|
||||
tmpbuf[1]= *src++;
|
||||
*dest++ = *up;
|
||||
}
|
||||
|
||||
copybytes = (destEnd-dest)*2;
|
||||
if(copybytes > (0xFFFE & (srcEnd-src)))
|
||||
copybytes = 0xFFFE & (srcEnd-src);
|
||||
memcpy(dest,src,copybytes);
|
||||
src +=copybytes;
|
||||
dest +=(copybytes/2);
|
||||
if(srcEnd==src) {
|
||||
mState = 0;
|
||||
} else if(1 == (srcEnd-src) ) {
|
||||
mState = 1;
|
||||
mData = *src++;
|
||||
} else {
|
||||
goto error;
|
||||
}
|
||||
|
||||
done:
|
||||
*aDestLength = dest - aDest;
|
||||
*aSrcLength = src - aSrc;
|
||||
return NS_OK;
|
||||
|
||||
error:
|
||||
*aDestLength = dest - aDest;
|
||||
*aSrcLength = src - aSrc;
|
||||
return NS_OK_UDEC_MOREOUTPUT;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsUTF16BEToUnicode::Reset()
|
||||
{
|
||||
mState =2;
|
||||
mData=0;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsUTF16BEToUnicode::Convert(const char * aSrc, PRInt32 * aSrcLength,
|
||||
PRUnichar * aDest, PRInt32 * aDestLength)
|
||||
{
|
||||
if (!IsBigEndian()) {
|
||||
// process nsUTF16DiffEndianToUnicode
|
||||
if(2 == mState) // first time called
|
||||
{
|
||||
if(0xFFFE == *((PRUnichar*)aSrc)) {
|
||||
aSrc+=2;
|
||||
*aSrcLength-=2;
|
||||
} else if(0xFEFF == *((PRUnichar*)aSrc)) {
|
||||
// eleminate BOM
|
||||
*aSrcLength=0;
|
||||
*aDestLength=0;
|
||||
return NS_ERROR_ILLEGAL_INPUT;
|
||||
}
|
||||
mState=0;
|
||||
}
|
||||
}
|
||||
|
||||
nsresult res = UTF16ConvertToUnicode(mState, mData, aSrc, aSrcLength, aDest, aDestLength);
|
||||
|
||||
if (!IsBigEndian()) {
|
||||
// process nsUTF16DiffEndianToUnicode
|
||||
PRInt32 i;
|
||||
|
||||
// copy
|
||||
char* p;
|
||||
p=(char*)aDest;
|
||||
for(i=*aDestLength; i>0 ;i--,p+=2)
|
||||
{
|
||||
char tmp = *(p+1);
|
||||
*(p+1) = *p;
|
||||
*(p)= tmp;
|
||||
}
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsUTF16BEToUnicode::GetMaxLength(const char * aSrc, PRInt32 aSrcLength,
|
||||
PRInt32 * aDestLength)
|
||||
{
|
||||
*aDestLength = (aSrcLength + ((1==mState)?1:0))/2;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsUTF16LEToUnicode::Reset()
|
||||
{
|
||||
mState =2;
|
||||
mData=0;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsUTF16LEToUnicode::Convert(const char * aSrc, PRInt32 * aSrcLength,
|
||||
PRUnichar * aDest, PRInt32 * aDestLength)
|
||||
{
|
||||
if (IsBigEndian()) {
|
||||
// process nsUTF16DiffEndianToUnicode
|
||||
if(2 == mState) // first time called
|
||||
{
|
||||
if(0xFFFE == *((PRUnichar*)aSrc)) {
|
||||
aSrc+=2;
|
||||
*aSrcLength-=2;
|
||||
} else if(0xFEFF == *((PRUnichar*)aSrc)) {
|
||||
// eleminate BOM
|
||||
*aSrcLength=0;
|
||||
*aDestLength=0;
|
||||
return NS_ERROR_ILLEGAL_INPUT;
|
||||
}
|
||||
mState=0;
|
||||
}
|
||||
}
|
||||
|
||||
nsresult res = UTF16ConvertToUnicode(mState, mData, aSrc, aSrcLength, aDest, aDestLength);
|
||||
|
||||
if (IsBigEndian()) {
|
||||
// process nsUTF16DiffEndianToUnicode
|
||||
PRInt32 i;
|
||||
|
||||
// copy
|
||||
char* p;
|
||||
p=(char*)aDest;
|
||||
for(i=*aDestLength; i>0 ;i--,p+=2)
|
||||
{
|
||||
char tmp = *(p+1);
|
||||
*(p+1) = *p;
|
||||
*(p)= tmp;
|
||||
}
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsUTF16LEToUnicode::GetMaxLength(const char * aSrc, PRInt32 aSrcLength,
|
||||
PRInt32 * aDestLength)
|
||||
{
|
||||
*aDestLength = (aSrcLength + ((1==mState)?1:0))/2;
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
|
@ -59,4 +59,55 @@ protected:
|
|||
};
|
||||
nsresult NEW_UTF16BEToUnicode(nsISupports **Result);
|
||||
nsresult NEW_UTF16LEToUnicode(nsISupports **Result);
|
||||
|
||||
//============== above code is obsolete ==============================
|
||||
|
||||
class nsUTF16BEToUnicode : public nsBasicDecoderSupport
|
||||
{
|
||||
public:
|
||||
|
||||
/**
|
||||
* Class constructor.
|
||||
*/
|
||||
nsUTF16BEToUnicode() { Reset();};
|
||||
|
||||
NS_IMETHOD Convert(const char * aSrc, PRInt32 * aSrcLength,
|
||||
PRUnichar * aDest, PRInt32 * aDestLength);
|
||||
NS_IMETHOD Reset();
|
||||
|
||||
protected:
|
||||
//--------------------------------------------------------------------
|
||||
// Subclassing of nsDecoderSupport class [declaration]
|
||||
|
||||
NS_IMETHOD GetMaxLength(const char * aSrc, PRInt32 aSrcLength,
|
||||
PRInt32 * aDestLength);
|
||||
protected:
|
||||
PRUint8 mState;
|
||||
PRUint8 mData;
|
||||
};
|
||||
|
||||
class nsUTF16LEToUnicode : public nsBasicDecoderSupport
|
||||
{
|
||||
public:
|
||||
|
||||
/**
|
||||
* Class constructor.
|
||||
*/
|
||||
nsUTF16LEToUnicode() { Reset();};
|
||||
|
||||
NS_IMETHOD Convert(const char * aSrc, PRInt32 * aSrcLength,
|
||||
PRUnichar * aDest, PRInt32 * aDestLength);
|
||||
NS_IMETHOD Reset();
|
||||
|
||||
protected:
|
||||
//--------------------------------------------------------------------
|
||||
// Subclassing of nsDecoderSupport class [declaration]
|
||||
|
||||
NS_IMETHOD GetMaxLength(const char * aSrc, PRInt32 aSrcLength,
|
||||
PRInt32 * aDestLength);
|
||||
protected:
|
||||
PRUint8 mState;
|
||||
PRUint8 mData;
|
||||
};
|
||||
|
||||
#endif /* nsUCS2BEToUnicode_h___ */
|
||||
|
|
|
@ -29,599 +29,834 @@
|
|||
// {A3254CB0-8E20-11d2-8A98-00600811A836}
|
||||
NS_DECLARE_ID(kISO88591ToUnicodeCID,
|
||||
0xa3254cb0, 0x8e20, 0x11d2, 0x8a, 0x98, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36);
|
||||
#define NS_ISO88591TOUNICODE_CID \
|
||||
{ 0xa3254cb0, 0x8e20, 0x11d2, {0x8a, 0x98, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36}}
|
||||
|
||||
// Class ID for our ISO88592ToUnicode charset converter
|
||||
// {7C657D11-EC5E-11d2-8AAC-00600811A836}
|
||||
NS_DECLARE_ID(kISO88592ToUnicodeCID,
|
||||
0x7c657d11, 0xec5e, 0x11d2, 0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36);
|
||||
#define NS_ISO88592TOUNICODE_CID \
|
||||
{ 0x7c657d11, 0xec5e, 0x11d2, {0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36}}
|
||||
|
||||
// Class ID for our ISO88593ToUnicode charset converter
|
||||
// {660D8CA0-F763-11d2-8AAD-00600811A836}
|
||||
NS_DECLARE_ID(kISO88593ToUnicodeCID,
|
||||
0x660d8ca0, 0xf763, 0x11d2, 0x8a, 0xad, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36);
|
||||
#define NS_ISO88593TOUNICODE_CID \
|
||||
{ 0x660d8ca0, 0xf763, 0x11d2, {0x8a, 0xad, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36}}
|
||||
|
||||
// Class ID for our ISO88594ToUnicode charset converter
|
||||
// {660D8CA1-F763-11d2-8AAD-00600811A836}
|
||||
NS_DECLARE_ID(kISO88594ToUnicodeCID,
|
||||
0x660d8ca1, 0xf763, 0x11d2, 0x8a, 0xad, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36);
|
||||
#define NS_ISO88594TOUNICODE_CID \
|
||||
{ 0x660d8ca1, 0xf763, 0x11d2, {0x8a, 0xad, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36}}
|
||||
|
||||
// Class ID for our ISO88595ToUnicode charset converter
|
||||
// {660D8CA2-F763-11d2-8AAD-00600811A836}
|
||||
NS_DECLARE_ID(kISO88595ToUnicodeCID,
|
||||
0x660d8ca2, 0xf763, 0x11d2, 0x8a, 0xad, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36);
|
||||
#define NS_ISO88595TOUNICODE_CID \
|
||||
{ 0x660d8ca2, 0xf763, 0x11d2, {0x8a, 0xad, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36}}
|
||||
|
||||
// Class ID for our ISO88596ToUnicode charset converter
|
||||
// {660D8CA3-F763-11d2-8AAD-00600811A836}
|
||||
NS_DECLARE_ID(kISO88596ToUnicodeCID,
|
||||
0x660d8ca3, 0xf763, 0x11d2, 0x8a, 0xad, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36);
|
||||
#define NS_ISO88596TOUNICODE_CID \
|
||||
{ 0x660d8ca3, 0xf763, 0x11d2, {0x8a, 0xad, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36}}
|
||||
|
||||
// Class ID for our ISO88596IToUnicode charset converter
|
||||
// {495ECA44-0A5C-11d4-A135-005004832142}
|
||||
NS_DECLARE_ID(kISO88596IToUnicodeCID,
|
||||
0x495eca44, 0xa5c, 0x11d4, 0xa1, 0x35, 0x0, 0x50, 0x4, 0x83, 0x21, 0x42);
|
||||
#define NS_ISO88596ITOUNICODE_CID \
|
||||
{ 0x495eca44, 0xa5c, 0x11d4, {0xa1, 0x35, 0x0, 0x50, 0x4, 0x83, 0x21, 0x42}}
|
||||
|
||||
// Class ID for our ISO88596EToUnicode charset converter
|
||||
// {495ECA45-0A5C-11d4-A135-005004832142}
|
||||
NS_DECLARE_ID(kISO88596EToUnicodeCID,
|
||||
0x495eca45, 0xa5c, 0x11d4, 0xa1, 0x35, 0x0, 0x50, 0x4, 0x83, 0x21, 0x42);
|
||||
#define NS_ISO88596ETOUNICODE_CID \
|
||||
{ 0x495eca45, 0xa5c, 0x11d4, {0xa1, 0x35, 0x0, 0x50, 0x4, 0x83, 0x21, 0x42}}
|
||||
|
||||
// Class ID for our ISO88597ToUnicode charset converter
|
||||
// {AF7A9951-AA48-11d2-B3AE-00805F8A6670}
|
||||
NS_DECLARE_ID(kISO88597ToUnicodeCID,
|
||||
0xaf7a9951, 0xaa48, 0x11d2, 0xb3, 0xae, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_ISO88597TOUNICODE_CID \
|
||||
{ 0xaf7a9951, 0xaa48, 0x11d2, {0xb3, 0xae, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our ISO88598ToUnicode charset converter
|
||||
// {660D8CA4-F763-11d2-8AAD-00600811A836}
|
||||
NS_DECLARE_ID(kISO88598ToUnicodeCID,
|
||||
0x660d8ca4, 0xf763, 0x11d2, 0x8a, 0xad, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36);
|
||||
#define NS_ISO88598TOUNICODE_CID \
|
||||
{ 0x660d8ca4, 0xf763, 0x11d2, {0x8a, 0xad, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36}}
|
||||
|
||||
// Class ID for our ISO88598EToUnicode charset converter
|
||||
// {495ECA42-0A5C-11d4-A135-005004832142}
|
||||
NS_DECLARE_ID(kISO88598EToUnicodeCID,
|
||||
0x495eca42, 0xa5c, 0x11d4, 0xa1, 0x35, 0x0, 0x50, 0x4, 0x83, 0x21, 0x42);
|
||||
#define NS_ISO88598ETOUNICODE_CID \
|
||||
{ 0x495eca42, 0xa5c, 0x11d4, {0xa1, 0x35, 0x0, 0x50, 0x4, 0x83, 0x21, 0x42}}
|
||||
|
||||
// Class ID for our ISO88598IToUnicode charset converter
|
||||
// {495ECA43-0A5C-11d4-A135-005004832142}
|
||||
NS_DECLARE_ID(kISO88598IToUnicodeCID,
|
||||
0x495eca43, 0xa5c, 0x11d4, 0xa1, 0x35, 0x0, 0x50, 0x4, 0x83, 0x21, 0x42);
|
||||
#define NS_ISO88598ITOUNICODE_CID \
|
||||
{ 0x495eca43, 0xa5c, 0x11d4, {0xa1, 0x35, 0x0, 0x50, 0x4, 0x83, 0x21, 0x42}}
|
||||
|
||||
// Class ID for our ISO88599ToUnicode charset converter
|
||||
// {7C657D13-EC5E-11d2-8AAC-00600811A836}
|
||||
NS_DECLARE_ID(kISO88599ToUnicodeCID,
|
||||
0x7c657d13, 0xec5e, 0x11d2, 0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36);
|
||||
#define NS_ISO88599TOUNICODE_CID \
|
||||
{ 0x7c657d13, 0xec5e, 0x11d2, {0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36}}
|
||||
|
||||
// Class ID for our ISO885914ToUnicode charset converter
|
||||
// {6394EEA1-FC3D-11d2-B3B8-00805F8A6670}
|
||||
NS_DECLARE_ID(kISO885914ToUnicodeCID,
|
||||
0x6394eea1, 0xfc3d, 0x11d2, 0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_ISO885914TOUNICODE_CID \
|
||||
{ 0x6394eea1, 0xfc3d, 0x11d2, {0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our ISO885914ToUnicode charset converter
|
||||
// {6394EEA2-FC3D-11d2-B3B8-00805F8A6670}
|
||||
NS_DECLARE_ID(kISO885915ToUnicodeCID,
|
||||
0x6394eea2, 0xfc3d, 0x11d2, 0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
0x6394eea2, 0xfc3d, 0x11d2, 0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_ISO885915TOUNICODE_CID \
|
||||
{ 0x6394eea2, 0xfc3d, 0x11d2, {0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
|
||||
// Class ID for our CP1250ToUnicode charset converter
|
||||
// {7C657D14-EC5E-11d2-8AAC-00600811A836}
|
||||
NS_DECLARE_ID(kCP1250ToUnicodeCID,
|
||||
0x7c657d14, 0xec5e, 0x11d2, 0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36);
|
||||
#define NS_CP1250TOUNICODE_CID \
|
||||
{ 0x7c657d14, 0xec5e, 0x11d2, {0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36}}
|
||||
|
||||
// Class ID for our CP1251ToUnicode charset converter
|
||||
// {A578E0A1-F76B-11d2-8AAD-00600811A836}
|
||||
NS_DECLARE_ID(kCP1251ToUnicodeCID,
|
||||
0xa578e0a1, 0xf76b, 0x11d2, 0x8a, 0xad, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36);
|
||||
#define NS_CP1251TOUNICODE_CID \
|
||||
{ 0xa578e0a1, 0xf76b, 0x11d2, {0x8a, 0xad, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36}}
|
||||
|
||||
// Class ID for our CP1252ToUnicode charset converter
|
||||
// {7C657D15-EC5E-11d2-8AAC-00600811A836}
|
||||
NS_DECLARE_ID(kCP1252ToUnicodeCID,
|
||||
0x7c657d15, 0xec5e, 0x11d2, 0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36);
|
||||
#define NS_CP1252TOUNICODE_CID \
|
||||
{ 0x7c657d15, 0xec5e, 0x11d2, {0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36}}
|
||||
|
||||
// Class ID for our CP1253ToUnicode charset converter
|
||||
// {AF7A9952-AA48-11d2-B3AE-00805F8A6670}
|
||||
NS_DECLARE_ID(kCP1253ToUnicodeCID,
|
||||
0xaf7a9952, 0xaa48, 0x11d2, 0xb3, 0xae, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_CP1253TOUNICODE_CID \
|
||||
{ 0xaf7a9952, 0xaa48, 0x11d2, {0xb3, 0xae, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our CP1254ToUnicode charset converter
|
||||
// {7C657D17-EC5E-11d2-8AAC-00600811A836}
|
||||
NS_DECLARE_ID(kCP1254ToUnicodeCID,
|
||||
0x7c657d17, 0xec5e, 0x11d2, 0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36);
|
||||
#define NS_CP1254TOUNICODE_CID \
|
||||
{ 0x7c657d17, 0xec5e, 0x11d2, {0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36}}
|
||||
|
||||
// Class ID for our CP1257ToUnicode charset converter
|
||||
// {A578E0A2-F76B-11d2-8AAD-00600811A836}
|
||||
NS_DECLARE_ID(kCP1257ToUnicodeCID,
|
||||
0xa578e0a2, 0xf76b, 0x11d2, 0x8a, 0xad, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36);
|
||||
#define NS_CP1257TOUNICODE_CID \
|
||||
{ 0xa578e0a2, 0xf76b, 0x11d2, {0x8a, 0xad, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36}}
|
||||
|
||||
// Class ID for our CP1258ToUnicode charset converter
|
||||
// {6394EEA3-FC3D-11d2-B3B8-00805F8A6670}
|
||||
NS_DECLARE_ID(kCP1258ToUnicodeCID,
|
||||
0x6394eea3, 0xfc3d, 0x11d2, 0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_CP1258TOUNICODE_CID \
|
||||
{ 0x6394eea3, 0xfc3d, 0x11d2, {0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our CP874ToUnicode charset converter
|
||||
// {6394EEA4-FC3D-11d2-B3B8-00805F8A6670}
|
||||
NS_DECLARE_ID(kCP874ToUnicodeCID,
|
||||
0x6394eea4, 0xfc3d, 0x11d2, 0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_CP874TOUNICODE_CID \
|
||||
{ 0x6394eea4, 0xfc3d, 0x11d2, {0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our KOI8RToUnicode charset converter
|
||||
// {6394EEA5-FC3D-11d2-B3B8-00805F8A6670}
|
||||
NS_DECLARE_ID(kKOI8RToUnicodeCID,
|
||||
0x6394eea5, 0xfc3d, 0x11d2, 0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_KOI8RTOUNICODE_CID \
|
||||
{ 0x6394eea5, 0xfc3d, 0x11d2, {0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our KOI8UToUnicode charset converter
|
||||
// {6394EEA6-FC3D-11d2-B3B8-00805F8A6670}
|
||||
NS_DECLARE_ID(kKOI8UToUnicodeCID,
|
||||
0x6394eea6, 0xfc3d, 0x11d2, 0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_KOI8UTOUNICODE_CID \
|
||||
{ 0x6394eea6, 0xfc3d, 0x11d2, {0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our MacRomanToUnicode charset converter
|
||||
// {7B8556A1-EC79-11d2-8AAC-00600811A836}
|
||||
NS_DECLARE_ID(kMacRomanToUnicodeCID,
|
||||
0x7b8556a1, 0xec79, 0x11d2, 0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36);
|
||||
#define NS_MACROMANTOUNICODE_CID \
|
||||
{ 0x7b8556a1, 0xec79, 0x11d2, {0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36}}
|
||||
|
||||
// Class ID for our MacCEToUnicode charset converter
|
||||
// {7B8556A2-EC79-11d2-8AAC-00600811A836}
|
||||
NS_DECLARE_ID(kMacCEToUnicodeCID,
|
||||
0x7b8556a2, 0xec79, 0x11d2, 0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36);
|
||||
#define NS_MACCETOUNICODE_CID \
|
||||
{ 0x7b8556a2, 0xec79, 0x11d2, {0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36}}
|
||||
|
||||
// Class ID for our MacGreekToUnicode charset converter
|
||||
// {7B8556A3-EC79-11d2-8AAC-00600811A836}
|
||||
NS_DECLARE_ID(kMacGreekToUnicodeCID,
|
||||
0x7b8556a3, 0xec79, 0x11d2, 0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36);
|
||||
#define NS_MACGREEKTOUNICODE_CID \
|
||||
{ 0x7b8556a3, 0xec79, 0x11d2, {0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36}}
|
||||
|
||||
// Class ID for our MacTurkishToUnicode charset converter
|
||||
// {7B8556A4-EC79-11d2-8AAC-00600811A836}
|
||||
NS_DECLARE_ID(kMacTurkishToUnicodeCID,
|
||||
0x7b8556a4, 0xec79, 0x11d2, 0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36);
|
||||
#define NS_MACTURKISHTOUNICODE_CID \
|
||||
{ 0x7b8556a4, 0xec79, 0x11d2, {0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36}}
|
||||
|
||||
// Class ID for our MacCroatianToUnicode charset converter
|
||||
// {6394EEA7-FC3D-11d2-B3B8-00805F8A6670}
|
||||
NS_DECLARE_ID(kMacCroatianToUnicodeCID,
|
||||
0x6394eea7, 0xfc3d, 0x11d2, 0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_MACCROATIANTOUNICODE_CID \
|
||||
{ 0x6394eea7, 0xfc3d, 0x11d2, {0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our MacRomanianToUnicode charset converter
|
||||
// {6394EEA8-FC3D-11d2-B3B8-00805F8A6670}
|
||||
NS_DECLARE_ID(kMacRomanianToUnicodeCID,
|
||||
0x6394eea8, 0xfc3d, 0x11d2, 0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_MACROMANIANTOUNICODE_CID \
|
||||
{ 0x6394eea8, 0xfc3d, 0x11d2, {0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our MacCyrillicToUnicode charset converter
|
||||
// {6394EEA9-FC3D-11d2-B3B8-00805F8A6670}
|
||||
NS_DECLARE_ID(kMacCyrillicToUnicodeCID,
|
||||
0x6394eea9, 0xfc3d, 0x11d2, 0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_MACCYRILLICTOUNICODE_CID \
|
||||
{ 0x6394eea9, 0xfc3d, 0x11d2, {0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our MacUkrainianToUnicode charset converter
|
||||
// {6394EEAA-FC3D-11d2-B3B8-00805F8A6670}
|
||||
NS_DECLARE_ID(kMacUkrainianToUnicodeCID,
|
||||
0x6394eeaa, 0xfc3d, 0x11d2, 0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_MACUKRAINIANTOUNICODE_CID \
|
||||
{ 0x6394eeaa, 0xfc3d, 0x11d2, {0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our MacIcelandicToUnicode charset converter
|
||||
// {6394EEAB-FC3D-11d2-B3B8-00805F8A6670}
|
||||
NS_DECLARE_ID(kMacIcelandicToUnicodeCID,
|
||||
0x6394eeab, 0xfc3d, 0x11d2, 0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_MACICELANDICTOUNICODE_CID \
|
||||
{ 0x6394eeab, 0xfc3d, 0x11d2, {0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our ARMSCII8ToUnicode charset converter
|
||||
// {6394EEAC-FC3D-11d2-B3B8-00805F8A6670}
|
||||
NS_DECLARE_ID(kARMSCII8ToUnicodeCID,
|
||||
0x6394eeac, 0xfc3d, 0x11d2, 0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_ARMSCII8TOUNICODE_CID \
|
||||
{ 0x6394eeac, 0xfc3d, 0x11d2, {0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our TCVN5712ToUnicode charset converter
|
||||
// {6394EEAD-FC3D-11d2-B3B8-00805F8A6670}
|
||||
NS_DECLARE_ID(kTCVN5712ToUnicodeCID,
|
||||
0x6394eead, 0xfc3d, 0x11d2, 0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_TCVN5712TOUNICODE_CID \
|
||||
{ 0x6394eead, 0xfc3d, 0x11d2, {0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our VISCIIToUnicode charset converter
|
||||
// {6394EEAE-FC3D-11d2-B3B8-00805F8A6670}
|
||||
NS_DECLARE_ID(kVISCIIToUnicodeCID,
|
||||
0x6394eeae, 0xfc3d, 0x11d2, 0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_VISCIITOUNICODE_CID \
|
||||
{ 0x6394eeae, 0xfc3d, 0x11d2, {0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our VPSToUnicode charset converter
|
||||
// {6394EEB0-FC3D-11d2-B3B8-00805F8A6670}
|
||||
NS_DECLARE_ID(kVPSToUnicodeCID,
|
||||
0x6394eeb0, 0xfc3d, 0x11d2, 0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_VPSTOUNICODE_CID \
|
||||
{ 0x6394eeb0, 0xfc3d, 0x11d2, {0xb3, 0xb8, 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);
|
||||
#define NS_UTF8TOUNICODE_CID \
|
||||
{ 0x5534ddc0, 0xdd96, 0x11d2, {0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36}}
|
||||
|
||||
// Class ID for our UTF7ToUnicode charset converter
|
||||
// {77CFAAF1-1CF4-11d3-8AAF-00600811A836}
|
||||
NS_DECLARE_ID(kUTF7ToUnicodeCID,
|
||||
0x77cfaaf1, 0x1cf4, 0x11d3, 0x8a, 0xaf, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36);
|
||||
#define NS_UTF7TOUNICODE_CID \
|
||||
{ 0x77cfaaf1, 0x1cf4, 0x11d3, {0x8a, 0xaf, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36}}
|
||||
|
||||
// Class ID for our MUTF7ToUnicode charset converter
|
||||
// {B57F97C1-0D70-11d3-8AAE-00600811A836}
|
||||
NS_DECLARE_ID(kMUTF7ToUnicodeCID,
|
||||
0xb57f97c1, 0xd70, 0x11d3, 0x8a, 0xae, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36);
|
||||
#define NS_MUTF7TOUNICODE_CID \
|
||||
{ 0xb57f97c1, 0xd70, 0x11d3, {0x8a, 0xae, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36}}
|
||||
|
||||
// {920307B0-C6E8-11d2-8AA8-00600811A836}
|
||||
NS_DECLARE_ID(kUnicodeToISO88591CID,
|
||||
0x920307b0, 0xc6e8, 0x11d2, 0x8a, 0xa8, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36);
|
||||
#define NS_UNICODETOISO88591_CID \
|
||||
{ 0x920307b0, 0xc6e8, 0x11d2, {0x8a, 0xa8, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36}}
|
||||
|
||||
// Class ID for our UnicodeToISO88592 charset converter
|
||||
// {7B8556A6-EC79-11d2-8AAC-00600811A836}
|
||||
NS_DECLARE_ID(kUnicodeToISO88592CID,
|
||||
0x7b8556a6, 0xec79, 0x11d2, 0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36);
|
||||
#define NS_UNICODETOISO88592_CID \
|
||||
{ 0x7b8556a6, 0xec79, 0x11d2, {0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36}}
|
||||
|
||||
// Class ID for our UnicodeToISO88593 charset converter
|
||||
// {660D8CA5-F763-11d2-8AAD-00600811A836}
|
||||
NS_DECLARE_ID(kUnicodeToISO88593CID,
|
||||
0x660d8ca5, 0xf763, 0x11d2, 0x8a, 0xad, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36);
|
||||
#define NS_UNICODETOISO88593_CID \
|
||||
{ 0x660d8ca5, 0xf763, 0x11d2, {0x8a, 0xad, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36}}
|
||||
|
||||
// Class ID for our UnicodeToISO88594 charset converter
|
||||
// {660D8CA6-F763-11d2-8AAD-00600811A836}
|
||||
NS_DECLARE_ID(kUnicodeToISO88594CID,
|
||||
0x660d8ca6, 0xf763, 0x11d2, 0x8a, 0xad, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36);
|
||||
#define NS_UNICODETOISO88594_CID \
|
||||
{ 0x660d8ca6, 0xf763, 0x11d2, {0x8a, 0xad, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36}}
|
||||
|
||||
// Class ID for our UnicodeToISO88595 charset converter
|
||||
// {660D8CA7-F763-11d2-8AAD-00600811A836}
|
||||
NS_DECLARE_ID(kUnicodeToISO88595CID,
|
||||
0x660d8ca7, 0xf763, 0x11d2, 0x8a, 0xad, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36);
|
||||
#define NS_UNICODETOISO88595_CID \
|
||||
{ 0x660d8ca7, 0xf763, 0x11d2, {0x8a, 0xad, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36}}
|
||||
|
||||
// Class ID for our UnicodeToISO88596 charset converter
|
||||
// {660D8CA8-F763-11d2-8AAD-00600811A836}
|
||||
NS_DECLARE_ID(kUnicodeToISO88596CID,
|
||||
0x660d8ca8, 0xf763, 0x11d2, 0x8a, 0xad, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36);
|
||||
#define NS_UNICODETOISO88596_CID \
|
||||
{ 0x660d8ca8, 0xf763, 0x11d2, {0x8a, 0xad, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36}}
|
||||
|
||||
// Class ID for our UnicodeToISO88596I charset converter
|
||||
// {495ECA46-0A5C-11d4-A135-005004832142}
|
||||
NS_DECLARE_ID(kUnicodeToISO88596ICID,
|
||||
0x495eca46, 0xa5c, 0x11d4, 0xa1, 0x35, 0x0, 0x50, 0x4, 0x83, 0x21, 0x42);
|
||||
#define NS_UNICODETOISO88596I_CID \
|
||||
{ 0x495eca46, 0xa5c, 0x11d4, {0xa1, 0x35, 0x0, 0x50, 0x4, 0x83, 0x21, 0x42}}
|
||||
|
||||
// Class ID for our UnicodeToISO88596E charset converter
|
||||
// {495ECA47-0A5C-11d4-A135-005004832142}
|
||||
NS_DECLARE_ID(kUnicodeToISO88596ECID,
|
||||
0x495eca47, 0xa5c, 0x11d4, 0xa1, 0x35, 0x0, 0x50, 0x4, 0x83, 0x21, 0x42);
|
||||
#define NS_UNICODETOISO88596E_CID \
|
||||
{ 0x495eca47, 0xa5c, 0x11d4, {0xa1, 0x35, 0x0, 0x50, 0x4, 0x83, 0x21, 0x42}}
|
||||
|
||||
// Class ID for our UnicodeToISO88597 charset converter
|
||||
// {7B8556A8-EC79-11d2-8AAC-00600811A836}
|
||||
NS_DECLARE_ID(kUnicodeToISO88597CID,
|
||||
0x7b8556a8, 0xec79, 0x11d2, 0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36);
|
||||
#define NS_UNICODETOISO88597_CID \
|
||||
{ 0x7b8556a8, 0xec79, 0x11d2, {0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36}}
|
||||
|
||||
// Class ID for our UnicodeToISO88598 charset converter
|
||||
// {660D8CA9-F763-11d2-8AAD-00600811A836}
|
||||
NS_DECLARE_ID(kUnicodeToISO88598CID,
|
||||
0x660d8ca9, 0xf763, 0x11d2, 0x8a, 0xad, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36);
|
||||
#define NS_UNICODETOISO88598_CID \
|
||||
{ 0x660d8ca9, 0xf763, 0x11d2, {0x8a, 0xad, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36}}
|
||||
|
||||
// Class ID for our UnicodeToISO88598I charset converter
|
||||
// {495ECA48-0A5C-11d4-A135-005004832142}
|
||||
NS_DECLARE_ID(kUnicodeToISO88598ICID,
|
||||
0x495eca48, 0xa5c, 0x11d4, 0xa1, 0x35, 0x0, 0x50, 0x4, 0x83, 0x21, 0x42);
|
||||
#define NS_UNICODETOISO88598I_CID \
|
||||
{ 0x495eca48, 0xa5c, 0x11d4, {0xa1, 0x35, 0x0, 0x50, 0x4, 0x83, 0x21, 0x42}}
|
||||
|
||||
// Class ID for our UnicodeToISO88598E charset converter
|
||||
// {495ECA49-0A5C-11d4-A135-005004832142}
|
||||
NS_DECLARE_ID(kUnicodeToISO88598ECID,
|
||||
0x495eca49, 0xa5c, 0x11d4, 0xa1, 0x35, 0x0, 0x50, 0x4, 0x83, 0x21, 0x42);
|
||||
#define NS_UNICODETOISO88598E_CID \
|
||||
{ 0x495eca49, 0xa5c, 0x11d4, {0xa1, 0x35, 0x0, 0x50, 0x4, 0x83, 0x21, 0x42}}
|
||||
|
||||
// Class ID for our UnicodeToISO88599 charset converter
|
||||
// {7B8556A9-EC79-11d2-8AAC-00600811A836}
|
||||
NS_DECLARE_ID(kUnicodeToISO88599CID,
|
||||
0x7b8556a9, 0xec79, 0x11d2, 0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36);
|
||||
#define NS_UNICODETOISO88599_CID \
|
||||
{ 0x7b8556a9, 0xec79, 0x11d2, {0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36}}
|
||||
|
||||
// Class ID for our UnicodeToISO885914 charset converter
|
||||
// {6394EEB1-FC3D-11d2-B3B8-00805F8A6670}
|
||||
NS_DECLARE_ID(kUnicodeToISO885914CID,
|
||||
0x6394eeb1, 0xfc3d, 0x11d2, 0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_UNICODETOISO885914_CID \
|
||||
{ 0x6394eeb1, 0xfc3d, 0x11d2, {0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our UnicodeToISO885915 charset converter
|
||||
// {6394EEB2-FC3D-11d2-B3B8-00805F8A6670}
|
||||
NS_DECLARE_ID(kUnicodeToISO885915CID,
|
||||
0x6394eeb2, 0xfc3d, 0x11d2, 0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_UNICODETOISO885915_CID \
|
||||
{ 0x6394eeb2, 0xfc3d, 0x11d2, {0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our UnicodeToCP1250 charset converter
|
||||
// {7B8556AA-EC79-11d2-8AAC-00600811A836}
|
||||
NS_DECLARE_ID(kUnicodeToCP1250CID,
|
||||
0x7b8556aa, 0xec79, 0x11d2, 0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36);
|
||||
#define NS_UNICODETOCP1250_CID \
|
||||
{ 0x7b8556aa, 0xec79, 0x11d2, {0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36}}
|
||||
|
||||
// Class ID for our UnicodeToCP1251 charset converter
|
||||
// {A578E0A3-F76B-11d2-8AAD-00600811A836}
|
||||
NS_DECLARE_ID(kUnicodeToCP1251CID,
|
||||
0xa578e0a3, 0xf76b, 0x11d2, 0x8a, 0xad, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36);
|
||||
#define NS_UNICODETOCP1251_CID \
|
||||
{ 0xa578e0a3, 0xf76b, 0x11d2, {0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36}}
|
||||
|
||||
// Class ID for our UnicodeToCP1252 charset converter
|
||||
// {7B8556AC-EC79-11d2-8AAC-00600811A836}
|
||||
NS_DECLARE_ID(kUnicodeToCP1252CID,
|
||||
0x7b8556ac, 0xec79, 0x11d2, 0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36);
|
||||
#define NS_UNICODETOCP1252_CID \
|
||||
{ 0x7b8556ac, 0xec79, 0x11d2, {0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36}}
|
||||
|
||||
// Class ID for our UnicodeToCP1253 charset converter
|
||||
// {7B8556AD-EC79-11d2-8AAC-00600811A836}
|
||||
NS_DECLARE_ID(kUnicodeToCP1253CID,
|
||||
0x7b8556ad, 0xec79, 0x11d2, 0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36);
|
||||
#define NS_UNICODETOCP1253_CID \
|
||||
{ 0x7b8556ad, 0xec79, 0x11d2, {0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36}}
|
||||
|
||||
// Class ID for our UnicodeToCP1254 charset converter
|
||||
// {7B8556AE-EC79-11d2-8AAC-00600811A836}
|
||||
NS_DECLARE_ID(kUnicodeToCP1254CID,
|
||||
0x7b8556ae, 0xec79, 0x11d2, 0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36);
|
||||
#define NS_UNICODETOCP1254_CID \
|
||||
{ 0x7b8556ae, 0xec79, 0x11d2, {0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36}}
|
||||
|
||||
// Class ID for our UnicodeToCP1257 charset converter
|
||||
// {A578E0A4-F76B-11d2-8AAD-00600811A836}
|
||||
NS_DECLARE_ID(kUnicodeToCP1257CID,
|
||||
0xa578e0a4, 0xf76b, 0x11d2, 0x8a, 0xad, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36);
|
||||
#define NS_UNICODETOCP1257_CID \
|
||||
{ 0xa578e0a4, 0xf76b, 0x11d2, {0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36}}
|
||||
|
||||
// Class ID for our UnicodeToCP1258 charset converter
|
||||
// {6394EEB3-FC3D-11d2-B3B8-00805F8A6670}
|
||||
NS_DECLARE_ID(kUnicodeToCP1258CID,
|
||||
0x6394eeb3, 0xfc3d, 0x11d2, 0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_UNICODETOCP1258_CID \
|
||||
{ 0x6394eeb3, 0xfc3d, 0x11d2, {0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our UnicodeToCP874 charset converter
|
||||
// {6394EEB4-FC3D-11d2-B3B8-00805F8A6670}
|
||||
NS_DECLARE_ID(kUnicodeToCP874CID,
|
||||
0x6394eeb4, 0xfc3d, 0x11d2, 0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_UNICODETOCP874_CID \
|
||||
{ 0x6394eeb4, 0xfc3d, 0x11d2, {0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our UnicodeToKOI8R charset converter
|
||||
// {6394EEB5-FC3D-11d2-B3B8-00805F8A6670}
|
||||
NS_DECLARE_ID(kUnicodeToKOI8RCID,
|
||||
0x6394eeb5, 0xfc3d, 0x11d2, 0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_UNICODETOKOI8R_CID \
|
||||
{ 0x6394eeb5, 0xfc3d, 0x11d2, {0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our UnicodeToKOI8U charset converter
|
||||
// {6394EEB6-FC3D-11d2-B3B8-00805F8A6670}
|
||||
NS_DECLARE_ID(kUnicodeToKOI8UCID,
|
||||
0x6394eeb6, 0xfc3d, 0x11d2, 0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_UNICODETOKOI8U_CID \
|
||||
{ 0x6394eeb6, 0xfc3d, 0x11d2, {0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our UnicodeToMacRoman charset converter
|
||||
// {7B8556AF-EC79-11d2-8AAC-00600811A836}
|
||||
NS_DECLARE_ID(kUnicodeToMacRomanCID,
|
||||
0x7b8556af, 0xec79, 0x11d2, 0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36);
|
||||
#define NS_UNICODETOMACROMAN_CID \
|
||||
{ 0x7b8556af, 0xec79, 0x11d2, {0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36}}
|
||||
|
||||
// Class ID for our UnicodeToMacCE charset converter
|
||||
// {7B8556B0-EC79-11d2-8AAC-00600811A836}
|
||||
NS_DECLARE_ID(kUnicodeToMacCECID,
|
||||
0x7b8556b0, 0xec79, 0x11d2, 0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36);
|
||||
#define NS_UNICODETOMACCE_CID \
|
||||
{ 0x7b8556b0, 0xec79, 0x11d2, {0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36}}
|
||||
|
||||
// Class ID for our UnicodeToMacGreek charset converter
|
||||
// {7B8556B1-EC79-11d2-8AAC-00600811A836}
|
||||
NS_DECLARE_ID(kUnicodeToMacGreekCID,
|
||||
0x7b8556b1, 0xec79, 0x11d2, 0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36);
|
||||
#define NS_UNICODETOMACGREEK_CID \
|
||||
{ 0x7b8556b1, 0xec79, 0x11d2, {0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36}}
|
||||
|
||||
// Class ID for our UnicodeToMacTurkish charset converter
|
||||
// {7B8556B2-EC79-11d2-8AAC-00600811A836}
|
||||
NS_DECLARE_ID(kUnicodeToMacTurkishCID,
|
||||
0x7b8556b2, 0xec79, 0x11d2, 0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36);
|
||||
#define NS_UNICODETOMACTURKISH_CID \
|
||||
{ 0x7b8556b2, 0xec79, 0x11d2, {0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36}}
|
||||
|
||||
// Class ID for our UnicodeToMacCroatian charset converter
|
||||
// {6394EEB7-FC3D-11d2-B3B8-00805F8A6670}
|
||||
NS_DECLARE_ID(kUnicodeToMacCroatianCID,
|
||||
0x6394eeb7, 0xfc3d, 0x11d2, 0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_UNICODETOMACCROATIAN_CID \
|
||||
{ 0x6394eeb7, 0xfc3d, 0x11d2, {0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our UnicodeToMacRomanian charset converter
|
||||
// {6394EEB8-FC3D-11d2-B3B8-00805F8A6670}
|
||||
NS_DECLARE_ID(kUnicodeToMacRomanianCID,
|
||||
0x6394eeb8, 0xfc3d, 0x11d2, 0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_UNICODETOMACROMANIAN_CID \
|
||||
{ 0x6394eeb8, 0xfc3d, 0x11d2, {0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our UnicodeToMacCyrillic charset converter
|
||||
// {6394EEB9-FC3D-11d2-B3B8-00805F8A6670}
|
||||
NS_DECLARE_ID(kUnicodeToMacCyrillicCID,
|
||||
0x6394eeb9, 0xfc3d, 0x11d2, 0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_UNICODETOMACCYRILLIC_CID \
|
||||
{ 0x6394eeb9, 0xfc3d, 0x11d2, {0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our UnicodeToMacUkrainian charset converter
|
||||
// {6394EEBA-FC3D-11d2-B3B8-00805F8A6670}
|
||||
NS_DECLARE_ID(kUnicodeToMacUkrainianCID,
|
||||
0x6394eeba, 0xfc3d, 0x11d2, 0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_UNICODETOMACUKRAINIAN_CID \
|
||||
{ 0x6394eeba, 0xfc3d, 0x11d2, {0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our UnicodeToMacIcelandic charset converter
|
||||
// {6394EEBB-FC3D-11d2-B3B8-00805F8A6670}
|
||||
NS_DECLARE_ID(kUnicodeToMacIcelandicCID,
|
||||
0x6394eebb, 0xfc3d, 0x11d2, 0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_UNICODETOMACICELANDIC_CID \
|
||||
{ 0x6394eebb, 0xfc3d, 0x11d2, {0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our UnicodeToARMSCII8 charset converter
|
||||
// {6394EEBC-FC3D-11d2-B3B8-00805F8A6670}
|
||||
NS_DECLARE_ID(kUnicodeToARMSCII8CID,
|
||||
0x6394eebc, 0xfc3d, 0x11d2, 0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_UNICODETOARMSCII8_CID \
|
||||
{ 0x6394eebc, 0xfc3d, 0x11d2, {0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our UnicodeToTCVN5712 charset converter
|
||||
// {6394EEBD-FC3D-11d2-B3B8-00805F8A6670}
|
||||
NS_DECLARE_ID(kUnicodeToTCVN5712CID,
|
||||
0x6394eebd, 0xfc3d, 0x11d2, 0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_UNICODETOTCVN5712_CID \
|
||||
{ 0x6394eebd, 0xfc3d, 0x11d2, {0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our UnicodeToVISCII charset converter
|
||||
// {6394EEBF-FC3D-11d2-B3B8-00805F8A6670}
|
||||
NS_DECLARE_ID(kUnicodeToVISCIICID,
|
||||
0x6394eebf, 0xfc3d, 0x11d2, 0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_UNICODETOVISCII_CID \
|
||||
{ 0x6394eebf, 0xfc3d, 0x11d2, {0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our UnicodeToVPS charset converter
|
||||
// {6394EEC0-FC3D-11d2-B3B8-00805F8A6670}
|
||||
NS_DECLARE_ID(kUnicodeToVPSCID,
|
||||
0x6394eec0, 0xfc3d, 0x11d2, 0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_UNICODETOVPS_CID \
|
||||
{ 0x6394eec0, 0xfc3d, 0x11d2, {0xb3, 0xb8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our UnicodeToUTF8 charset converter
|
||||
// {7C657D18-EC5E-11d2-8AAC-00600811A836}
|
||||
NS_DECLARE_ID(kUnicodeToUTF8CID,
|
||||
0x7c657d18, 0xec5e, 0x11d2, 0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36);
|
||||
#define NS_UNICODETOUTF8_CID \
|
||||
{ 0x7c657d18, 0xec5e, 0x11d2, {0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36}}
|
||||
|
||||
// Class ID for our UnicodeToUTF7 charset converter
|
||||
// {77CFAAF2-1CF4-11d3-8AAF-00600811A836}
|
||||
NS_DECLARE_ID(kUnicodeToUTF7CID,
|
||||
0x77cfaaf2, 0x1cf4, 0x11d3, 0x8a, 0xaf, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36);
|
||||
#define NS_UNICODETOUTF7_CID \
|
||||
{ 0x77cfaaf2, 0x1cf4, 0x11d3, {0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36}}
|
||||
|
||||
// Class ID for our UnicodeToMUTF7 charset converter
|
||||
// {B57F97C2-0D70-11d3-8AAE-00600811A836}
|
||||
NS_DECLARE_ID(kUnicodeToMUTF7CID,
|
||||
0xb57f97c2, 0xd70, 0x11d3, 0x8a, 0xae, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36);
|
||||
#define NS_UNICODETOMUTF7_CID \
|
||||
{ 0xb57f97c2, 0xd70, 0x11d3, {0x8a, 0xac, 0x0, 0x60, 0x8, 0x11, 0xa8, 0x36}}
|
||||
|
||||
// Class ID for our CP1255ToUnicode charset converter
|
||||
// {BA6151A1-1DFA-11d3-B3BF-00805F8A6670}
|
||||
NS_DECLARE_ID(kCP1255ToUnicodeCID,
|
||||
0xba6151a1, 0x1dfa, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
0xba6151a1, 0x1dfa, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_CP1255TOUNICODE_CID \
|
||||
{ 0xba6151a1, 0x1dfa, 0x11d3, {0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our CP1256ToUnicode charset converter
|
||||
// {BA6151A2-1DFA-11d3-B3BF-00805F8A6670}
|
||||
NS_DECLARE_ID(kCP1256ToUnicodeCID,
|
||||
0xba6151a2, 0x1dfa, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
0xba6151a2, 0x1dfa, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_CP1256TOUNICODE_CID \
|
||||
{ 0xba6151a2, 0x1dfa, 0x11d3, {0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our UnicodeToCP1255 charset converter
|
||||
// {BA6151A3-1DFA-11d3-B3BF-00805F8A6670}
|
||||
NS_DECLARE_ID(kUnicodeToCP1255CID,
|
||||
0xba6151a3, 0x1dfa, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
0xba6151a3, 0x1dfa, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_UNICODETOCP1255_CID \
|
||||
{ 0xba6151a3, 0x1dfa, 0x11d3, {0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our UnicodeToCP1256 charset converter
|
||||
// {BA6151A4-1DFA-11d3-B3BF-00805F8A6670}
|
||||
NS_DECLARE_ID(kUnicodeToCP1256CID,
|
||||
0xba6151a4, 0x1dfa, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
0xba6151a4, 0x1dfa, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_UNICODETOCP1256_CID \
|
||||
{ 0xba6151a4, 0x1dfa, 0x11d3, {0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our UnicodeToVIQR charset converter
|
||||
// {BA6151A5-1DFA-11d3-B3BF-00805F8A6670}
|
||||
NS_DECLARE_ID(kUnicodeToVIQRCID,
|
||||
0xba6151a5, 0x1dfa, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
0xba6151a5, 0x1dfa, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_UNICODETOVIQR_CID \
|
||||
{ 0xba6151a5, 0x1dfa, 0x11d3, {0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our VIQRToUnicode charset converter
|
||||
// {BA6151A6-1DFA-11d3-B3BF-00805F8A6670}
|
||||
NS_DECLARE_ID(kVIQRToUnicodeCID,
|
||||
0xba6151a6, 0x1dfa, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
0xba6151a6, 0x1dfa, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_VIQRTOUNICODE_CID \
|
||||
{ 0xba6151a6, 0x1dfa, 0x11d3, {0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our UnicodeToVNI charset converter
|
||||
// {BA6151A7-1DFA-11d3-B3BF-00805F8A6670}
|
||||
NS_DECLARE_ID(kUnicodeToVNICID,
|
||||
0xba6151a7, 0x1dfa, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
0xba6151a7, 0x1dfa, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_UNICODETOVNI_CID \
|
||||
{ 0xba6151a7, 0x1dfa, 0x11d3, {0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our VNIToUnicode charset converter
|
||||
// {BA6151A8-1DFA-11d3-B3BF-00805F8A6670}
|
||||
NS_DECLARE_ID(kVNIToUnicodeCID,
|
||||
0xba6151a8, 0x1dfa, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
0xba6151a8, 0x1dfa, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_VNITOUNICODE_CID \
|
||||
{ 0xba6151a8, 0x1dfa, 0x11d3, {0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our CP866ToUnicode charset converter
|
||||
// {BA6151A9-1DFA-11d3-B3BF-00805F8A6670}
|
||||
NS_DECLARE_ID(kCP866ToUnicodeCID,
|
||||
0xba6151a9, 0x1dfa, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
0xba6151a9, 0x1dfa, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_CP866TOUNICODE_CID \
|
||||
{ 0xba6151a9, 0x1dfa, 0x11d3, {0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our UnicodeToCP866 charset converter
|
||||
// {BA6151AA-1DFA-11d3-B3BF-00805F8A6670}
|
||||
NS_DECLARE_ID(kUnicodeToCP866CID,
|
||||
0xba6151aa, 0x1dfa, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
0xba6151aa, 0x1dfa, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_UNICODETOCP866_CID \
|
||||
{ 0xba6151aa, 0x1dfa, 0x11d3, {0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our UnicodeToISO885910 charset converter
|
||||
// {BA6151AB-1DFA-11d3-B3BF-00805F8A6670}
|
||||
NS_DECLARE_ID(kUnicodeToISO885910CID,
|
||||
0xba6151ab, 0x1dfa, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
0xba6151ab, 0x1dfa, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_UNICODETOISO885910_CID \
|
||||
{ 0xba6151ab, 0x1dfa, 0x11d3, {0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our UnicodeToISO885913 charset converter
|
||||
// {BA6151AC-1DFA-11d3-B3BF-00805F8A6670}
|
||||
NS_DECLARE_ID(kUnicodeToISO885913CID,
|
||||
0xba6151ac, 0x1dfa, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
0xba6151ac, 0x1dfa, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_UNICODETOISO885913_CID \
|
||||
{ 0xba6151ac, 0x1dfa, 0x11d3, {0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our UnicodeToUTF16BE charset converter
|
||||
// {BA6151AD-1DFA-11d3-B3BF-00805F8A6670}
|
||||
NS_DECLARE_ID(kUnicodeToUTF16BECID,
|
||||
0xba6151ad, 0x1dfa, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
0xba6151ad, 0x1dfa, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_UNICODETOUTF16BE_CID \
|
||||
{ 0xba6151ad, 0x1dfa, 0x11d3, {0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our UnicodeToUTF32BE charset converter
|
||||
// {BA6151AE-1DFA-11d3-B3BF-00805F8A6670}
|
||||
NS_DECLARE_ID(kUnicodeToUTF32BECID,
|
||||
0xba6151ae, 0x1dfa, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
0xba6151ae, 0x1dfa, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_UNICODETOUTF32BE_CID \
|
||||
{ 0xba6151ae, 0x1dfa, 0x11d3, {0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our UnicodeToT61 charset converter
|
||||
// {BA6151AF-1DFA-11d3-B3BF-00805F8A6670}
|
||||
NS_DECLARE_ID(kUnicodeToT61CID,
|
||||
0xba6151af, 0x1dfa, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
0xba6151af, 0x1dfa, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_UNICODETOT61_CID \
|
||||
{ 0xba6151af, 0x1dfa, 0x11d3, {0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our ISO885910ToUnicode charset converter
|
||||
// {BA6151B0-1DFA-11d3-B3BF-00805F8A6670}
|
||||
NS_DECLARE_ID(kISO885910ToUnicodeCID,
|
||||
0xba6151b0, 0x1dfa, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
0xba6151b0, 0x1dfa, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_ISO885910TOUNICODE_CID \
|
||||
{ 0xba6151b0, 0x1dfa, 0x11d3, {0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our ISO885913ToUnicode charset converter
|
||||
// {BA6151B1-1DFA-11d3-B3BF-00805F8A6670}
|
||||
NS_DECLARE_ID(kISO885913ToUnicodeCID,
|
||||
0xba6151b1, 0x1dfa, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
0xba6151b1, 0x1dfa, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_ISO885913TOUNICODE_CID \
|
||||
{ 0xba6151b1, 0x1dfa, 0x11d3, {0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our UTF16BEToUnicode charset converter
|
||||
// {BA6151B2-1DFA-11d3-B3BF-00805F8A6670}
|
||||
NS_DECLARE_ID(kUTF16BEToUnicodeCID,
|
||||
0xba6151b2, 0x1dfa, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
0xba6151b2, 0x1dfa, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_UTF16BETOUNICODE_CID \
|
||||
{ 0xba6151b2, 0x1dfa, 0x11d3, {0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our UTF32BEToUnicode charset converter
|
||||
// {BA6151B3-1DFA-11d3-B3BF-00805F8A6670}
|
||||
NS_DECLARE_ID(kUTF32BEToUnicodeCID,
|
||||
0xba6151b3, 0x1dfa, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
0xba6151b3, 0x1dfa, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_UTF32BETOUNICODE_CID \
|
||||
{ 0xba6151b3, 0x1dfa, 0x11d3, {0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our T61ToUnicode charset converter
|
||||
// {BA6151B4-1DFA-11d3-B3BF-00805F8A6670}
|
||||
NS_DECLARE_ID(kT61ToUnicodeCID,
|
||||
0xba6151b4, 0x1dfa, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
|
||||
0xba6151b4, 0x1dfa, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_T61TOUNICODE_CID \
|
||||
{ 0xba6151b4, 0x1dfa, 0x11d3, {0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our UnicodeToUTF16LE charset converter
|
||||
// {BA6151B5-1DFA-11d3-B3BF-00805F8A6670}
|
||||
NS_DECLARE_ID(kUnicodeToUTF16LECID,
|
||||
0xba6151b5, 0x1dfa, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
0xba6151b5, 0x1dfa, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_UNICODETOUTF16LE_CID \
|
||||
{ 0xba6151b5, 0x1dfa, 0x11d3, {0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our UnicodeToUTF32LE charset converter
|
||||
// {BA6151B6-1DFA-11d3-B3BF-00805F8A6670}
|
||||
NS_DECLARE_ID(kUnicodeToUTF32LECID,
|
||||
0xba6151b6, 0x1dfa, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
|
||||
0xba6151b6, 0x1dfa, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_UNICODETOUTF32LE_CID \
|
||||
{ 0xba6151b6, 0x1dfa, 0x11d3, {0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our UTF16LEToUnicode charset converter
|
||||
// {BA6151B7-1DFA-11d3-B3BF-00805F8A6670}
|
||||
NS_DECLARE_ID(kUTF16LEToUnicodeCID,
|
||||
0xba6151b7, 0x1dfa, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
0xba6151b7, 0x1dfa, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_UTF16LETOUNICODE_CID \
|
||||
{ 0xba6151b7, 0x1dfa, 0x11d3, {0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our UTF32LEToUnicode charset converter
|
||||
// {BA6151B8-1DFA-11d3-B3BF-00805F8A6670}
|
||||
NS_DECLARE_ID(kUTF32LEToUnicodeCID,
|
||||
0xba6151b8, 0x1dfa, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
0xba6151b8, 0x1dfa, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_UTF32LETOUNICODE_CID \
|
||||
{ 0xba6151b8, 0x1dfa, 0x11d3, {0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our ISOIR111ToUnicode charset converter
|
||||
NS_DECLARE_ID(kISOIR111ToUnicodeCID,
|
||||
// {9416BFB1-1F93-11d3-B3BF-00805F8A6670}
|
||||
0x9416bfb1, 0x1f93, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
0x9416bfb1, 0x1f93, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_ISOIR111TOUNICODE_CID \
|
||||
{ 0x9416bfb1, 0x1f93, 0x11d3, {0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our UserDefinedToUnicode charset converter
|
||||
NS_DECLARE_ID(kUserDefinedToUnicodeCID,
|
||||
// {9416BFB2-1F93-11d3-B3BF-00805F8A6670}
|
||||
0x9416bfb2, 0x1f93, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
0x9416bfb2, 0x1f93, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_USERDEFINEDTOUNICODE_CID \
|
||||
{ 0x9416bfb2, 0x1f93, 0x11d3, {0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our UnicodeToISOIR111 charset converter
|
||||
NS_DECLARE_ID(kUnicodeToISOIR111CID,
|
||||
// {9416BFB3-1F93-11d3-B3BF-00805F8A6670}
|
||||
0x9416bfb3, 0x1f93, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
0x9416bfb3, 0x1f93, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_UNICODETOISOIR111_CID \
|
||||
{ 0x9416bfb3, 0x1f93, 0x11d3, {0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our UnicodeToUserDefined charset converter
|
||||
NS_DECLARE_ID(kUnicodeToUserDefinedCID,
|
||||
// {9416BFB4-1F93-11d3-B3BF-00805F8A6670}
|
||||
0x9416bfb4, 0x1f93, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
|
||||
0x9416bfb4, 0x1f93, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_UNICODETOUSERDEFINED_CID \
|
||||
{ 0x9416bfb4, 0x1f93, 0x11d3, {0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our AsciiToUnicode charset converter
|
||||
NS_DECLARE_ID(kAsciiToUnicodeCID,
|
||||
// {BA6151B9-1DFA-11d3-B3BF-00805F8A6670}
|
||||
0xba6151b9, 0x1dfa, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
|
||||
0xba6151b9, 0x1dfa, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_ASCIITOUNICODE_CID \
|
||||
{ 0xba6151b9, 0x1dfa, 0x11d3, {0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our UnicodeToAscii charset converter
|
||||
NS_DECLARE_ID(kUnicodeToAsciiCID,
|
||||
// {BA6151BA-1DFA-11d3-B3BF-00805F8A6670}
|
||||
0xba6151ba, 0x1dfa, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
0xba6151ba, 0x1dfa, 0x11d3, 0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_UNICODETOASCII_CID \
|
||||
{ 0xba6151ba, 0x1dfa, 0x11d3, {0xb3, 0xbf, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our UnicodeToAscii charset converter
|
||||
NS_DECLARE_ID(kUnicodeToSymbolCID,
|
||||
// {21DD6A02-413C-11d3-B3C3-00805F8A6670}
|
||||
0x21dd6a02, 0x413c, 0x11d3, 0xb3, 0xc3, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
0x21dd6a02, 0x413c, 0x11d3, 0xb3, 0xc3, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_UNICODETOSYMBOL_CID \
|
||||
{ 0x21dd6a02, 0x413c, 0x11d3, {0xb3, 0xc3, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// Class ID for our UnicodeToAscii charset converter
|
||||
NS_DECLARE_ID(kUnicodeToZapfDingbatsCID,
|
||||
// {21DD6A03-413C-11d3-B3C3-00805F8A6670}
|
||||
0x21dd6a03, 0x413c, 0x11d3, 0xb3, 0xc3, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
0x21dd6a03, 0x413c, 0x11d3, 0xb3, 0xc3, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_UNICODETOZAPFDINGBATS_CID \
|
||||
{ 0x21dd6a03, 0x413c, 0x11d3, {0xb3, 0xc3, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// {4F26B731-46CB-11d3-B3C3-00805F8A6670}
|
||||
NS_DECLARE_ID(kUnicodeToTIS620WinCID,
|
||||
0x4f26b731, 0x46cb, 0x11d3, 0xb3, 0xc3, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
0x4f26b731, 0x46cb, 0x11d3, 0xb3, 0xc3, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_UNICODETOTIS620WIN_CID \
|
||||
{ 0x4f26b731, 0x46cb, 0x11d3, {0xb3, 0xc3, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// {319FF9C2-51D2-11d3-B3C3-00805F8A6670}
|
||||
NS_DECLARE_ID(kUEscapeToUnicodeCID,
|
||||
0x319ff9c2, 0x51d2, 0x11d3, 0xb3, 0xc3, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
0x319ff9c2, 0x51d2, 0x11d3, 0xb3, 0xc3, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_UESCAPETOUNICODE_CID \
|
||||
{ 0x319ff9c2, 0x51d2, 0x11d3, {0xb3, 0xc3, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// {319FF9C3-51D2-11d3-B3C3-00805F8A6670}
|
||||
NS_DECLARE_ID(kUnicodeToUEscapeCID,
|
||||
0x319ff9c3, 0x51d2, 0x11d3, 0xb3, 0xc3, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
0x319ff9c3, 0x51d2, 0x11d3, 0xb3, 0xc3, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_UNICODETOUESCAPE_CID \
|
||||
{ 0x319ff9c3, 0x51d2, 0x11d3, {0xb3, 0xc3, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// {49B38F11-6193-11d3-B3C5-00805F8A6670}
|
||||
NS_DECLARE_ID(kUnicodeToLangBoxArabic8CID,
|
||||
0x49b38f11, 0x6193, 0x11d3, 0xb3, 0xc5, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
0x49b38f11, 0x6193, 0x11d3, 0xb3, 0xc5, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_UNICODETOLANGBOXARABIC8_CID \
|
||||
{ 0x49b38f11, 0x6193, 0x11d3, {0xb3, 0xc5, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// {49B38F12-6193-11d3-B3C5-00805F8A6670}
|
||||
NS_DECLARE_ID(kUnicodeToUTF16CID,
|
||||
0x49b38f12, 0x6193, 0x11d3, 0xb3, 0xc5, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
0x49b38f12, 0x6193, 0x11d3, 0xb3, 0xc5, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_UNICODETOUTF16_CID \
|
||||
{ 0x49b38f12, 0x6193, 0x11d3, {0xb3, 0xc5, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
// {49B38F14-6193-11d3-B3C5-00805F8A6670}
|
||||
NS_DECLARE_ID(kUnicodeToUTF32CID,
|
||||
0x49b38f14, 0x6193, 0x11d3, 0xb3, 0xc5, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
|
||||
0x49b38f14, 0x6193, 0x11d3, 0xb3, 0xc5, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70);
|
||||
#define NS_UNICODETOUTF32_CID \
|
||||
{ 0x49b38f14, 0x6193, 0x11d3, {0xb3, 0xc5, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70}}
|
||||
|
||||
#endif /* nsUCvLatinCID_h___ */
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -20,48 +20,7 @@
|
|||
* Contributor(s):
|
||||
*/
|
||||
|
||||
|
||||
#include "nsUEscapeToUnicode.h"
|
||||
#include "nsUCvLatinSupport.h"
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
// Class nsUEscapeToUnicode [declaration]
|
||||
|
||||
class nsUEscapeToUnicode : public nsBasicDecoderSupport
|
||||
{
|
||||
public:
|
||||
|
||||
/**
|
||||
* Class constructor.
|
||||
*/
|
||||
nsUEscapeToUnicode() { Reset();};
|
||||
|
||||
NS_IMETHOD Convert(const char * aSrc, PRInt32 * aSrcLength,
|
||||
PRUnichar * aDest, PRInt32 * aDestLength);
|
||||
NS_IMETHOD Reset();
|
||||
/**
|
||||
* Static class constructor.
|
||||
*/
|
||||
static nsresult CreateInstance(nsISupports **aResult);
|
||||
|
||||
protected:
|
||||
//--------------------------------------------------------------------
|
||||
// Subclassing of nsDecoderSupport class [declaration]
|
||||
|
||||
NS_IMETHOD GetMaxLength(const char * aSrc, PRInt32 aSrcLength,
|
||||
PRInt32 * aDestLength);
|
||||
private:
|
||||
PRUint8 mState;
|
||||
PRUint16 mData;
|
||||
PRUnichar mBuffer[2];
|
||||
PRUint32 mBufferLen;
|
||||
};
|
||||
|
||||
nsresult nsUEscapeToUnicode::CreateInstance(nsISupports ** aResult)
|
||||
{
|
||||
*aResult = new nsUEscapeToUnicode();
|
||||
return (*aResult == NULL)? NS_ERROR_OUT_OF_MEMORY : NS_OK;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
// Subclassing of nsTableDecoderSupport class [implementation]
|
||||
|
@ -175,6 +134,8 @@ NS_IMETHODIMP nsUEscapeToUnicode::Reset()
|
|||
mBufferLen =0;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
nsresult NEW_UEscapeToUnicode(nsISupports **aResult)
|
||||
{
|
||||
*aResult = new nsUEscapeToUnicode();
|
||||
|
|
|
@ -23,6 +23,39 @@
|
|||
#ifndef nsUEscapeToUnicode_h___
|
||||
#define nsUEscapeToUnicode_h___
|
||||
#include "nsISupports.h"
|
||||
|
||||
#include "nsUEscapeToUnicode.h"
|
||||
#include "nsUCvLatinSupport.h"
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
// Class nsUEscapeToUnicode [declaration]
|
||||
|
||||
class nsUEscapeToUnicode : public nsBasicDecoderSupport
|
||||
{
|
||||
public:
|
||||
|
||||
/**
|
||||
* Class constructor.
|
||||
*/
|
||||
nsUEscapeToUnicode() { Reset();};
|
||||
|
||||
NS_IMETHOD Convert(const char * aSrc, PRInt32 * aSrcLength,
|
||||
PRUnichar * aDest, PRInt32 * aDestLength);
|
||||
NS_IMETHOD Reset();
|
||||
|
||||
protected:
|
||||
//--------------------------------------------------------------------
|
||||
// Subclassing of nsDecoderSupport class [declaration]
|
||||
|
||||
NS_IMETHOD GetMaxLength(const char * aSrc, PRInt32 aSrcLength,
|
||||
PRInt32 * aDestLength);
|
||||
private:
|
||||
PRUint8 mState;
|
||||
PRUint16 mData;
|
||||
PRUnichar mBuffer[2];
|
||||
PRUint32 mBufferLen;
|
||||
};
|
||||
|
||||
nsresult NEW_UEscapeToUnicode(nsISupports **Result);
|
||||
|
||||
|
||||
|
|
|
@ -254,9 +254,3 @@ nsUTF7ToUnicode::nsUTF7ToUnicode()
|
|||
: nsBasicUTF7Decoder('/', '+')
|
||||
{
|
||||
}
|
||||
|
||||
nsresult nsUTF7ToUnicode::CreateInstance(nsISupports ** aResult)
|
||||
{
|
||||
*aResult = new nsUTF7ToUnicode();
|
||||
return (*aResult == NULL)? NS_ERROR_OUT_OF_MEMORY : NS_OK;
|
||||
}
|
||||
|
|
|
@ -86,10 +86,6 @@ public:
|
|||
*/
|
||||
nsUTF7ToUnicode();
|
||||
|
||||
/**
|
||||
* Static class constructor.
|
||||
*/
|
||||
static nsresult CreateInstance(nsISupports **aResult);
|
||||
};
|
||||
|
||||
#endif /* nsUTF7ToUnicode_h___ */
|
||||
|
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче