X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fiso88591.h;fp=source%2Fiso88591.h;h=4365c0d18081c4dce214fc86d93a65234e07cadb;hp=80c706be25211b8814f645347c54135925f8a8c9;hb=5b1368cb791cab043f0435628cacbaff36e39b7b;hpb=36f9e78ae75f5e14b132f37d249340ad3480b8ce diff --git a/source/iso88591.h b/source/iso88591.h index 80c706b..4365c0d 100644 --- a/source/iso88591.h +++ b/source/iso88591.h @@ -19,7 +19,8 @@ public: class Encoder: public Codec::Encoder { public: - Encoder(ErrorMode em=THROW_ON_ERROR): Codec::Encoder(em) { } + Encoder(ErrorMode em = THROW_ON_ERROR): Codec::Encoder(em) { } + virtual void encode_char(UnicodeChar, std::string &); private: virtual void transliterate(UnicodeChar, std::string &); @@ -28,14 +29,15 @@ public: class Decoder: public Codec::Decoder { public: - Decoder(ErrorMode em=THROW_ON_ERROR): Codec::Decoder(em) { } + Decoder(ErrorMode em = THROW_ON_ERROR): Codec::Decoder(em) { } + virtual UnicodeChar decode_char(const std::string &, std::string::const_iterator &); }; virtual const char *get_name() const { return "ISO-8859-1"; } - 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 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