X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fstringcodec%2Fjisx0201.h;h=7a7223ee7cd3aed7f1b9271a45f74517899dcab4;hb=02794ef3620d0d9cc3b8f1c0d8f2995c825fdf4f;hp=67a6e7860858a1ffa3d290eddb3e2f70c02adbe6;hpb=967785734be5c3fc6f75da122c2d93ebbb338271;p=libs%2Fcore.git diff --git a/source/stringcodec/jisx0201.h b/source/stringcodec/jisx0201.h index 67a6e78..7a7223e 100644 --- a/source/stringcodec/jisx0201.h +++ b/source/stringcodec/jisx0201.h @@ -1,10 +1,10 @@ -#ifndef MSP_STRINGS_JISX201_H_ -#define MSP_STRINGS_JISX201_H_ +#ifndef MSP_STRINGCODEC_JISX201_H_ +#define MSP_STRINGCODEC_JISX201_H_ #include "codec.h" namespace Msp { -namespace Codecs { +namespace StringCodec { class JisX0201: public Codec { @@ -14,9 +14,9 @@ public: public: Encoder(ErrorMode em = THROW_ON_ERROR): Codec::Encoder(em) { } - virtual void encode_char(UnicodeChar, std::string &); + virtual void encode_char(unichar, std::string &); private: - virtual void transliterate(UnicodeChar, std::string &); + virtual void transliterate(unichar, std::string &); }; class Decoder: public Codec::Decoder @@ -24,7 +24,7 @@ public: public: Decoder(ErrorMode em = THROW_ON_ERROR): Codec::Decoder(em) { } - virtual UnicodeChar decode_char(const std::string &, std::string::const_iterator &); + virtual unichar decode_char(const std::string &, std::string::const_iterator &); }; virtual const char *get_name() const { return "JIS X 0201"; } @@ -33,7 +33,7 @@ public: virtual Decoder *create_decoder(ErrorMode em = THROW_ON_ERROR) const { return new Decoder(em); } }; -} // namespace Codecs +} // namespace StringCodec } // namespace Msp #endif