Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
nsUnicodeToSJIS.cpp File Reference
#include "nsUCConstructors.h"
#include "nsUnicodeToSJIS.h"
#include "sjis.uf"

Go to the source code of this file.


NS_METHOD nsUnicodeToSJISConstructor (nsISupports *aOuter, REFNSIID aIID, void **aResult)
 A character set converter from Unicode to SJIS.


static const PRUint16 g_SJISMappingTable []
static const PRInt16 g_SJISShiftTable []

Function Documentation

NS_METHOD nsUnicodeToSJISConstructor ( nsISupports *  aOuter,
void **  aResult 

A character set converter from Unicode to SJIS.


Catalin Rotaru [CATA]

Definition at line 57 of file nsUnicodeToSJIS.cpp.

  return CreateTableEncoder((uShiftTable*) &g_SJISShiftTable, 
                            (uMappingTable*) &g_SJISMappingTable,
                            2 /* max length = src * 2 */,
                            aOuter, aIID, aResult);

Here is the call graph for this function:

Variable Documentation

Definition at line 44 of file nsUnicodeToSJIS.cpp.

Initial value:
  4, uMultibytesCharset,
  ShiftCell(u1ByteChar,   1, 0x00, 0x7F, 0x00, 0x00, 0x00, 0x7F),
  ShiftCell(u1ByteChar,   1, 0xA1, 0xDF, 0x00, 0xA1, 0x00, 0xDF),
  ShiftCell(u2BytesChar,  2, 0x81, 0x9F, 0x81, 0x40, 0x9F, 0xFC),
  ShiftCell(u2BytesChar,  2, 0xE0, 0xFC, 0xE0, 0x40, 0xFC, 0xFC)

Definition at line 48 of file nsUnicodeToSJIS.cpp.