X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fstringcodec%2Fjisx0208.h;h=c59e44f5481ec32e234f41a6b12b306e248b0bf8;hp=81b39f2104ca5c638fd967b1baaa91abdb03a8b0;hb=d3fc0bf0f20f100f2831188c1ce21461d21c2c7a;hpb=94ee3a1040f67d9de2e92fc34049642b08d65b3e diff --git a/source/stringcodec/jisx0208.h b/source/stringcodec/jisx0208.h index 81b39f2..c59e44f 100644 --- a/source/stringcodec/jisx0208.h +++ b/source/stringcodec/jisx0208.h @@ -11,7 +11,7 @@ Codec for the JIS X 0208 encoding. This is not particularly useful as a 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 { public: class Encoder: public Codec::Encoder @@ -32,10 +32,9 @@ public: 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(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"; } };