]> git.tdb.fi Git - libs/core.git/blobdiff - source/stringcodec/jisx0208.h
Add decorations for things which are considered part of the API
[libs/core.git] / source / stringcodec / jisx0208.h
index b0c03b2af8136593a2e9d26cc882c8596d20f1c9..0f29432efbfe91cb042ab8f8ff177d1174ca189e 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef MSP_STRINGCODEC_JISX0208_H_
 #define MSP_STRINGCODEC_JISX0208_H_
 
+#include <msp/core/mspcore_api.h>
 #include "codec.h"
 
 namespace Msp {
@@ -11,10 +12,10 @@ Codec for the JIS X 0208 encoding.  This is not particularly useful as a
 stand-alone codec, due to lack of a linefeed character among other things,
 but is included as part of some other encodings.
 */
-class JisX0208: public StandardCodec<JisX0208>
+class MSPCORE_API JisX0208: public StandardCodec<JisX0208>
 {
 public:
-       class Encoder: public Codec::Encoder
+       class MSPCORE_API Encoder: public Codec::Encoder
        {
        public:
                Encoder(ErrorMode em = DEFAULT): Codec::Encoder(em) { }
@@ -24,7 +25,7 @@ public:
                void transliterate(unichar, std::string &) override;
        };
 
-       class Decoder: public Codec::Decoder
+       class MSPCORE_API Decoder: public Codec::Decoder
        {
        public:
                Decoder(ErrorMode em = DEFAULT): Codec::Decoder(em) { }
@@ -46,8 +47,8 @@ struct Kuten
        explicit operator bool() { return ku!=0 && ten!=0; }
 };
 
-unichar jisx0208_to_ucs(Kuten);
-Kuten ucs_to_jisx0208(unichar);
+MSPCORE_API unichar jisx0208_to_ucs(Kuten);
+MSPCORE_API Kuten ucs_to_jisx0208(unichar);
 
 } // namespace StringCodec
 } // namespace Msp