1 #ifndef MSP_STRINGCODEC_JISX201_H_
2 #define MSP_STRINGCODEC_JISX201_H_
7 namespace StringCodec {
9 class JisX0201: public StandardCodec<JisX0201>
12 class Encoder: public Codec::Encoder
15 Encoder(ErrorMode em = DEFAULT): Codec::Encoder(em) { }
17 void encode_char(unichar, std::string &) override;
19 void transliterate(unichar, std::string &) override;
22 class Decoder: public Codec::Decoder
25 Decoder(ErrorMode em = DEFAULT): Codec::Decoder(em) { }
27 unichar decode_char(const std::string &, std::string::const_iterator &) override;
30 JisX0201(ErrorMode em = DEFAULT): StandardCodec<JisX0201>(em) { }
32 const char *get_name() const override { return "JIS X 0201"; }
35 } // namespace StringCodec