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);
23 void sync() { switch_mode(ASCII); }
27 void switch_mode(Mode);
30 class Decoder: public StringCodec::Decoder
34 void decode_char(const std::string &, std::string::const_iterator &);
38 StringCodec::Decoder *dec;
41 void switch_mode(Mode);
44 Encoder *create_encoder() const { return new Encoder; }
45 Decoder *create_decoder() const { return new Decoder; }