-/* $Id$
-
-This file is part of libmspstrings
-Copyright © 2006-2007 Mikko Rasa
-Distributed under the LGPL
-*/
-
-#ifndef MSP_STRINGS_JISX0208_H_
-#define MSP_STRINGS_JISX0208_H_
+#ifndef MSP_STRINGCODEC_JISX0208_H_
+#define MSP_STRINGCODEC_JISX0208_H_
#include "codec.h"
namespace Msp {
-namespace Codecs {
+namespace StringCodec {
/**
Codec for the JIS X 0208 encoding. This is not particularly useful as a
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
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 0208"; }
operator bool() { return ku!=0 && ten!=0; }
};
-extern UnicodeChar jisx0208_to_ucs(Kuten);
-extern Kuten ucs_to_jisx0208(UnicodeChar);
+extern unichar jisx0208_to_ucs(Kuten);
+extern Kuten ucs_to_jisx0208(unichar);
-} // namespace Codecs
+} // namespace StringCodec
} // namespace Msp
#endif