X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fjisx0201.h;h=180f710f3d87d1234ff3c129310032435ad4c8a0;hb=a0a5c796a6ec11a13c49912672a82bf1857bbc71;hp=1c502f9da1516007882bd1f8f8c4c7dd3cb95fe8;hpb=f47bc86e6ce900c5323e593db003c93110538268;p=libs%2Fcore.git diff --git a/source/jisx0201.h b/source/jisx0201.h index 1c502f9..180f710 100644 --- a/source/jisx0201.h +++ b/source/jisx0201.h @@ -32,8 +32,10 @@ public: virtual UnicodeChar decode_char(const std::string &, std::string::const_iterator &); }; - Encoder *create_encoder(ErrorMode em=THROW_ON_ERROR) const { return new Encoder(em); } - Decoder *create_decoder(ErrorMode em=THROW_ON_ERROR) const { return new Decoder(em); } + virtual const char *get_name() const { return "JIS X 0201"; } + + 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); } }; } // namespace Codecs