]> git.tdb.fi Git - libs/core.git/blobdiff - source/jisx0201.h
Move files around to prepare for assimilation into core
[libs/core.git] / source / jisx0201.h
diff --git a/source/jisx0201.h b/source/jisx0201.h
deleted file mode 100644 (file)
index 41332de..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-/* $Id$
-
-This file is part of libmspstrings
-Copyright © 2006-2007 Mikko Rasa
-Distributed under the LGPL
-*/
-
-#ifndef MSP_STRINGS_JISX201_H_
-#define MSP_STRINGS_JISX201_H_
-
-#include "codec.h"
-
-namespace Msp {
-namespace Codecs {
-
-class JisX0201: public Codec
-{
-public:
-       class Encoder: public Codec::Encoder
-       {
-       public:
-               Encoder(ErrorMode em = THROW_ON_ERROR): Codec::Encoder(em) { }
-
-               virtual void encode_char(UnicodeChar, std::string &);
-       private:
-               virtual void transliterate(UnicodeChar, 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 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); }
-};
-
-} // namespace Codecs
-} // namespace Msp
-
-#endif