MWAWFontSJISConverter Class Reference

a namespace used to convert Mac SJIS font characters in unicode More...

#include <MWAWFontSJISConverter.hxx>

Public Member Functions

 MWAWFontSJISConverter ()
 the constructor
 ~MWAWFontSJISConverter ()
 the destructor
int unicode (unsigned char c, MWAWInputStreamPtr &input)
 try to return a unicode for a shift jis character ( returns -1 if the character can not be converted )
int unicode (unsigned char c, unsigned char const *(&str), int len)
 try to return a unicode for a shift jis character ( returns -1 if the character can not be converted )
void initMap ()
 init the mapping

Protected Attributes

std::map< int, int > m_sjisUnicodeMap
 a map sjis->unicode

Detailed Description

a namespace used to convert Mac SJIS font characters in unicode

Constructor & Destructor Documentation

MWAWFontSJISConverter::MWAWFontSJISConverter ( )

the constructor

MWAWFontSJISConverter::~MWAWFontSJISConverter ( )

the destructor

Member Function Documentation

void MWAWFontSJISConverter::initMap ( )

init the mapping

Referenced by MWAWFontSJISConverter().

int MWAWFontSJISConverter::unicode ( unsigned char  c,
MWAWInputStreamPtr input 
)

try to return a unicode for a shift jis character ( returns -1 if the character can not be converted )

int MWAWFontSJISConverter::unicode ( unsigned char  c,
unsigned char const *&  str,
int  len 
)

try to return a unicode for a shift jis character ( returns -1 if the character can not be converted )

Member Data Documentation

std::map<int,int> MWAWFontSJISConverter::m_sjisUnicodeMap
protected

a map sjis->unicode

Referenced by initMap(), and unicode().


The documentation for this class was generated from the following files:

Generated on Wed May 22 2013 18:12:46 for libmwaw by doxygen 1.8.1.2