3 This file is part of libmspstrings
4 Copyright © 2006-2007 Mikko Rasa
5 Distributed under the LGPL
8 #include "codecutils.h"
15 const unsigned map_size=8;
17 const int mapping[map_size*2]=
34 void Iso885915::Encoder::encode_char(UnicodeChar ch, string &buf)
36 int tch=transform_mapping_or_direct(mapping, map_size, ch, false);
38 error(ch, buf, "Can't express character in ISO-8859-15");
44 void Iso885915::Encoder::transliterate(UnicodeChar, string &buf)
50 UnicodeChar Iso885915::Decoder::decode_char(const string &str, string::const_iterator &i)
53 return error("No input");
56 int tch=transform_mapping_or_direct(mapping, map_size, ch, true);
60 result=error("Undefined ISO-8859-15 character");