1 #ifndef MSP_STRINGS_ISO2022JP_H_
2 #define MSP_STRINGS_ISO2022JP_H_
8 class Iso2022Jp: public StringCodec
18 class Encoder: public StringCodec::Encoder
21 Encoder(): mode(ASCII) { }
22 void encode_char(wchar_t);
27 void switch_mode(Mode);
30 class Decoder: public StringCodec::Decoder
34 void decode_char(const std::string &, std::string::const_iterator &);
39 StringCodec::Decoder *dec;
42 void switch_mode(Mode);
45 Encoder *create_encoder() const { return new Encoder; }
46 Decoder *create_decoder() const { return new Decoder; }