diff options
Diffstat (limited to 'tqtinterface/qt4/src/codecs/tqsjiscodec.cpp')
-rw-r--r-- | tqtinterface/qt4/src/codecs/tqsjiscodec.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tqtinterface/qt4/src/codecs/tqsjiscodec.cpp b/tqtinterface/qt4/src/codecs/tqsjiscodec.cpp index 000898d..5b907d6 100644 --- a/tqtinterface/qt4/src/codecs/tqsjiscodec.cpp +++ b/tqtinterface/qt4/src/codecs/tqsjiscodec.cpp @@ -102,7 +102,7 @@ static const uchar Esc = 0x1b; #define IsSjisChar2(c) (((c) >= 0x40) && ((c) != 0x7f) && ((c) <= 0xfc)) #define IsUserDefinedChar1(c) (((c) >= 0xf0) && ((c) <= 0xfc)) -#define TQValidChar(u) ((u) ? TQChar((ushort)(u)) : TQChar::tqreplacement) +#define TQValidChar(u) ((u) ? TQChar((ushort)(u)) : TQChar::replacement) /*! Creates a Shift-JIS codec. Note that this is done automatically by @@ -207,20 +207,20 @@ TQString TQSjisCodec::toUnicode(const char* chars, int len) const } else if ((u = conv->cp932ToUnicode(ch, c2))) { result += TQValidChar(u); } else if ( IsUserDefinedChar1(ch) ) { - result += TQChar::tqreplacement; + result += TQChar::replacement; } else { u = conv->sjisToUnicode(ch, c2); result += TQValidChar(u); } } else { i--; - result += TQChar::tqreplacement; + result += TQChar::replacement; } } else { - result += TQChar::tqreplacement; + result += TQChar::replacement; } } else { - result += TQChar::tqreplacement; + result += TQChar::replacement; } } return result; @@ -343,7 +343,7 @@ public: nbuf = 1; } else { // Invalid - result += TQChar::tqreplacement; + result += TQChar::replacement; } break; case 1: @@ -354,14 +354,14 @@ public: } else if ((u = conv->cp932ToUnicode(buf[0], ch))) { result += TQValidChar(u); } else if ( IsUserDefinedChar1(buf[0]) ) { - result += TQChar::tqreplacement; + result += TQChar::replacement; } else { u = conv->sjisToUnicode(buf[0], ch); result += TQValidChar(u); } } else { // Invalid - result += TQChar::tqreplacement; + result += TQChar::replacement; } nbuf = 0; break; |