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

UMString.h File Reference

#include <string>
#include <wchar.h>
#include <windows.h>

Go to the source code of this file.

Compounds

class  UMString
 String class for handling multibyte and unicode strings. More...


Typedefs

typedef unsigned int UINT

Enumerations

enum  CHARTYPE {
  HiraChar, KataChar, KanjiChar, LatinChar,
  LatinPunct, JapPunct, UnknownChar
}
 defines the kinds of characters in Japanese More...


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]).

bool IsLatinPunct (const wchar_t tmp_uc_char)
bool IsJapPunct (const wchar_t tmp_uc_char)
bool IsNumber (const wchar_t tmp_uc_char)
const CHARTYPE IsWhat (const wchar_t tmp_uc_char)
 Returns the type of character.

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.


Typedef Documentation

typedef unsigned int UINT
 


Enumeration Type Documentation

enum CHARTYPE
 

defines the kinds of characters in Japanese

Enumeration values:
HiraChar 
KataChar 
KanjiChar 
LatinChar 
LatinPunct 
JapPunct 
UnknownChar 


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 IsJapPunct const wchar_t  tmp_uc_char  ) 
 

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

bool IsLatinPunct const wchar_t  tmp_uc_char  ) 
 

bool IsNumber const wchar_t  tmp_uc_char  ) 
 

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


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