X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fstringcodec%2Fiso885915.cpp;h=3e71f753afcfdfdc6ce1c57c75378cb1f01c9cad;hb=02794ef3620d0d9cc3b8f1c0d8f2995c825fdf4f;hp=7aef9d34ef980c1b84356238ee5fffce8eb81ca7;hpb=967785734be5c3fc6f75da122c2d93ebbb338271;p=libs%2Fcore.git diff --git a/source/stringcodec/iso885915.cpp b/source/stringcodec/iso885915.cpp index 7aef9d3..3e71f75 100644 --- a/source/stringcodec/iso885915.cpp +++ b/source/stringcodec/iso885915.cpp @@ -23,9 +23,9 @@ const int mapping[map_size*2]= namespace Msp { -namespace Codecs { +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 @@ -59,5 +59,5 @@ UnicodeChar Iso885915::Decoder::decode_char(const string &str, string::const_ite return result; } -} // namespace Codecs +} // namespace StringCodec } // namespace Msp