X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fstringcodec%2Futf16.h;h=a588b124dddb27461f05c4a41b31aee8a1cd783f;hb=refs%2Fheads%2Fwip;hp=73d81cb9c26a15ec4ad9c318e4525f5a5a4a3705;hpb=5d51c374869f13f762039f58c03f3c5d75c12f07;p=libs%2Fcore.git diff --git a/source/stringcodec/utf16.h b/source/stringcodec/utf16.h index 73d81cb..a588b12 100644 --- a/source/stringcodec/utf16.h +++ b/source/stringcodec/utf16.h @@ -1,6 +1,7 @@ #ifndef MSP_STRINGCODEC_UTF16_H_ #define MSP_STRINGCODEC_UTF16_H_ +#include #include "codec.h" namespace Msp { @@ -11,7 +12,7 @@ The UTF-16 codec, as specified in the Unicode standard. Both little and big endian are supported, as well as autodetection with the BOM. In the absence of a BOM, big endian is assumed. */ -class Utf16: public StandardCodec +class MSPCORE_API Utf16: public StandardCodec { public: enum Endian @@ -21,7 +22,7 @@ public: LITTLE }; - class Encoder: public Codec::Encoder + class MSPCORE_API Encoder: public Codec::Encoder { private: Endian endian = BIG; @@ -35,7 +36,7 @@ public: void transliterate(unichar, std::string &) override; }; - class Decoder: public Codec::Decoder + class MSPCORE_API Decoder: public Codec::Decoder { private: Endian endian = AUTO;