1 #include "codecutils.h"
8 const unsigned map_size = 8;
10 const int mapping[map_size*2]=
26 namespace StringCodec {
28 void Iso885915::Encoder::encode_char(unichar ch, string &buf)
30 int tch = transform_mapping_or_direct(mapping, map_size, ch, false);
32 error(ch, buf, invalid_character(ch, "ISO-8859-15"));
38 void Iso885915::Encoder::transliterate(unichar, string &buf)
44 unichar Iso885915::Decoder::decode_char(const string &str, string::const_iterator &i)
49 unsigned char ch = *i++;
50 return transform_mapping_or_direct(mapping, map_size, ch, true);
53 } // namespace StringCodec