X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fiso2022jp.h;h=8ded0d845d2c87200577351acb57ded2466c9f2d;hp=89b80df0e311c8d4aae7cab953b0e0a597fc78ab;hb=51b84c0c2c3abb0cf7e815c5ae259face40ac977;hpb=58384e355b4a78730d69243f1092e47591f2f384 diff --git a/source/iso2022jp.h b/source/iso2022jp.h index 89b80df..8ded0d8 100644 --- a/source/iso2022jp.h +++ b/source/iso2022jp.h @@ -20,7 +20,7 @@ public: public: Encoder(): mode(ASCII) { } void encode_char(wchar_t); - void sync() { switch_mode(ASCII); } + void sync(); private: Mode mode; @@ -33,6 +33,7 @@ public: Decoder(); void decode_char(const std::string &, std::string::const_iterator &); void sync(); + void reset(); private: Mode mode; StringCodec::Decoder *dec;