X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fstringcodec%2Fjisx0208.h;h=293d2774304d1c27a41c061f9801e76a50260b22;hp=c59e44f5481ec32e234f41a6b12b306e248b0bf8;hb=017feade2799ddbecad62b9a7911bf4d3e229dad;hpb=d3fc0bf0f20f100f2831188c1ce21461d21c2c7a diff --git a/source/stringcodec/jisx0208.h b/source/stringcodec/jisx0208.h index c59e44f..293d277 100644 --- a/source/stringcodec/jisx0208.h +++ b/source/stringcodec/jisx0208.h @@ -17,7 +17,7 @@ public: class Encoder: public Codec::Encoder { public: - Encoder(ErrorMode em = THROW_ON_ERROR): Codec::Encoder(em) { } + Encoder(ErrorMode em = DEFAULT): Codec::Encoder(em) { } virtual void encode_char(unichar, std::string &); private: @@ -27,12 +27,12 @@ public: class Decoder: public Codec::Decoder { public: - Decoder(ErrorMode em = THROW_ON_ERROR): Codec::Decoder(em) { } + Decoder(ErrorMode em = DEFAULT): Codec::Decoder(em) { } virtual unichar decode_char(const std::string &, std::string::const_iterator &); }; - JisX0208(ErrorMode em = THROW_ON_ERROR): StandardCodec(em) { } + JisX0208(ErrorMode em = DEFAULT): StandardCodec(em) { } virtual const char *get_name() const { return "JIS X 0208"; } }; @@ -48,8 +48,8 @@ struct Kuten operator bool() { return ku!=0 && ten!=0; } }; -extern unichar jisx0208_to_ucs(Kuten); -extern Kuten ucs_to_jisx0208(unichar); +unichar jisx0208_to_ucs(Kuten); +Kuten ucs_to_jisx0208(unichar); } // namespace StringCodec } // namespace Msp