]> git.tdb.fi Git - libs/core.git/blobdiff - source/stringcodec/iso885915.cpp
Rename UnicodeChar to unichar
[libs/core.git] / source / stringcodec / iso885915.cpp
index 7aef9d34ef980c1b84356238ee5fffce8eb81ca7..3e71f753afcfdfdc6ce1c57c75378cb1f01c9cad 100644 (file)
@@ -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