diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-02-28 22:31:39 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-02-28 22:31:39 -0600 |
commit | 41bb408dde90e755b07cd2ab8a9bdec7548c84b0 (patch) | |
tree | 6d4d5407c000add30aa78630e009c0e5d633e440 /src/codecs | |
parent | 1740cd279522c060e738bbbffacab83355d2b794 (diff) | |
download | tqt3-41bb408dde90e755b07cd2ab8a9bdec7548c84b0.tar.gz tqt3-41bb408dde90e755b07cd2ab8a9bdec7548c84b0.zip |
Automated conversion from qt3
Diffstat (limited to 'src/codecs')
-rw-r--r-- | src/codecs/qbig5codec.cpp | 64 | ||||
-rw-r--r-- | src/codecs/qeucjpcodec.cpp | 12 | ||||
-rw-r--r-- | src/codecs/qeuckrcodec.cpp | 10 | ||||
-rw-r--r-- | src/codecs/qfontcncodec.cpp | 36 | ||||
-rw-r--r-- | src/codecs/qfonthkcodec.cpp | 16 | ||||
-rw-r--r-- | src/codecs/qfonttwcodec.cpp | 16 | ||||
-rw-r--r-- | src/codecs/qgb18030codec.cpp | 60 | ||||
-rw-r--r-- | src/codecs/qjiscodec.cpp | 10 | ||||
-rw-r--r-- | src/codecs/qjpunicode.cpp | 30 | ||||
-rw-r--r-- | src/codecs/qrtlcodec.cpp | 12 | ||||
-rw-r--r-- | src/codecs/qsjiscodec.cpp | 10 | ||||
-rw-r--r-- | src/codecs/qtextcodec.cpp | 42 | ||||
-rw-r--r-- | src/codecs/qtextcodecfactory.cpp | 4 | ||||
-rw-r--r-- | src/codecs/qtsciicodec.cpp | 2 |
14 files changed, 162 insertions, 162 deletions
diff --git a/src/codecs/qbig5codec.cpp b/src/codecs/qbig5codec.cpp index efb90ff39..49ebce4e7 100644 --- a/src/codecs/qbig5codec.cpp +++ b/src/codecs/qbig5codec.cpp @@ -531,7 +531,7 @@ static int qt_UnicodeToBig5(ushort ch, uchar *buf) int TQBig5Codec::mibEnum() const { /* See http://www.iana.org/assignments/character-sets */ - //qDebug("TQBig5Codec::mibEnum() = 2026"); + //tqDebug("TQBig5Codec::mibEnum() = 2026"); return 2026; } @@ -539,7 +539,7 @@ int TQBig5Codec::mibEnum() const /*! \reimp */ const char* TQBig5Codec::name() const { - //qDebug("TQBig5Codec::name() = \"Big5\""); + //tqDebug("TQBig5Codec::name() = \"Big5\""); return "Big5"; } @@ -554,7 +554,7 @@ public: TQString toUnicode(const char* chars, int len) { - //qDebug("TQBig5Decoder::toUnicode(const char* chars = \"%s\", int len = %d)", chars, len); + //tqDebug("TQBig5Decoder::toUnicode(const char* chars = \"%s\", int len = %d)", chars, len); TQString result; for (int i=0; i<len; i++) { uchar ch = chars[i]; @@ -599,7 +599,7 @@ public: /*! \reimp */ TQTextDecoder* TQBig5Codec::makeDecoder() const { - //qDebug("TQBig5Codec::makeDecoder()"); + //tqDebug("TQBig5Codec::makeDecoder()"); return new TQBig5Decoder(); } @@ -607,7 +607,7 @@ TQTextDecoder* TQBig5Codec::makeDecoder() const /*! \reimp */ TQCString TQBig5Codec::fromUnicode(const TQString& uc, int& lenInOut) const { - //qDebug("TQBig5Codec::fromUnicode(const TQString& uc, int& lenInOut = %d)", lenInOut); + //tqDebug("TQBig5Codec::fromUnicode(const TQString& uc, int& lenInOut = %d)", lenInOut); int l = TQMIN((int)uc.length(),lenInOut); int rlen = l*3+1; TQCString rstr(rlen); @@ -639,7 +639,7 @@ TQCString TQBig5Codec::fromUnicode(const TQString& uc, int& lenInOut) const /*! \reimp */ TQString TQBig5Codec::toUnicode(const char* chars, int len) const { - //qDebug("TQBig5Codec::toUnicode(const char* chars \"%s\", int len = %d)", chars, len); + //tqDebug("TQBig5Codec::toUnicode(const char* chars \"%s\", int len = %d)", chars, len); TQString result; for (int i=0; i<len; i++) { uchar ch = chars[i]; @@ -677,7 +677,7 @@ TQString TQBig5Codec::toUnicode(const char* chars, int len) const /*! \reimp */ int TQBig5Codec::heuristicContentMatch(const char* chars, int len) const { - //qDebug("TQBig5Codec::heuristicContentMatch(const char* chars, int len = %d)", len); + //tqDebug("TQBig5Codec::heuristicContentMatch(const char* chars, int len = %d)", len); int score = 0; for (int i=0; i<len; i++) { uchar ch = chars[i]; @@ -705,7 +705,7 @@ int TQBig5Codec::heuristicContentMatch(const char* chars, int len) const return -1; } } - //qDebug("TQBig5Codec::heuristicContentMatch() score = %d", score); + //tqDebug("TQBig5Codec::heuristicContentMatch() score = %d", score); return score; } @@ -713,15 +713,15 @@ int TQBig5Codec::heuristicContentMatch(const char* chars, int len) const /*! \reimp */ int TQBig5Codec::heuristicNameMatch(const char* hint) const { - //qDebug("TQBig5hkscsCodec::heuristicNameMatch(const char* hint = \"%s\")", hint); + //tqDebug("TQBig5hkscsCodec::heuristicNameMatch(const char* hint = \"%s\")", hint); int score = 0; bool zh = FALSE; - if (qstrnicmp(hint, "zh_TW", 5) == 0) { + if (tqstrnicmp(hint, "zh_TW", 5) == 0) { score += 16; zh = TRUE; } - else if ( qstrnicmp(hint, "zh", 2) == 0 || - qstrnicmp(hint, "chinese", 7) == 0) { + else if ( tqstrnicmp(hint, "zh", 2) == 0 || + tqstrnicmp(hint, "chinese", 7) == 0) { score += 2; zh = TRUE; } @@ -735,11 +735,11 @@ int TQBig5Codec::heuristicNameMatch(const char* hint) const p = hint; } if (p) { - if ( qstricmp(p, "Big5") == 0 || - qstricmp(p, "TW-Big5") == 0 ) { + if ( tqstricmp(p, "Big5") == 0 || + tqstricmp(p, "TW-Big5") == 0 ) { return score + 10; } - else if ( qstrnicmp(p, "Big5", 4) == 0 ) + else if ( tqstrnicmp(p, "Big5", 4) == 0 ) return score + 2; } return TQTextCodec::heuristicNameMatch(hint); @@ -817,7 +817,7 @@ int TQBig5hkscsCodec::mibEnum() const { /* See http://www.iana.org/assignments/character-sets */ /* http://www.iana.org/assignments/charset-reg/Big5-HKSCS */ - //qDebug("TQBig5hkscsCodec::mibEnum() = 2101"); + //tqDebug("TQBig5hkscsCodec::mibEnum() = 2101"); return 2101; } @@ -825,7 +825,7 @@ int TQBig5hkscsCodec::mibEnum() const /*! \reimp */ const char* TQBig5hkscsCodec::name() const { - //qDebug("TQBig5hkscsCodec::name() = \"Big5-HKSCS\""); + //tqDebug("TQBig5hkscsCodec::name() = \"Big5-HKSCS\""); return "Big5-HKSCS"; } @@ -840,7 +840,7 @@ public: TQString toUnicode(const char* chars, int len) { - //qDebug("TQBig5hkscsDecoder::toUnicode(const char* chars = \"%s\", int len = %d)", chars, len); + //tqDebug("TQBig5hkscsDecoder::toUnicode(const char* chars = \"%s\", int len = %d)", chars, len); TQString result; for (int i=0; i<len; i++) { uchar ch = chars[i]; @@ -885,7 +885,7 @@ public: /*! \reimp */ TQTextDecoder* TQBig5hkscsCodec::makeDecoder() const { - //qDebug("TQBig5hkscsCodec::makeDecoder()"); + //tqDebug("TQBig5hkscsCodec::makeDecoder()"); return new TQBig5hkscsDecoder(); } @@ -893,7 +893,7 @@ TQTextDecoder* TQBig5hkscsCodec::makeDecoder() const /*! \reimp */ TQCString TQBig5hkscsCodec::fromUnicode(const TQString& uc, int& lenInOut) const { - //qDebug("TQBig5hkscsCodec::fromUnicode(const TQString& uc, int& lenInOut = %d)", lenInOut); + //tqDebug("TQBig5hkscsCodec::fromUnicode(const TQString& uc, int& lenInOut = %d)", lenInOut); int l = TQMIN((int)uc.length(),lenInOut); int rlen = l*3+1; TQCString rstr(rlen); @@ -922,7 +922,7 @@ TQCString TQBig5hkscsCodec::fromUnicode(const TQString& uc, int& lenInOut) const /*! \reimp */ TQString TQBig5hkscsCodec::toUnicode(const char* chars, int len) const { - //qDebug("TQBig5hkscsCodec::toUnicode(const char* chars = \"%s\", int len = %d)", chars, len); + //tqDebug("TQBig5hkscsCodec::toUnicode(const char* chars = \"%s\", int len = %d)", chars, len); TQString result; for (int i=0; i<len; i++) { uchar ch = chars[i]; @@ -960,15 +960,15 @@ TQString TQBig5hkscsCodec::toUnicode(const char* chars, int len) const /*! \reimp */ int TQBig5hkscsCodec::heuristicNameMatch(const char* hint) const { - //qDebug("TQBig5hkscsCodec::heuristicNameMatch(const char* hint = \"%s\")", hint); + //tqDebug("TQBig5hkscsCodec::heuristicNameMatch(const char* hint = \"%s\")", hint); int score = 0; bool zh = FALSE; - if (qstrnicmp(hint, "zh_HK", 5) == 0) { + if (tqstrnicmp(hint, "zh_HK", 5) == 0) { score += 16; zh = TRUE; } - else if ( qstrnicmp(hint, "zh", 2) == 0 || - qstrnicmp(hint, "chinese", 7) == 0) { + else if ( tqstrnicmp(hint, "zh", 2) == 0 || + tqstrnicmp(hint, "chinese", 7) == 0) { score += 2; zh = TRUE; } @@ -982,13 +982,13 @@ int TQBig5hkscsCodec::heuristicNameMatch(const char* hint) const p = hint; } if (p) { - if ( qstricmp(p, "Big5-HKSCS") == 0 || - qstricmp(p, "HKSCS-Big5") == 0 || - qstricmp(p, "Big5HKSCS") == 0 || - qstricmp(p, "hkbig5") == 0 ) { + if ( tqstricmp(p, "Big5-HKSCS") == 0 || + tqstricmp(p, "HKSCS-Big5") == 0 || + tqstricmp(p, "Big5HKSCS") == 0 || + tqstricmp(p, "hkbig5") == 0 ) { return score + 10; } - else if (qstrnicmp(p, "Big5", 4) == 0) { + else if (tqstrnicmp(p, "Big5", 4) == 0) { return score + 2; } } @@ -999,7 +999,7 @@ int TQBig5hkscsCodec::heuristicNameMatch(const char* hint) const /*! \reimp */ int TQBig5hkscsCodec::heuristicContentMatch(const char* chars, int len) const { - //qDebug("TQBig5hkscsCodec::heuristicContentMatch(const char* chars, int len = %d)", len); + //tqDebug("TQBig5hkscsCodec::heuristicContentMatch(const char* chars, int len = %d)", len); int score = 0; for (int i=0; i<len; i++) { uchar ch = chars[i]; @@ -1027,7 +1027,7 @@ int TQBig5hkscsCodec::heuristicContentMatch(const char* chars, int len) const return -1; } } - //qDebug("TQBig5hkscsCodec::heuristicContentMatch() score = %d", score); + //tqDebug("TQBig5hkscsCodec::heuristicContentMatch() score = %d", score); return score; } diff --git a/src/codecs/qeucjpcodec.cpp b/src/codecs/qeucjpcodec.cpp index 1b5a3c897..52ce9592d 100644 --- a/src/codecs/qeucjpcodec.cpp +++ b/src/codecs/qeucjpcodec.cpp @@ -302,10 +302,10 @@ int TQEucJpCodec::heuristicNameMatch(const char* hint) const { int score = 0; bool ja = FALSE; - if (qstrnicmp(hint, "ja_JP", 5) == 0 || qstrnicmp(hint, "japan", 5) == 0) { + if (tqstrnicmp(hint, "ja_JP", 5) == 0 || tqstrnicmp(hint, "japan", 5) == 0) { score += 3; ja = TRUE; - } else if (qstrnicmp(hint, "ja", 2) == 0) { + } else if (tqstrnicmp(hint, "ja", 2) == 0) { score += 2; ja = TRUE; } @@ -320,16 +320,16 @@ int TQEucJpCodec::heuristicNameMatch(const char* hint) const p = hint; } if (p) { - if ((qstricmp(p, "AJEC") == 0) || - (qstricmp(p, "eucJP") == 0) || - (qstricmp(p, "ujis") == 0) || + if ((tqstricmp(p, "AJEC") == 0) || + (tqstricmp(p, "eucJP") == 0) || + (tqstricmp(p, "ujis") == 0) || (simpleHeuristicNameMatch(p, "eucJP") > 0) || (simpleHeuristicNameMatch(p, "x-euc-jp") > 0)) { return score + 4; } // there exists ja_JP.EUC, ko_KR.EUC, zh_CN.EUC and zh_TW.EUC // so "euc" may or may not be Japanese EUC. - if (qstricmp(p, "euc") == 0 && ja) { + if (tqstricmp(p, "euc") == 0 && ja) { return score + 4; } } diff --git a/src/codecs/qeuckrcodec.cpp b/src/codecs/qeuckrcodec.cpp index 547c00e80..433f4b8bd 100644 --- a/src/codecs/qeuckrcodec.cpp +++ b/src/codecs/qeuckrcodec.cpp @@ -212,11 +212,11 @@ int TQEucKrCodec::heuristicNameMatch(const char* hint) const { int score = 0; bool ko = FALSE; - if (qstrnicmp(hint, "ko_KR", 5) == 0 || - qstrnicmp(hint, "korean", 5) == 0) { + if (tqstrnicmp(hint, "ko_KR", 5) == 0 || + tqstrnicmp(hint, "korean", 5) == 0) { score += 3; ko = TRUE; - } else if (qstrnicmp(hint, "ko", 2) == 0) { + } else if (tqstrnicmp(hint, "ko", 2) == 0) { score += 2; ko = TRUE; } @@ -231,10 +231,10 @@ int TQEucKrCodec::heuristicNameMatch(const char* hint) const p = hint; } if (p) { - if (qstricmp(p, "eucKR") == 0) { + if (tqstricmp(p, "eucKR") == 0) { return score + 4; } - else if (qstricmp(p, "euc") == 0 && ko) { + else if (tqstricmp(p, "euc") == 0 && ko) { return score + 4; } } diff --git a/src/codecs/qfontcncodec.cpp b/src/codecs/qfontcncodec.cpp index 378dd4300..f4d5fc327 100644 --- a/src/codecs/qfontcncodec.cpp +++ b/src/codecs/qfontcncodec.cpp @@ -55,20 +55,20 @@ int TQFontGb2312Codec::heuristicContentMatch(const char *, int) const TQFontGb2312Codec::TQFontGb2312Codec() { - //qDebug("TQFontGb2312Codec::TQFontGb2312Codec()"); + //tqDebug("TQFontGb2312Codec::TQFontGb2312Codec()"); } const char* TQFontGb2312Codec::name() const { - //qDebug("TQFontGb2312Codec::name() = \"gb2312.1980-0\""); + //tqDebug("TQFontGb2312Codec::name() = \"gb2312.1980-0\""); return "gb2312.1980-0"; } int TQFontGb2312Codec::mibEnum() const { - //qDebug("TQFontGb2312Codec::mibEnum() = 57"); + //tqDebug("TQFontGb2312Codec::mibEnum() = 57"); return 57; } @@ -93,7 +93,7 @@ TQCString TQFontGb2312Codec::fromUnicode(const TQString& uc, int& lenInOut ) con uchar *rdata = (uchar *) result.data(); const TQChar *ucp = uc.unicode(); - //qDebug("TQFontGb2312Codec::fromUnicode(const TQString& uc, int& lenInOut = %d)", lenInOut); + //tqDebug("TQFontGb2312Codec::fromUnicode(const TQString& uc, int& lenInOut = %d)", lenInOut); for ( int i = 0; i < lenInOut; i++ ) { TQChar ch(*ucp++); uchar buf[8]; @@ -137,7 +137,7 @@ bool TQFontGb2312Codec::canEncode( TQChar ch ) const { uchar buf[4]; int len = qt_UnicodeToGbk( ch.unicode(), buf ); - //qDebug("TQFontGb2312Codec::canEncode( TQChar ch = %02X%02X )", ch.row(), ch.cell()); + //tqDebug("TQFontGb2312Codec::canEncode( TQChar ch = %02X%02X )", ch.row(), ch.cell()); return ( len == 2 && buf[0] > 0xa0 && buf[1] > 0xa0 ); } @@ -152,29 +152,29 @@ int TQFontGbkCodec::heuristicContentMatch(const char *, int) const int TQFontGbkCodec::heuristicNameMatch(const char* hint) const { - //qDebug("TQFontGbkCodec::heuristicNameMatch(const char* hint = \"%s\")", hint); - return ( qstricmp(hint, "gbk-0") == 0 || - qstricmp(hint, "gb18030.2000-0") == 0 ) + //tqDebug("TQFontGbkCodec::heuristicNameMatch(const char* hint = \"%s\")", hint); + return ( tqstricmp(hint, "gbk-0") == 0 || + tqstricmp(hint, "gb18030.2000-0") == 0 ) ? 13 : 0; } TQFontGbkCodec::TQFontGbkCodec() { - //qDebug("TQFontGbkCodec::TQFontGbkCodec()"); + //tqDebug("TQFontGbkCodec::TQFontGbkCodec()"); } const char* TQFontGbkCodec::name() const { - //qDebug("TQFontGbkCodec::name() = \"gbk-0\""); + //tqDebug("TQFontGbkCodec::name() = \"gbk-0\""); return "gbk-0"; } int TQFontGbkCodec::mibEnum() const { - //qDebug("TQFontGbkCodec::mibEnum() = -113"); + //tqDebug("TQFontGbkCodec::mibEnum() = -113"); return -113; } @@ -199,7 +199,7 @@ TQCString TQFontGbkCodec::fromUnicode(const TQString& uc, int& lenInOut ) const uchar *rdata = (uchar *) result.data(); const TQChar *ucp = uc.unicode(); - //qDebug("TQFontGbkCodec::fromUnicode(const TQString& uc, int& lenInOut = %d)", lenInOut); + //tqDebug("TQFontGbkCodec::fromUnicode(const TQString& uc, int& lenInOut = %d)", lenInOut); for ( int i = 0; i < lenInOut; i++ ) { TQChar ch(*ucp++); uchar buf[8]; @@ -236,7 +236,7 @@ bool TQFontGbkCodec::canEncode( TQChar ch ) const return TRUE; uchar buf[4]; int len = qt_UnicodeToGbk( ch.unicode(), buf ); - //qDebug("TQFontGbkCodec::canEncode( TQChar ch = %02X%02X )", ch.row(), ch.cell()); + //tqDebug("TQFontGbkCodec::canEncode( TQChar ch = %02X%02X )", ch.row(), ch.cell()); return ( len == 2 ); } @@ -250,20 +250,20 @@ int TQFontGb18030_0Codec::heuristicContentMatch(const char *, int) const TQFontGb18030_0Codec::TQFontGb18030_0Codec() { - //qDebug("TQFontGb18030_0Codec::TQFontGb18030_0Codec()"); + //tqDebug("TQFontGb18030_0Codec::TQFontGb18030_0Codec()"); } const char* TQFontGb18030_0Codec::name() const { - //qDebug("TQFontGb18030_0Codec::name() = \"gb18030-0\""); + //tqDebug("TQFontGb18030_0Codec::name() = \"gb18030-0\""); return "gb18030-0"; } int TQFontGb18030_0Codec::mibEnum() const { - //qDebug("TQFontGb18030_0Codec::mibEnum() = -114"); + //tqDebug("TQFontGb18030_0Codec::mibEnum() = -114"); return -114; } @@ -288,7 +288,7 @@ TQCString TQFontGb18030_0Codec::fromUnicode(const TQString& uc, int& lenInOut ) uchar *rdata = (uchar *) result.data(); const TQChar *ucp = uc.unicode(); - //qDebug("TQFontGb18030_0Codec::fromUnicode(const TQString& uc, int& lenInOut = %d)", lenInOut); + //tqDebug("TQFontGb18030_0Codec::fromUnicode(const TQString& uc, int& lenInOut = %d)", lenInOut); for ( int i = 0; i < lenInOut; i++ ) { TQChar ch(*ucp++); if (ch.row () > 0 && !(ch.row () >= 0xd8 && ch.row () < 0xe0)) { @@ -317,7 +317,7 @@ void TQFontGb18030_0Codec::fromUnicode(const TQChar *in, unsigned short *out, in bool TQFontGb18030_0Codec::canEncode( TQChar ch ) const { - //qDebug("TQFontGb18030_0Codec::canEncode( TQChar ch = %02X%02X )", ch.row(), ch.cell()); + //tqDebug("TQFontGb18030_0Codec::canEncode( TQChar ch = %02X%02X )", ch.row(), ch.cell()); return (ch.row () > 0 && !(ch.row () >= 0xd8 && ch.row () < 0xe0)); } diff --git a/src/codecs/qfonthkcodec.cpp b/src/codecs/qfonthkcodec.cpp index 6d53bc6fe..954d53ea1 100644 --- a/src/codecs/qfonthkcodec.cpp +++ b/src/codecs/qfonthkcodec.cpp @@ -54,29 +54,29 @@ int TQFontBig5hkscsCodec::heuristicContentMatch(const char *, int) const int TQFontBig5hkscsCodec::heuristicNameMatch(const char* hint) const { - //qDebug("TQFontBig5hkscsCodec::heuristicNameMatch(const char* hint = \"%s\")", hint); - return ( qstricmp(hint, "big5hkscs-0") == 0 || - qstricmp(hint, "hkscs-1") == 0 ) + //tqDebug("TQFontBig5hkscsCodec::heuristicNameMatch(const char* hint = \"%s\")", hint); + return ( tqstricmp(hint, "big5hkscs-0") == 0 || + tqstricmp(hint, "hkscs-1") == 0 ) ? 13 : 0; } TQFontBig5hkscsCodec::TQFontBig5hkscsCodec() { - //qDebug("TQFontBig5hkscsCodec::TQFontBig5hkscsCodec()"); + //tqDebug("TQFontBig5hkscsCodec::TQFontBig5hkscsCodec()"); } const char* TQFontBig5hkscsCodec::name() const { - //qDebug("TQFontBig5hkscsCodec::name() = \"big5hkscs-0\""); + //tqDebug("TQFontBig5hkscsCodec::name() = \"big5hkscs-0\""); return "big5hkscs-0"; } int TQFontBig5hkscsCodec::mibEnum() const { - //qDebug("TQFontBig5hkscsCodec::mibEnum() = -2101"); + //tqDebug("TQFontBig5hkscsCodec::mibEnum() = -2101"); return -2101; } @@ -97,7 +97,7 @@ TQFontBig5hkscsCodec::characterFromUnicode(const TQString &str, int pos) const TQCString TQFontBig5hkscsCodec::fromUnicode(const TQString& uc, int& lenInOut ) const { - //qDebug("TQFontBig5hkscsCodec::fromUnicode(const TQString& uc, int& lenInOut = %d)", lenInOut); + //tqDebug("TQFontBig5hkscsCodec::fromUnicode(const TQString& uc, int& lenInOut = %d)", lenInOut); TQCString result(lenInOut * 2 + 1); uchar *rdata = (uchar *) result.data(); const TQChar *ucp = uc.unicode(); @@ -151,7 +151,7 @@ void TQFontBig5hkscsCodec::fromUnicode(const TQChar *in, unsigned short *out, in bool TQFontBig5hkscsCodec::canEncode( TQChar ch ) const { - //qDebug("TQFontBig5hkscsCodec::canEncode( TQChar ch = %02X%02X )", ch.row(), ch.cell()); + //tqDebug("TQFontBig5hkscsCodec::canEncode( TQChar ch = %02X%02X )", ch.row(), ch.cell()); uchar c[2]; return ( qt_UnicodeToBig5hkscs( ch.unicode(), c ) == 2 ); } diff --git a/src/codecs/qfonttwcodec.cpp b/src/codecs/qfonttwcodec.cpp index 554fcd771..7fe3f80d3 100644 --- a/src/codecs/qfonttwcodec.cpp +++ b/src/codecs/qfonttwcodec.cpp @@ -54,29 +54,29 @@ int TQFontBig5Codec::heuristicContentMatch(const char *, int) const int TQFontBig5Codec::heuristicNameMatch(const char* hint) const { - //qDebug("TQFontBig5Codec::heuristicNameMatch(const char* hint = \"%s\")", hint); - return ( qstricmp(hint, "big5-0") == 0 || - qstricmp(hint, "big5.eten-0") == 0 ) + //tqDebug("TQFontBig5Codec::heuristicNameMatch(const char* hint = \"%s\")", hint); + return ( tqstricmp(hint, "big5-0") == 0 || + tqstricmp(hint, "big5.eten-0") == 0 ) ? 13 : 0; } TQFontBig5Codec::TQFontBig5Codec() { - //qDebug("TQFontBig5Codec::TQFontBig5Codec()"); + //tqDebug("TQFontBig5Codec::TQFontBig5Codec()"); } const char* TQFontBig5Codec::name() const { - //qDebug("TQFontBig5Codec::name() = \"big5-0\""); + //tqDebug("TQFontBig5Codec::name() = \"big5-0\""); return "big5-0"; } int TQFontBig5Codec::mibEnum() const { - //qDebug("TQFontBig5Codec::mibEnum() = -2026"); + //tqDebug("TQFontBig5Codec::mibEnum() = -2026"); return -2026; } @@ -97,7 +97,7 @@ unsigned short TQFontBig5Codec::characterFromUnicode(const TQString &str, int po TQCString TQFontBig5Codec::fromUnicode(const TQString& uc, int& lenInOut ) const { - //qDebug("TQFontBig5Codec::fromUnicode(const TQString& uc, int& lenInOut = %d)", lenInOut); + //tqDebug("TQFontBig5Codec::fromUnicode(const TQString& uc, int& lenInOut = %d)", lenInOut); TQCString result(lenInOut * 2 + 1); uchar *rdata = (uchar *) result.data(); const TQChar *ucp = uc.unicode(); @@ -152,7 +152,7 @@ void TQFontBig5Codec::fromUnicode(const TQChar *in, unsigned short *out, int len bool TQFontBig5Codec::canEncode( TQChar ch ) const { - //qDebug("TQFontBig5Codec::canEncode( TQChar ch = %02X%02X )", ch.row(), ch.cell()); + //tqDebug("TQFontBig5Codec::canEncode( TQChar ch = %02X%02X )", ch.row(), ch.cell()); uchar c[2]; return ( qt_UnicodeToBig5hkscs( ch.unicode(), c ) == 2 && c[0] >= 0xa1 && c[0] <= 0xf9 ); diff --git a/src/codecs/qgb18030codec.cpp b/src/codecs/qgb18030codec.cpp index 74f833362..8ed96fc74 100644 --- a/src/codecs/qgb18030codec.cpp +++ b/src/codecs/qgb18030codec.cpp @@ -161,7 +161,7 @@ TQGb18030Codec::TQGb18030Codec() /*! \reimp */ const char* TQGb18030Codec::name() const { - //qDebug("TQGb18030Codec::name() = \"GB18030\""); + //tqDebug("TQGb18030Codec::name() = \"GB18030\""); return "GB18030"; } @@ -179,7 +179,7 @@ TQCString TQGb18030Codec::fromUnicode(const TQString& uc, int& lenInOut) const TQCString rstr(rlen); uchar* cursor = (uchar*)rstr.data(); - //qDebug("TQGb18030Codec::fromUnicode(const TQString& uc, int& lenInOut = %d)", lenInOut); + //tqDebug("TQGb18030Codec::fromUnicode(const TQString& uc, int& lenInOut = %d)", lenInOut); for (int i=0; i<l; i++) { TQChar ch = uc[i]; int len; @@ -231,7 +231,7 @@ TQString TQGb18030Codec::toUnicode(const char* chars, int len) const TQString result; int clen; - //qDebug("TQGb18030Codec::toUnicode(const char* chars, int len = %d)", len); + //tqDebug("TQGb18030Codec::toUnicode(const char* chars, int len = %d)", len); for (int i=0; i<len; ) { uchar ch = chars[i]; @@ -274,8 +274,8 @@ int TQGb18030Codec::heuristicNameMatch(const char* hint) const { int score = 0; bool zh = FALSE; - //qDebug("TQGb18030Codec::heuristicNameMatch(const char* hint = \"%s\")", hint); - if (qstrnicmp(hint, "zh_CN", 5) == 0){ + //tqDebug("TQGb18030Codec::heuristicNameMatch(const char* hint = \"%s\")", hint); + if (tqstrnicmp(hint, "zh_CN", 5) == 0){ score += 10; zh = TRUE; } @@ -289,7 +289,7 @@ int TQGb18030Codec::heuristicNameMatch(const char* hint) const p = hint; } if (p) { - if (qstricmp(p, "GB18030") == 0) + if (tqstricmp(p, "GB18030") == 0) return score + 14; } return TQTextCodec::heuristicNameMatch(hint); @@ -299,7 +299,7 @@ int TQGb18030Codec::heuristicNameMatch(const char* hint) const int TQGb18030Codec::heuristicContentMatch(const char* chars, int len) const { int score = 0; - //qDebug("TQGb18030Codec::heuristicContentMatch(const char* chars, int len = %d)", len); + //tqDebug("TQGb18030Codec::heuristicContentMatch(const char* chars, int len = %d)", len); for (int i=0; i<len; i++) { uchar ch = chars[i]; // No nulls allowed. @@ -351,7 +351,7 @@ public: TQString toUnicode(const char* chars, int len) { TQString result; - //qDebug("TQGb18030Decoder::toUnicode(const char* chars, int len = %d)", len); + //tqDebug("TQGb18030Decoder::toUnicode(const char* chars, int len = %d)", len); for (int i=0; i<len; i++) { uchar ch = chars[i]; switch (nbuf) { @@ -433,7 +433,7 @@ public: /*! \reimp */ TQTextDecoder* TQGb18030Codec::makeDecoder() const { - //qDebug("TQGb18030Codec::makeDecoder()"); + //tqDebug("TQGb18030Codec::makeDecoder()"); return new TQGb18030Decoder(); } @@ -480,15 +480,15 @@ int TQGbkCodec::heuristicNameMatch(const char* hint) const { #if 0 // these are needed so that the X11 fonts behave correctly. - if (qstricmp (hint, "gbk-0") == 0 || - qstricmp (hint, "gb18030.2000-0") == 0) + if (tqstricmp (hint, "gbk-0") == 0 || + tqstricmp (hint, "gb18030.2000-0") == 0) return 13; #endif int score = 0; bool zh = FALSE; - //qDebug("TQGbkCodec::heuristicNameMatch(const char* hint = \"%s\")", hint); - if (qstrnicmp(hint, "zh_CN", 5) == 0){ + //tqDebug("TQGbkCodec::heuristicNameMatch(const char* hint = \"%s\")", hint); + if (tqstrnicmp(hint, "zh_CN", 5) == 0){ score += 10; zh = TRUE; } @@ -502,7 +502,7 @@ int TQGbkCodec::heuristicNameMatch(const char* hint) const p = hint; } if (p) { - if (qstricmp(p, "GBK") == 0) + if (tqstricmp(p, "GBK") == 0) return score + 6; } return TQTextCodec::heuristicNameMatch(hint); @@ -511,7 +511,7 @@ int TQGbkCodec::heuristicNameMatch(const char* hint) const /*! \reimp */ int TQGbkCodec::heuristicContentMatch(const char* /*chars*/, int /*len*/) const { - //qDebug("TQGbkCodec::heuristicContentMatch(const char* /*chars*/, int /*len*/)"); + //tqDebug("TQGbkCodec::heuristicContentMatch(const char* /*chars*/, int /*len*/)"); return 0; } @@ -526,7 +526,7 @@ public: { TQString result; - //qDebug("TQGbkDecoder::toUnicode(const char* chars = \"%s\", int len = %d)", chars, len); + //tqDebug("TQGbkDecoder::toUnicode(const char* chars = \"%s\", int len = %d)", chars, len); for (int i=0; i<len; i++) { uchar ch = chars[i]; switch (nbuf) { @@ -570,7 +570,7 @@ public: /*! \reimp */ TQTextDecoder* TQGbkCodec::makeDecoder() const { - //qDebug("TQGbkCodec::makeDecoder()"); + //tqDebug("TQGbkCodec::makeDecoder()"); return new TQGbkDecoder(); } @@ -582,7 +582,7 @@ TQCString TQGbkCodec::fromUnicode(const TQString& uc, int& lenInOut) const TQCString rstr(rlen); uchar* cursor = (uchar*)rstr.data(); - //qDebug("TQGbkCodec::fromUnicode(const TQString& uc, int& lenInOut = %d)", lenInOut); + //tqDebug("TQGbkCodec::fromUnicode(const TQString& uc, int& lenInOut = %d)", lenInOut); for (int i=0; i<l; i++) { TQChar ch = uc[i]; uchar buf[2]; @@ -610,7 +610,7 @@ TQString TQGbkCodec::toUnicode(const char* chars, int len) const TQString result; int clen; - //qDebug("TQGbkCodec::toUnicode(const char* chars, int len = %d)", len); + //tqDebug("TQGbkCodec::toUnicode(const char* chars, int len = %d)", len); for (int i=0; i<len; ) { uchar ch = chars[i]; @@ -681,8 +681,8 @@ int TQGb2312Codec::heuristicNameMatch(const char* hint) const { int score = 0; bool zh = FALSE; - //qDebug("TQGb2312Codec::heuristicNameMatch(const char* hint = \"%s\")", hint); - if (qstrnicmp(hint, "zh_CN", 5) == 0){ + //tqDebug("TQGb2312Codec::heuristicNameMatch(const char* hint = \"%s\")", hint); + if (tqstrnicmp(hint, "zh_CN", 5) == 0){ score += 10; zh = TRUE; } @@ -696,13 +696,13 @@ int TQGb2312Codec::heuristicNameMatch(const char* hint) const p = hint; } if (p) { - if (qstricmp(p, "GB2312") == 0 || - qstricmp(p, "hp15cn") == 0) + if (tqstricmp(p, "GB2312") == 0 || + tqstricmp(p, "hp15cn") == 0) return score + 7; - else if (qstricmp(p, "eucCN") == 0) + else if (tqstricmp(p, "eucCN") == 0) return score + 4; // there exists ja_JP.EUC, ko_KR.EUC, zh_CN.EUC and zh_TW.EUC - else if (qstricmp(p, "euc") == 0 && zh) + else if (tqstricmp(p, "euc") == 0 && zh) return score + 4; } return TQTextCodec::heuristicNameMatch(hint); @@ -711,7 +711,7 @@ int TQGb2312Codec::heuristicNameMatch(const char* hint) const /*! \reimp */ int TQGb2312Codec::heuristicContentMatch(const char* /*chars*/, int /*len*/) const { - //qDebug("TQGb2312Codec::heuristicContentMatch(const char* /*chars*/, int /*len*/)"); + //tqDebug("TQGb2312Codec::heuristicContentMatch(const char* /*chars*/, int /*len*/)"); return 0; } @@ -725,7 +725,7 @@ public: TQString toUnicode(const char* chars, int len) { TQString result; - //qDebug("TQGb2312Decoder::toUnicode(const char* chars, int len = %d)", len); + //tqDebug("TQGb2312Decoder::toUnicode(const char* chars, int len = %d)", len); for (int i=0; i<len; i++) { uchar ch = chars[i]; switch (nbuf) { @@ -769,7 +769,7 @@ public: /*! \reimp */ TQTextDecoder* TQGb2312Codec::makeDecoder() const { - //qDebug("TQGb2312Codec::makeDecoder()"); + //tqDebug("TQGb2312Codec::makeDecoder()"); return new TQGb2312Decoder(); } @@ -781,7 +781,7 @@ TQCString TQGb2312Codec::fromUnicode(const TQString& uc, int& lenInOut) const TQCString rstr(rlen); uchar* cursor = (uchar*)rstr.data(); - //qDebug("TQGb2312Codec::fromUnicode(const TQString& uc, int& lenInOut = %d) const", lenInOut); + //tqDebug("TQGb2312Codec::fromUnicode(const TQString& uc, int& lenInOut = %d) const", lenInOut); for (int i=0; i<l; i++) { TQChar ch = uc[i]; uchar buf[2]; @@ -810,7 +810,7 @@ TQString TQGb2312Codec::toUnicode(const char* chars, int len) const TQString result; int clen; - //qDebug("TQGb2312Codec::toUnicode(const char* chars, int len = %d)", len); + //tqDebug("TQGb2312Codec::toUnicode(const char* chars, int len = %d)", len); for (int i=0; i<len; ) { uchar ch = chars[i]; diff --git a/src/codecs/qjiscodec.cpp b/src/codecs/qjiscodec.cpp index 5f5afbb9b..9f125a33d 100644 --- a/src/codecs/qjiscodec.cpp +++ b/src/codecs/qjiscodec.cpp @@ -387,17 +387,17 @@ const char* TQJisCodec::mimeName() const /*! \internal */ int TQJisCodec::heuristicNameMatch(const char* hint) const { - if ( qstrnicmp( hint, "ISO-2022-JP", 11 ) == 0 ) + if ( tqstrnicmp( hint, "ISO-2022-JP", 11 ) == 0 ) return 10000; if ( simpleHeuristicNameMatch( "ISO-2022-JP-2", hint ) > 0 ) return 10; int score = 0; bool ja = FALSE; - if (qstrnicmp(hint, "ja_JP", 5) == 0 || qstrnicmp(hint, "japan", 5) == 0) { + if (tqstrnicmp(hint, "ja_JP", 5) == 0 || tqstrnicmp(hint, "japan", 5) == 0) { score += 3; ja = TRUE; - } else if (qstrnicmp(hint, "ja", 2) == 0) { + } else if (tqstrnicmp(hint, "ja", 2) == 0) { score += 2; ja = TRUE; } @@ -412,8 +412,8 @@ int TQJisCodec::heuristicNameMatch(const char* hint) const p = hint; } if (p) { - if ((qstricmp(p, "JIS") == 0) || - (qstricmp(p, "JIS7") == 0) || + if ((tqstricmp(p, "JIS") == 0) || + (tqstricmp(p, "JIS7") == 0) || (simpleHeuristicNameMatch("ISO-2022-JP", p) > 0)) { return score + 4; } diff --git a/src/codecs/qjpunicode.cpp b/src/codecs/qjpunicode.cpp index 1a6c34aea..e3b08f8fa 100644 --- a/src/codecs/qjpunicode.cpp +++ b/src/codecs/qjpunicode.cpp @@ -778,32 +778,32 @@ TQJpUnicodeConv *TQJpUnicodeConv::newConverter(int rule) s = env.mid(i, j - i).stripWhiteSpace(); i = j + 1; } - if (qstricmp(s, "unicode-0.9") == 0) { + if (tqstricmp(s, "unicode-0.9") == 0) { rule = (rule & 0xff00) | Unicode; - } else if (qstricmp(s, "unicode-0201") == 0) { + } else if (tqstricmp(s, "unicode-0201") == 0) { rule = (rule & 0xff00) | Unicode_JISX0201; - } else if (qstricmp(s, "unicode-ascii") == 0) { + } else if (tqstricmp(s, "unicode-ascii") == 0) { rule = (rule & 0xff00) | Unicode_ASCII; - } else if (qstricmp(s, "jisx0221-1995") == 0) { + } else if (tqstricmp(s, "jisx0221-1995") == 0) { rule = (rule & 0xff00) | JISX0221_JISX0201; - } else if ((qstricmp(s, "open-0201") == 0) || - (qstricmp(s, "open-19970715-0201") == 0)) { + } else if ((tqstricmp(s, "open-0201") == 0) || + (tqstricmp(s, "open-19970715-0201") == 0)) { rule = (rule & 0xff00) | JISX0221_JISX0201; - } else if ((qstricmp(s, "open-ascii") == 0) || - (qstricmp(s, "open-19970715-ascii") == 0)) { + } else if ((tqstricmp(s, "open-ascii") == 0) || + (tqstricmp(s, "open-19970715-ascii") == 0)) { rule = (rule & 0xff00) | JISX0221_ASCII; - } else if ((qstricmp(s, "open-ms") == 0) || - (qstricmp(s, "open-19970715-ms") == 0)) { + } else if ((tqstricmp(s, "open-ms") == 0) || + (tqstricmp(s, "open-19970715-ms") == 0)) { rule = (rule & 0xff00) | Microsoft_CP932; - } else if (qstricmp(s, "cp932") == 0) { + } else if (tqstricmp(s, "cp932") == 0) { rule = (rule & 0xff00) | Microsoft_CP932; - } else if (qstricmp(s, "jdk1.1.7") == 0) { + } else if (tqstricmp(s, "jdk1.1.7") == 0) { rule = (rule & 0xff00) | Sun_JDK117; - } else if (qstricmp(s, "nec-vdc") == 0) { + } else if (tqstricmp(s, "nec-vdc") == 0) { rule = rule | NEC_VDC; - } else if (qstricmp(s, "ibm-vdc") == 0) { + } else if (tqstricmp(s, "ibm-vdc") == 0) { rule = rule | IBM_VDC; - } else if (qstricmp(s, "udc") == 0) { + } else if (tqstricmp(s, "udc") == 0) { rule = rule | UDC; } } diff --git a/src/codecs/qrtlcodec.cpp b/src/codecs/qrtlcodec.cpp index fa1585ec8..42917b286 100644 --- a/src/codecs/qrtlcodec.cpp +++ b/src/codecs/qrtlcodec.cpp @@ -217,7 +217,7 @@ static TQString reverseLine(const TQString &str, unsigned int from, unsigned int case TQChar::DirL: if ( runDir != TQChar::DirL && runDir != TQChar::DirON ) { out += run( str, from, pos, runDir ); - qDebug( "out = %s", out.latin1() ); + tqDebug( "out = %s", out.latin1() ); from = pos; } runDir = TQChar::DirL; @@ -233,7 +233,7 @@ static TQString reverseLine(const TQString &str, unsigned int from, unsigned int case TQChar::DirEN: if ( runDir != TQChar::DirR && runDir != TQChar::DirON ) { out += run( str, from, pos, runDir ); - qDebug( "out = %s", out.latin1() ); + tqDebug( "out = %s", out.latin1() ); from = pos; } runDir = TQChar::DirR; @@ -243,7 +243,7 @@ static TQString reverseLine(const TQString &str, unsigned int from, unsigned int pos++; } out += run( str, from, pos, runDir ); - qDebug( "out = %s", out.latin1() ); + tqDebug( "out = %s", out.latin1() ); // second reversing for numbers TQString in = out; out = ""; @@ -259,7 +259,7 @@ static TQString reverseLine(const TQString &str, unsigned int from, unsigned int case TQChar::DirR: if ( runDir == TQChar::DirEN && runDir != TQChar::DirON ) { out += run( in, from, pos, TQChar::DirR ); //DirR ensures reversing - qDebug( "out = %s", out.latin1() ); + tqDebug( "out = %s", out.latin1() ); runDir = TQChar::DirR; from = pos; } @@ -269,7 +269,7 @@ static TQString reverseLine(const TQString &str, unsigned int from, unsigned int case TQChar::DirEN: if ( runDir != TQChar::DirEN && runDir != TQChar::DirON ) { out += in.mid(from, pos-from+1); - qDebug( "out = %s", out.latin1() ); + tqDebug( "out = %s", out.latin1() ); from = pos; } runDir = TQChar::DirEN; @@ -437,7 +437,7 @@ static TQString visualOrder(TQString logical, TQChar::Direction basicDir) } int i; for (i = 0; i < nitems; ++i) { - //qDebug("item %d bidiLevel=%d", i, e.items[i].analysis.bidiLevel); + //tqDebug("item %d bidiLevel=%d", i, e.items[i].analysis.bidiLevel); levels[i] = e.items[i].analysis.bidiLevel; } e.bidiReorder(nitems, levels, visualOrder); diff --git a/src/codecs/qsjiscodec.cpp b/src/codecs/qsjiscodec.cpp index 9d2df5109..7a2e0c494 100644 --- a/src/codecs/qsjiscodec.cpp +++ b/src/codecs/qsjiscodec.cpp @@ -249,10 +249,10 @@ int TQSjisCodec::heuristicNameMatch(const char* hint) const { int score = 0; bool ja = FALSE; - if (qstrnicmp(hint, "ja_JP", 5) == 0 || qstrnicmp(hint, "japan", 5) == 0) { + if (tqstrnicmp(hint, "ja_JP", 5) == 0 || tqstrnicmp(hint, "japan", 5) == 0) { score += 3; ja = TRUE; - } else if (qstrnicmp(hint, "ja", 2) == 0) { + } else if (tqstrnicmp(hint, "ja", 2) == 0) { score += 2; ja = TRUE; } @@ -267,9 +267,9 @@ int TQSjisCodec::heuristicNameMatch(const char* hint) const p = hint; } if (p) { - if ((qstricmp(p, "mscode") == 0) || - (qstricmp(p, "PCK") == 0) || - (qstricmp(p, "SJIS") == 0) || + if ((tqstricmp(p, "mscode") == 0) || + (tqstricmp(p, "PCK") == 0) || + (tqstricmp(p, "SJIS") == 0) || (simpleHeuristicNameMatch(p, "ShiftJIS") > 0) || (simpleHeuristicNameMatch(p, "x-sjis") > 0)) { return score + 4; diff --git a/src/codecs/qtextcodec.cpp b/src/codecs/qtextcodec.cpp index c03529df2..5f962118f 100644 --- a/src/codecs/qtextcodec.cpp +++ b/src/codecs/qtextcodec.cpp @@ -122,8 +122,8 @@ void TQTextCodec::deleteAllCodecs() return; #ifdef QT_THREAD_SUPPORT - TQMutexLocker locker( qt_global_mutexpool ? - qt_global_mutexpool->get( &all ) : 0 ); + TQMutexLocker locker( tqt_global_mutexpool ? + tqt_global_mutexpool->get( &all ) : 0 ); if ( !all ) return; #endif // QT_THREAD_SUPPORT @@ -152,8 +152,8 @@ static inline void setup() if ( all ) return; #ifdef QT_THREAD_SUPPORT - TQMutexLocker locker( qt_global_mutexpool ? - qt_global_mutexpool->get( &all ) : 0 ); + TQMutexLocker locker( tqt_global_mutexpool ? + tqt_global_mutexpool->get( &all ) : 0 ); if ( all ) return; #endif // QT_THREAD_SUPPORT @@ -443,7 +443,7 @@ TQTextCodec::TQTextCodec() TQTextCodec::~TQTextCodec() { if ( !destroying_is_ok ) - qWarning("TQTextCodec::~TQTextCodec() called by application"); + tqWarning("TQTextCodec::~TQTextCodec() called by application"); if ( all ) all->remove( this ); } @@ -503,7 +503,7 @@ static TQString lettersAndNumbers( const char * input ) int TQTextCodec::simpleHeuristicNameMatch(const char* name, const char* hint) { // if they're the same, return a perfect score. - if ( name && hint && *name && *hint && qstricmp( name, hint ) == 0 ) + if ( name && hint && *name && *hint && tqstricmp( name, hint ) == 0 ) return tqstrlen( hint ); // if the letters and numbers are the same, we have an "almost" @@ -667,7 +667,7 @@ public: // character buf[nbuf++] = *chars; if (nbuf + 1 == sizeof buf) { - qWarning("TQWindowsLocalDecoder: exceeded max internal buffer size"); + tqWarning("TQWindowsLocalDecoder: exceeded max internal buffer size"); nbuf = 0; } } @@ -793,7 +793,7 @@ static TQTextCodec * ru_RU_hack( const char * i ) { } else { // something else again... let's assume... *throws dice* ru_RU_codec = TQTextCodec::codecForName( "KOI8-R" ); - qWarning( "TQTextCodec: using KOI8-R, probe failed (%02x %02x %s)", + tqWarning( "TQTextCodec: using KOI8-R, probe failed (%02x %02x %s)", koi8r, latin5, i ); } setlocale( LC_CTYPE, origlocale.data() ); @@ -1297,15 +1297,15 @@ public: char comm='%'; bool incmap = FALSE; while (iod->readLine(line,maxlen) > 0) { - if (0==qstrnicmp(line,"<code_set_name>",15)) + if (0==tqstrnicmp(line,"<code_set_name>",15)) n = line+15; - else if (0==qstrnicmp(line,"<escape_char> ",14)) + else if (0==tqstrnicmp(line,"<escape_char> ",14)) esc = line[14]; - else if (0==qstrnicmp(line,"<comment_char> ",15)) + else if (0==tqstrnicmp(line,"<comment_char> ",15)) comm = line[15]; - else if (line[0]==comm && 0==qstrnicmp(line+1," alias ",7)) { + else if (line[0]==comm && 0==tqstrnicmp(line+1," alias ",7)) { aliases.append(line+8); - } else if (0==qstrnicmp(line,"CHARMAP",7)) { + } else if (0==tqstrnicmp(line,"CHARMAP",7)) { if (!from_unicode_page) { from_unicode_page = new char*[256]; for (int i=0; i<256; i++) @@ -1315,7 +1315,7 @@ public: to_unicode = new ushort[256]; } incmap = TRUE; - } else if (0==qstrnicmp(line,"END CHARMAP",11)) + } else if (0==tqstrnicmp(line,"END CHARMAP",11)) break; else if (incmap) { char* cursor = line; @@ -1395,7 +1395,7 @@ public: } mb[nmb++] = 0; from_unicode_page_multiByte[ch.row()][ch.cell()] - = qstrdup(mb); + = tqstrdup(mb); *mb_unicode = unicode; } else { from_unicode_page[ch.row()][ch.cell()] = (char)byte; @@ -2442,7 +2442,7 @@ int TQSimpleTextCodec::mibEnum() const int TQSimpleTextCodec::heuristicNameMatch(const char* hint) const { - if ( qstricmp( hint, mimeName() ) == 0 ) + if ( tqstricmp( hint, mimeName() ) == 0 ) return 10000; // return a large value if ( hint[0]=='k' ) { TQCString lhint = TQCString(hint).lower(); @@ -2802,18 +2802,18 @@ static void setupLocaleMapper() // First part is getting that locale name. First try setlocale() which // definitely knows it, but since we cannot fully trust it, get ready // to fall back to environment variables. - char * ctype = qstrdup( setlocale( LC_CTYPE, 0 ) ); + char * ctype = tqstrdup( setlocale( LC_CTYPE, 0 ) ); // Get the first nonempty value from $LC_ALL, $LC_CTYPE, and $LANG // environment variables. - char * lang = qstrdup( getenv("LC_ALL") ); + char * lang = tqstrdup( getenv("LC_ALL") ); if ( !lang || lang[0] == 0 || strcmp( lang, "C" ) == 0 ) { if ( lang ) delete [] lang; - lang = qstrdup( getenv("LC_CTYPE") ); + lang = tqstrdup( getenv("LC_CTYPE") ); } if ( !lang || lang[0] == 0 || strcmp( lang, "C" ) == 0 ) { if ( lang ) delete [] lang; - lang = qstrdup( getenv("LANG") ); + lang = tqstrdup( getenv("LANG") ); } // Now try these in order: @@ -2905,7 +2905,7 @@ static void realSetup() { #if defined(QT_CHECK_STATE) if ( destroying_is_ok ) - qWarning( "TQTextCodec: creating new codec during codec cleanup!" ); + tqWarning( "TQTextCodec: creating new codec during codec cleanup!" ); #endif all = new TQValueList<TQTextCodec*>; diff --git a/src/codecs/qtextcodecfactory.cpp b/src/codecs/qtextcodecfactory.cpp index df9757e28..aad0ac2b4 100644 --- a/src/codecs/qtextcodecfactory.cpp +++ b/src/codecs/qtextcodecfactory.cpp @@ -65,8 +65,8 @@ static void create_manager() #ifdef QT_THREAD_SUPPORT // protect manager creation - TQMutexLocker locker( qt_global_mutexpool ? - qt_global_mutexpool->get( &manager ) : 0); + TQMutexLocker locker( tqt_global_mutexpool ? + tqt_global_mutexpool->get( &manager ) : 0); // we check the manager pointer again to make sure that another thread // has not created the manager before us. diff --git a/src/codecs/qtsciicodec.cpp b/src/codecs/qtsciicodec.cpp index 87fc18b3f..e57f4fd70 100644 --- a/src/codecs/qtsciicodec.cpp +++ b/src/codecs/qtsciicodec.cpp @@ -183,7 +183,7 @@ int TQTsciiCodec::heuristicNameMatch(const char* hint) const p++; else p = hint; - if (qstricmp(p, "TSCII") == 0) + if (tqstricmp(p, "TSCII") == 0) return 4; return TQTextCodec::heuristicNameMatch(hint); } |