diff options
Diffstat (limited to 'tqtinterface/qt4/src/codecs/tqeucjpcodec.cpp')
-rw-r--r-- | tqtinterface/qt4/src/codecs/tqeucjpcodec.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/tqtinterface/qt4/src/codecs/tqeucjpcodec.cpp b/tqtinterface/qt4/src/codecs/tqeucjpcodec.cpp index 416ad78..f758586 100644 --- a/tqtinterface/qt4/src/codecs/tqeucjpcodec.cpp +++ b/tqtinterface/qt4/src/codecs/tqeucjpcodec.cpp @@ -125,7 +125,7 @@ static const uchar Ss3 = 0x8f; // Single Shift 3 #define IsKana(c) (((c) >= 0xa1) && ((c) <= 0xdf)) #define IsEucChar(c) (((c) >= 0xa1) && ((c) <= 0xfe)) -#define TQValidChar(u) ((u) ? TQChar((ushort)(u)) : TQChar::tqreplacement) +#define TQValidChar(u) ((u) ? TQChar((ushort)(u)) : TQChar::replacement) /*! Constructs a TQEucJpCodec. @@ -230,7 +230,7 @@ TQString TQEucJpCodec::toUnicode(const char* chars, int len) const result += TQValidChar(u); } else { i--; - result += TQChar::tqreplacement; + result += TQChar::replacement; } } } else if ( ch == Ss3 ) { @@ -245,17 +245,17 @@ TQString TQEucJpCodec::toUnicode(const char* chars, int len) const result += TQValidChar(u); } else { i--; - result += TQChar::tqreplacement; + result += TQChar::replacement; } } else { - result += TQChar::tqreplacement; + result += TQChar::replacement; } } else { i--; - result += TQChar::tqreplacement; + result += TQChar::replacement; } } else { - result += TQChar::tqreplacement; + result += TQChar::replacement; } } else if ( IsEucChar(ch) ) { // JIS X 0208 @@ -266,14 +266,14 @@ TQString TQEucJpCodec::toUnicode(const char* chars, int len) const result += TQValidChar(u); } else { i--; - result += TQChar::tqreplacement; + result += TQChar::replacement; } } else { - result += TQChar::tqreplacement; + result += TQChar::replacement; } } else { // Invalid - result += TQChar::tqreplacement; + result += TQChar::replacement; } } return result; @@ -424,7 +424,7 @@ public: nbuf = 1; } else { // Invalid - result += TQChar::tqreplacement; + result += TQChar::replacement; } break; case 1: @@ -434,7 +434,7 @@ public: uint u = conv->jisx0201ToUnicode(ch); result += TQValidChar(u); } else { - result += TQChar::tqreplacement; + result += TQChar::replacement; } nbuf = 0; } else if ( buf[0] == Ss3 ) { @@ -444,7 +444,7 @@ public: nbuf = 2; } else { // Error - result += TQChar::tqreplacement; + result += TQChar::replacement; nbuf = 0; } } else { @@ -454,7 +454,7 @@ public: result += TQValidChar(u); } else { // Error - result += TQChar::tqreplacement; + result += TQChar::replacement; } nbuf = 0; } @@ -465,7 +465,7 @@ public: uint u = conv->jisx0212ToUnicode(buf[1] & 0x7f, ch & 0x7f); result += TQValidChar(u); } else { - result += TQChar::tqreplacement; + result += TQChar::replacement; } nbuf = 0; } |