]> git.tdb.fi Git - libs/core.git/blobdiff - source/stringcodec/jisx0208.h
Let the base classes decide the default error mode
[libs/core.git] / source / stringcodec / jisx0208.h
index c59e44f5481ec32e234f41a6b12b306e248b0bf8..293d2774304d1c27a41c061f9801e76a50260b22 100644 (file)
@@ -17,7 +17,7 @@ public:
        class Encoder: public Codec::Encoder
        {
        public:
-               Encoder(ErrorMode em = THROW_ON_ERROR): Codec::Encoder(em) { }
+               Encoder(ErrorMode em = DEFAULT): Codec::Encoder(em) { }
 
                virtual void encode_char(unichar, std::string &);
        private:
@@ -27,12 +27,12 @@ public:
        class Decoder: public Codec::Decoder
        {
        public:
-               Decoder(ErrorMode em = THROW_ON_ERROR): Codec::Decoder(em) { }
+               Decoder(ErrorMode em = DEFAULT): Codec::Decoder(em) { }
 
                virtual unichar decode_char(const std::string &, std::string::const_iterator &);
        };
 
-       JisX0208(ErrorMode em = THROW_ON_ERROR): StandardCodec<JisX0208>(em) { }
+       JisX0208(ErrorMode em = DEFAULT): StandardCodec<JisX0208>(em) { }
 
        virtual const char *get_name() const { return "JIS X 0208"; }
 };
@@ -48,8 +48,8 @@ struct Kuten
        operator bool() { return ku!=0 && ten!=0; }
 };
 
-extern unichar jisx0208_to_ucs(Kuten);
-extern Kuten ucs_to_jisx0208(unichar);
+unichar jisx0208_to_ucs(Kuten);
+Kuten ucs_to_jisx0208(unichar);
 
 } // namespace StringCodec
 } // namespace Msp