X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fstringcodec%2Fcodec.cpp;h=b7c600d74d6fbf0c70ccfd5fed9b766bd96a1c56;hb=3e3868860d4f4ca1bbe55fbf271c804307cea3c9;hp=ed54ac938b33e6fbf12e763dccd615706696468a;hpb=056dc68dfc606a2c14126a70321045d6d9f12e0e;p=libs%2Fcore.git diff --git a/source/stringcodec/codec.cpp b/source/stringcodec/codec.cpp index ed54ac9..b7c600d 100644 --- a/source/stringcodec/codec.cpp +++ b/source/stringcodec/codec.cpp @@ -47,7 +47,7 @@ string Codec::Encoder::encode(const ustring &str) return buf; } -void Codec::Encoder::error(UnicodeChar ch, string &buf, const string &msg) +void Codec::Encoder::error(unichar ch, string &buf, const string &msg) { switch(err_mode) { @@ -65,7 +65,7 @@ void Codec::Decoder::decode(const string &str, ustring &buf) { for(string::const_iterator i=str.begin(); i!=str.end();) { - UnicodeChar c = decode_char(str, i); + unichar c = decode_char(str, i); if(c!=-1) buf += c; } @@ -78,7 +78,7 @@ ustring Codec::Decoder::decode(const string &str) return buf; } -UnicodeChar Codec::Decoder::error(const string &msg) +unichar Codec::Decoder::error(const string &msg) { switch(err_mode) {