1 #ifndef MSP_STRINGCODEC_ISO88591_H_
2 #define MSP_STRINGCODEC_ISO88591_H_
7 namespace StringCodec {
9 class Iso88591: public StandardCodec<Iso88591>
12 class Encoder: public Codec::Encoder
15 Encoder(ErrorMode em = THROW_ON_ERROR): Codec::Encoder(em) { }
17 virtual void encode_char(unichar, std::string &);
19 virtual void transliterate(unichar, std::string &);
22 class Decoder: public Codec::Decoder
25 Decoder(ErrorMode em = THROW_ON_ERROR): Codec::Decoder(em) { }
27 virtual unichar decode_char(const std::string &, std::string::const_iterator &);
30 Iso88591(ErrorMode em = THROW_ON_ERROR): StandardCodec<Iso88591>(em) { }
32 virtual const char *get_name() const { return "ISO-8859-1"; }
35 } // namespace StringCodec