1 #ifndef MSP_STRINGS_JISX201_H_
2 #define MSP_STRINGS_JISX201_H_
8 class JisX0201: public StringCodec
11 class Encoder: public StringCodec::Encoder
14 Encoder(ErrorMode em=THROW_ON_ERROR): StringCodec::Encoder(em) { }
15 void encode_char(wchar_t);
17 void append_replacement() { append(032); }
20 class Decoder: public StringCodec::Decoder
23 Decoder(ErrorMode em=THROW_ON_ERROR): StringCodec::Decoder(em) { }
24 void decode_char(const std::string &, std::string::const_iterator &);
27 Encoder *create_encoder(ErrorMode em=THROW_ON_ERROR) const { return new Encoder(em); }
28 Decoder *create_decoder(ErrorMode em=THROW_ON_ERROR) const { return new Decoder(em); }