]> git.tdb.fi Git - libs/core.git/blobdiff - source/iso2022jp.h
Added reset function for StringCodec::Decoder
[libs/core.git] / source / iso2022jp.h
index 89b80df0e311c8d4aae7cab953b0e0a597fc78ab..8ded0d845d2c87200577351acb57ded2466c9f2d 100644 (file)
@@ -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;