namespace Msp {
-namespace Codecs {
+namespace StringCodec {
-void Iso646Fi::Encoder::encode_char(UnicodeChar ch, string &buf)
+void Iso646Fi::Encoder::encode_char(unichar ch, string &buf)
{
int tch = transform_mapping_or_direct(mapping, map_size, ch, false);
if(tch<0 || tch>0x7F)
buf += tch;
}
-void Iso646Fi::Encoder::transliterate(UnicodeChar, string &buf)
+void Iso646Fi::Encoder::transliterate(unichar, string &buf)
{
buf += '?';
}
-UnicodeChar Iso646Fi::Decoder::decode_char(const string &str, string::const_iterator &i)
+unichar Iso646Fi::Decoder::decode_char(const string &str, string::const_iterator &i)
{
if(i==str.end())
return error("No input");
unsigned char ch = *i;
int tch = (ch<=0x7F ? transform_mapping_or_direct(mapping, map_size, ch, true) : -1);
- UnicodeChar result;
+ unichar result;
if(tch==-1)
result = error("Undefined ISO-646-FI character");
else
return result;
}
-} // namespace Codecs
+} // namespace StringCodec
} // namespace Msp