stand-alone codec, due to lack of a linefeed character among other things,
but is included as part of some other encodings.
*/
-class JisX0208: public Codec
+class JisX0208: public StandardCodec<JisX0208>
{
public:
class Encoder: public Codec::Encoder
virtual unichar decode_char(const std::string &, std::string::const_iterator &);
};
- virtual const char *get_name() const { return "JIS X 0208"; }
+ JisX0208(ErrorMode em = THROW_ON_ERROR): StandardCodec<JisX0208>(em) { }
- virtual Encoder *create_encoder(ErrorMode em = THROW_ON_ERROR) const { return new Encoder(em); }
- virtual Decoder *create_decoder(ErrorMode em = THROW_ON_ERROR) const { return new Decoder(em); }
+ virtual const char *get_name() const { return "JIS X 0208"; }
};
operator bool() { return ku!=0 && ten!=0; }
};
-extern unichar jisx0208_to_ucs(Kuten);
-extern Kuten ucs_to_jisx0208(unichar);
+unichar jisx0208_to_ucs(Kuten);
+Kuten ucs_to_jisx0208(unichar);
} // namespace StringCodec
} // namespace Msp