]> git.tdb.fi Git - libs/core.git/blobdiff - source/jisx0201.h
Further style and comment adjustments
[libs/core.git] / source / jisx0201.h
index 180f710f3d87d1234ff3c129310032435ad4c8a0..41332de93fe1ed6ab77ca4bad63082ab1e8248f4 100644 (file)
@@ -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 "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); }
+       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