X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fstringcodec%2Fiso885915.cpp;fp=source%2Fstringcodec%2Fiso885915.cpp;h=3e71f753afcfdfdc6ce1c57c75378cb1f01c9cad;hb=02794ef3620d0d9cc3b8f1c0d8f2995c825fdf4f;hp=8e121adda4068a636222936dac3bd9c2a2b23c99;hpb=b011b17393069d86790b2291a759280e15c75a0f;p=libs%2Fcore.git diff --git a/source/stringcodec/iso885915.cpp b/source/stringcodec/iso885915.cpp index 8e121ad..3e71f75 100644 --- a/source/stringcodec/iso885915.cpp +++ b/source/stringcodec/iso885915.cpp @@ -25,7 +25,7 @@ const int mapping[map_size*2]= namespace Msp { namespace StringCodec { -void Iso885915::Encoder::encode_char(UnicodeChar ch, string &buf) +void Iso885915::Encoder::encode_char(unichar ch, string &buf) { int tch = transform_mapping_or_direct(mapping, map_size, ch, false); if(tch<0 || tch>0xFF) @@ -35,13 +35,13 @@ void Iso885915::Encoder::encode_char(UnicodeChar ch, string &buf) } -void Iso885915::Encoder::transliterate(UnicodeChar, string &buf) +void Iso885915::Encoder::transliterate(unichar, string &buf) { buf += '?'; } -UnicodeChar Iso885915::Decoder::decode_char(const string &str, string::const_iterator &i) +unichar Iso885915::Decoder::decode_char(const string &str, string::const_iterator &i) { if(i==str.end()) return error("No input"); @@ -49,7 +49,7 @@ UnicodeChar Iso885915::Decoder::decode_char(const string &str, string::const_ite unsigned char ch = *i; int tch = transform_mapping_or_direct(mapping, map_size, ch, true); - UnicodeChar result; + unichar result; if(tch==-1) result = error("Undefined ISO-8859-15 character"); else