1 #include "codecutils.h"
8 const unsigned map_size = 9;
10 const int mapping[map_size*2]=
27 namespace StringCodec {
29 void Iso646Fi::Encoder::encode_char(unichar ch, string &buf)
31 int tch = transform_mapping_or_direct(mapping, map_size, ch, false);
33 error(ch, buf, "Can't express character in ISO-646-FI");
38 void Iso646Fi::Encoder::transliterate(unichar, string &buf)
44 unichar Iso646Fi::Decoder::decode_char(const string &str, string::const_iterator &i)
49 unsigned char ch = *i;
52 result = error("Undefined ISO-646-FI character");
54 result = transform_mapping_or_direct(mapping, map_size, ch, true);
60 } // namespace StringCodec