Main Page | Modules | Namespace List | Compound List | File List | Compound Members | File Members | Related Pages

UMString.cpp File Reference

#include "UMString.h"

Defines

#define SJIS1(A)   ((A >= 129 && A <= 159) || (A >= 224 && A <= 239))
#define SJIS2(A)   (A >= 64 && A <= 252)
#define ISEUC(A)   (A >= 161 && A <= 254)
#define HANKATA(A)   (A >= 161 && A <= 223)
#define SS2   142

Functions

bool IsASCII (const wchar_t tmp_uc_char)
 Checks if a given wchar_t is an ascii-character.

bool IsWideChar (const wchar_t tmp_uc_char)
 Checks if a given wchar_t is an wide-character.

bool IsHira (const wchar_t tmp_uc_char)
 Checks if a given wchar_t is a hiragana.

bool IsKata (const wchar_t tmp_uc_char)
 Checks if a given wchar_t is a katakana.

bool IsKanji (const wchar_t tmp_uc_char)
 Checks if a given wchar_t is a kanji.

bool IsKana (const wchar_t tmp_uc_char)
 Checks if a given wchar_t is a kana.

bool IsLatinChar (const wchar_t tmp_uc_char)
 Checks if a given wchar_t is a latin character ([a-z,A-Z]).

const CHARTYPE IsWhat (const wchar_t tmp_uc_char)
 Returns the type of character.

void sjis2jis (unsigned char *p1, unsigned char *p2)
 Converts a string from Shift-JIS to JIS.

void jis2sjis (unsigned char *p1, unsigned char *p2)
 Coverts a string from JIS to Shift-JIS.

string GetEUCFromSJIS (const string &SJISString)
 Coverts a string from Shift-JIS to EUC-jp.

string GetSJISFromEUC (const string &EUCString)
 Converts a string from EUC-jp to Shift-JIS.


Define Documentation

#define HANKATA  )     (A >= 161 && A <= 223)
 

#define ISEUC  )     (A >= 161 && A <= 254)
 

#define SJIS1  )     ((A >= 129 && A <= 159) || (A >= 224 && A <= 239))
 

#define SJIS2  )     (A >= 64 && A <= 252)
 

#define SS2   142
 


Function Documentation

string GetEUCFromSJIS const string &  SJISString  ) 
 

Coverts a string from Shift-JIS to EUC-jp.

Parameters:
SJISString -> The string to be converted
Returns:
string : The converted string in EUC-jp

string GetSJISFromEUC const string &  EUCString  ) 
 

Converts a string from EUC-jp to Shift-JIS.

Parameters:
EUCString -> The string to be converted
Returns:
string : The converted string in Shift-JIS

bool IsASCII const wchar_t  tmp_uc_char  ) 
 

Checks if a given wchar_t is an ascii-character.

Parameters:
tmp_uc_char the wchar_t to be checked
Returns:
(bool) : true character is an ascii-character

false it is not an ascii-character

bool IsHira const wchar_t  tmp_uc_char  ) 
 

Checks if a given wchar_t is a hiragana.

Parameters:
tmp_uc_char the wchar_t to be checked
Returns:
(bool) : true = character is a hiragana

(bool) : false = it is not a hiragana

bool IsKana const wchar_t  tmp_uc_char  ) 
 

Checks if a given wchar_t is a kana.

Parameters:
tmp_uc_char -> the wchar_t to be checked
Returns:
(bool) : true = character is a kana

(bool) : false = it is not a kana

bool IsKanji const wchar_t  tmp_uc_char  ) 
 

Checks if a given wchar_t is a kanji.

Parameters:
tmp_uc_char -> the wchar_t to be checked
Returns:
(bool) : true = character is a kanji

(bool) : false = it is not a kanji

bool IsKata const wchar_t  tmp_uc_char  ) 
 

Checks if a given wchar_t is a katakana.

Parameters:
tmp_uc_char the wchar_t to be checked
Returns:
(bool) : true = character is a katakana

(bool) : false = it is not a katakana

bool IsLatinChar const wchar_t  tmp_uc_char  ) 
 

Checks if a given wchar_t is a latin character ([a-z,A-Z]).

Parameters:
tmp_uc_char the wchar_t to be checked
Returns:
(bool) : true character is a latin character

(bool) : false it is not a latin character

const CHARTYPE IsWhat const wchar_t  tmp_uc_char  ) 
 

Returns the type of character.

Parameters:
tmp_uc_char -> the wchar_t to be checked
Returns:
(CharTypes) : KanjiChar character is a Kanji

(CharTypes) : HiraChar character is a Hiragana

(CharTypes) : KataChar character is a Katakana

bool IsWideChar const wchar_t  tmp_uc_char  ) 
 

Checks if a given wchar_t is an wide-character.

Parameters:
tmp_uc_char -> the wchar_t to be checked
Returns:
(bool) : true = character is an wide-character

(bool) : false = it is not an wide-character

void jis2sjis unsigned char *  p1,
unsigned char *  p2
 

Coverts a string from JIS to Shift-JIS.

Parameters:
*p1The string to be converted
Returns:
*p2 The converted string in Shift-JIS

void sjis2jis unsigned char *  p1,
unsigned char *  p2
 

Converts a string from Shift-JIS to JIS.

Parameters:
*p1 The string to be converted
Returns:
*p2 The converted string in JIS


Generated on Mon Aug 18 19:27:10 2003 for LeJa by doxygen 1.3.3