7 void JisX0201::Encoder::encode_char(wchar_t c_)
9 // Win32 has typedef unsigned short wchar_t
11 if(c>=0 && c<=0x7F && c!=0x5C && c!=0x7E)
17 else if(c>=0xFF61 && c<=0xFF9F)
20 error("Can't express character in JIS X 0201");
23 void JisX0201::Decoder::decode_char(const string &str, string::const_iterator &i)
35 else if(c>=0xA1 && c<=0xDF)
38 error("Invalid JIS X 0201 string (undefined character)");