1 #include "codecutils.h"
8 const unsigned map_size = 8;
10 const int mapping[map_size*2]=
28 void Iso885915::Encoder::encode_char(UnicodeChar ch, string &buf)
30 int tch = transform_mapping_or_direct(mapping, map_size, ch, false);
32 error(ch, buf, "Can't express character in ISO-8859-15");
38 void Iso885915::Encoder::transliterate(UnicodeChar, string &buf)
44 UnicodeChar Iso885915::Decoder::decode_char(const string &str, string::const_iterator &i)
47 return error("No input");
49 unsigned char ch = *i;
50 int tch = transform_mapping_or_direct(mapping, map_size, ch, true);
54 result = error("Undefined ISO-8859-15 character");