From a830bf10b7d4ed2c83ffe68c0b22d7c4ba9860b0 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 1 Mar 2012 13:24:30 -0600 Subject: Rename additional global TQt functions --- src/codecs/qbig5codec.cpp | 64 ++++++++++++++++++++++---------------------- src/codecs/qeucjpcodec.cpp | 12 ++++----- src/codecs/qeuckrcodec.cpp | 10 +++---- src/codecs/qfontcncodec.cpp | 36 ++++++++++++------------- src/codecs/qfonthkcodec.cpp | 16 +++++------ src/codecs/qfonttwcodec.cpp | 16 +++++------ src/codecs/qgb18030codec.cpp | 60 ++++++++++++++++++++--------------------- src/codecs/qjiscodec.cpp | 10 +++---- src/codecs/qjpunicode.cpp | 30 ++++++++++----------- src/codecs/qrtlcodec.cpp | 12 ++++----- src/codecs/qsjiscodec.cpp | 10 +++---- src/codecs/qtextcodec.cpp | 34 +++++++++++------------ src/codecs/qtsciicodec.cpp | 2 +- 13 files changed, 156 insertions(+), 156 deletions(-) (limited to 'src/codecs') diff --git a/src/codecs/qbig5codec.cpp b/src/codecs/qbig5codec.cpp index d961dbf..dd71604 100644 --- a/src/codecs/qbig5codec.cpp +++ b/src/codecs/qbig5codec.cpp @@ -531,7 +531,7 @@ static int qt_UnicodeToBig5(ushort ch, uchar *buf) int QBig5Codec::mibEnum() const { /* See http://www.iana.org/assignments/character-sets */ - //qDebug("QBig5Codec::mibEnum() = 2026"); + //tqDebug("QBig5Codec::mibEnum() = 2026"); return 2026; } @@ -539,7 +539,7 @@ int QBig5Codec::mibEnum() const /*! \reimp */ const char* QBig5Codec::name() const { - //qDebug("QBig5Codec::name() = \"Big5\""); + //tqDebug("QBig5Codec::name() = \"Big5\""); return "Big5"; } @@ -554,7 +554,7 @@ public: QString toUnicode(const char* chars, int len) { - //qDebug("QBig5Decoder::toUnicode(const char* chars = \"%s\", int len = %d)", chars, len); + //tqDebug("QBig5Decoder::toUnicode(const char* chars = \"%s\", int len = %d)", chars, len); QString result; for (int i=0; i 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 fe06159..18efec7 100644 --- a/src/codecs/qeuckrcodec.cpp +++ b/src/codecs/qeuckrcodec.cpp @@ -212,11 +212,11 @@ int QEucKrCodec::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 QEucKrCodec::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 0dca8bb..70cb846 100644 --- a/src/codecs/qfontcncodec.cpp +++ b/src/codecs/qfontcncodec.cpp @@ -55,20 +55,20 @@ int QFontGb2312Codec::heuristicContentMatch(const char *, int) const QFontGb2312Codec::QFontGb2312Codec() { - //qDebug("QFontGb2312Codec::QFontGb2312Codec()"); + //tqDebug("QFontGb2312Codec::QFontGb2312Codec()"); } const char* QFontGb2312Codec::name() const { - //qDebug("QFontGb2312Codec::name() = \"gb2312.1980-0\""); + //tqDebug("QFontGb2312Codec::name() = \"gb2312.1980-0\""); return "gb2312.1980-0"; } int QFontGb2312Codec::mibEnum() const { - //qDebug("QFontGb2312Codec::mibEnum() = 57"); + //tqDebug("QFontGb2312Codec::mibEnum() = 57"); return 57; } @@ -93,7 +93,7 @@ QCString QFontGb2312Codec::fromUnicode(const QString& uc, int& lenInOut ) const uchar *rdata = (uchar *) result.data(); const QChar *ucp = uc.unicode(); - //qDebug("QFontGb2312Codec::fromUnicode(const QString& uc, int& lenInOut = %d)", lenInOut); + //tqDebug("QFontGb2312Codec::fromUnicode(const QString& uc, int& lenInOut = %d)", lenInOut); for ( int i = 0; i < lenInOut; i++ ) { QChar ch(*ucp++); uchar buf[8]; @@ -137,7 +137,7 @@ bool QFontGb2312Codec::canEncode( QChar ch ) const { uchar buf[4]; int len = qt_UnicodeToGbk( ch.unicode(), buf ); - //qDebug("QFontGb2312Codec::canEncode( QChar ch = %02X%02X )", ch.row(), ch.cell()); + //tqDebug("QFontGb2312Codec::canEncode( QChar ch = %02X%02X )", ch.row(), ch.cell()); return ( len == 2 && buf[0] > 0xa0 && buf[1] > 0xa0 ); } @@ -152,29 +152,29 @@ int QFontGbkCodec::heuristicContentMatch(const char *, int) const int QFontGbkCodec::heuristicNameMatch(const char* hint) const { - //qDebug("QFontGbkCodec::heuristicNameMatch(const char* hint = \"%s\")", hint); - return ( qstricmp(hint, "gbk-0") == 0 || - qstricmp(hint, "gb18030.2000-0") == 0 ) + //tqDebug("QFontGbkCodec::heuristicNameMatch(const char* hint = \"%s\")", hint); + return ( tqstricmp(hint, "gbk-0") == 0 || + tqstricmp(hint, "gb18030.2000-0") == 0 ) ? 13 : 0; } QFontGbkCodec::QFontGbkCodec() { - //qDebug("QFontGbkCodec::QFontGbkCodec()"); + //tqDebug("QFontGbkCodec::QFontGbkCodec()"); } const char* QFontGbkCodec::name() const { - //qDebug("QFontGbkCodec::name() = \"gbk-0\""); + //tqDebug("QFontGbkCodec::name() = \"gbk-0\""); return "gbk-0"; } int QFontGbkCodec::mibEnum() const { - //qDebug("QFontGbkCodec::mibEnum() = -113"); + //tqDebug("QFontGbkCodec::mibEnum() = -113"); return -113; } @@ -199,7 +199,7 @@ QCString QFontGbkCodec::fromUnicode(const QString& uc, int& lenInOut ) const uchar *rdata = (uchar *) result.data(); const QChar *ucp = uc.unicode(); - //qDebug("QFontGbkCodec::fromUnicode(const QString& uc, int& lenInOut = %d)", lenInOut); + //tqDebug("QFontGbkCodec::fromUnicode(const QString& uc, int& lenInOut = %d)", lenInOut); for ( int i = 0; i < lenInOut; i++ ) { QChar ch(*ucp++); uchar buf[8]; @@ -236,7 +236,7 @@ bool QFontGbkCodec::canEncode( QChar ch ) const return TRUE; uchar buf[4]; int len = qt_UnicodeToGbk( ch.unicode(), buf ); - //qDebug("QFontGbkCodec::canEncode( QChar ch = %02X%02X )", ch.row(), ch.cell()); + //tqDebug("QFontGbkCodec::canEncode( QChar ch = %02X%02X )", ch.row(), ch.cell()); return ( len == 2 ); } @@ -250,20 +250,20 @@ int QFontGb18030_0Codec::heuristicContentMatch(const char *, int) const QFontGb18030_0Codec::QFontGb18030_0Codec() { - //qDebug("QFontGb18030_0Codec::QFontGb18030_0Codec()"); + //tqDebug("QFontGb18030_0Codec::QFontGb18030_0Codec()"); } const char* QFontGb18030_0Codec::name() const { - //qDebug("QFontGb18030_0Codec::name() = \"gb18030-0\""); + //tqDebug("QFontGb18030_0Codec::name() = \"gb18030-0\""); return "gb18030-0"; } int QFontGb18030_0Codec::mibEnum() const { - //qDebug("QFontGb18030_0Codec::mibEnum() = -114"); + //tqDebug("QFontGb18030_0Codec::mibEnum() = -114"); return -114; } @@ -288,7 +288,7 @@ QCString QFontGb18030_0Codec::fromUnicode(const QString& uc, int& lenInOut ) con uchar *rdata = (uchar *) result.data(); const QChar *ucp = uc.unicode(); - //qDebug("QFontGb18030_0Codec::fromUnicode(const QString& uc, int& lenInOut = %d)", lenInOut); + //tqDebug("QFontGb18030_0Codec::fromUnicode(const QString& uc, int& lenInOut = %d)", lenInOut); for ( int i = 0; i < lenInOut; i++ ) { QChar ch(*ucp++); if (ch.row () > 0 && !(ch.row () >= 0xd8 && ch.row () < 0xe0)) { @@ -317,7 +317,7 @@ void QFontGb18030_0Codec::fromUnicode(const QChar *in, unsigned short *out, int bool QFontGb18030_0Codec::canEncode( QChar ch ) const { - //qDebug("QFontGb18030_0Codec::canEncode( QChar ch = %02X%02X )", ch.row(), ch.cell()); + //tqDebug("QFontGb18030_0Codec::canEncode( QChar 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 a0d32dd..9a229db 100644 --- a/src/codecs/qfonthkcodec.cpp +++ b/src/codecs/qfonthkcodec.cpp @@ -54,29 +54,29 @@ int QFontBig5hkscsCodec::heuristicContentMatch(const char *, int) const int QFontBig5hkscsCodec::heuristicNameMatch(const char* hint) const { - //qDebug("QFontBig5hkscsCodec::heuristicNameMatch(const char* hint = \"%s\")", hint); - return ( qstricmp(hint, "big5hkscs-0") == 0 || - qstricmp(hint, "hkscs-1") == 0 ) + //tqDebug("QFontBig5hkscsCodec::heuristicNameMatch(const char* hint = \"%s\")", hint); + return ( tqstricmp(hint, "big5hkscs-0") == 0 || + tqstricmp(hint, "hkscs-1") == 0 ) ? 13 : 0; } QFontBig5hkscsCodec::QFontBig5hkscsCodec() { - //qDebug("QFontBig5hkscsCodec::QFontBig5hkscsCodec()"); + //tqDebug("QFontBig5hkscsCodec::QFontBig5hkscsCodec()"); } const char* QFontBig5hkscsCodec::name() const { - //qDebug("QFontBig5hkscsCodec::name() = \"big5hkscs-0\""); + //tqDebug("QFontBig5hkscsCodec::name() = \"big5hkscs-0\""); return "big5hkscs-0"; } int QFontBig5hkscsCodec::mibEnum() const { - //qDebug("QFontBig5hkscsCodec::mibEnum() = -2101"); + //tqDebug("QFontBig5hkscsCodec::mibEnum() = -2101"); return -2101; } @@ -97,7 +97,7 @@ QFontBig5hkscsCodec::characterFromUnicode(const QString &str, int pos) const QCString QFontBig5hkscsCodec::fromUnicode(const QString& uc, int& lenInOut ) const { - //qDebug("QFontBig5hkscsCodec::fromUnicode(const QString& uc, int& lenInOut = %d)", lenInOut); + //tqDebug("QFontBig5hkscsCodec::fromUnicode(const QString& uc, int& lenInOut = %d)", lenInOut); QCString result(lenInOut * 2 + 1); uchar *rdata = (uchar *) result.data(); const QChar *ucp = uc.unicode(); @@ -151,7 +151,7 @@ void QFontBig5hkscsCodec::fromUnicode(const QChar *in, unsigned short *out, int bool QFontBig5hkscsCodec::canEncode( QChar ch ) const { - //qDebug("QFontBig5hkscsCodec::canEncode( QChar ch = %02X%02X )", ch.row(), ch.cell()); + //tqDebug("QFontBig5hkscsCodec::canEncode( QChar 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 050930d..1ffa161 100644 --- a/src/codecs/qfonttwcodec.cpp +++ b/src/codecs/qfonttwcodec.cpp @@ -54,29 +54,29 @@ int QFontBig5Codec::heuristicContentMatch(const char *, int) const int QFontBig5Codec::heuristicNameMatch(const char* hint) const { - //qDebug("QFontBig5Codec::heuristicNameMatch(const char* hint = \"%s\")", hint); - return ( qstricmp(hint, "big5-0") == 0 || - qstricmp(hint, "big5.eten-0") == 0 ) + //tqDebug("QFontBig5Codec::heuristicNameMatch(const char* hint = \"%s\")", hint); + return ( tqstricmp(hint, "big5-0") == 0 || + tqstricmp(hint, "big5.eten-0") == 0 ) ? 13 : 0; } QFontBig5Codec::QFontBig5Codec() { - //qDebug("QFontBig5Codec::QFontBig5Codec()"); + //tqDebug("QFontBig5Codec::QFontBig5Codec()"); } const char* QFontBig5Codec::name() const { - //qDebug("QFontBig5Codec::name() = \"big5-0\""); + //tqDebug("QFontBig5Codec::name() = \"big5-0\""); return "big5-0"; } int QFontBig5Codec::mibEnum() const { - //qDebug("QFontBig5Codec::mibEnum() = -2026"); + //tqDebug("QFontBig5Codec::mibEnum() = -2026"); return -2026; } @@ -97,7 +97,7 @@ unsigned short QFontBig5Codec::characterFromUnicode(const QString &str, int pos) QCString QFontBig5Codec::fromUnicode(const QString& uc, int& lenInOut ) const { - //qDebug("QFontBig5Codec::fromUnicode(const QString& uc, int& lenInOut = %d)", lenInOut); + //tqDebug("QFontBig5Codec::fromUnicode(const QString& uc, int& lenInOut = %d)", lenInOut); QCString result(lenInOut * 2 + 1); uchar *rdata = (uchar *) result.data(); const QChar *ucp = uc.unicode(); @@ -152,7 +152,7 @@ void QFontBig5Codec::fromUnicode(const QChar *in, unsigned short *out, int lengt bool QFontBig5Codec::canEncode( QChar ch ) const { - //qDebug("QFontBig5Codec::canEncode( QChar ch = %02X%02X )", ch.row(), ch.cell()); + //tqDebug("QFontBig5Codec::canEncode( QChar 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 fe7b1e5..ee99916 100644 --- a/src/codecs/qgb18030codec.cpp +++ b/src/codecs/qgb18030codec.cpp @@ -161,7 +161,7 @@ QGb18030Codec::QGb18030Codec() /*! \reimp */ const char* QGb18030Codec::name() const { - //qDebug("QGb18030Codec::name() = \"GB18030\""); + //tqDebug("QGb18030Codec::name() = \"GB18030\""); return "GB18030"; } @@ -179,7 +179,7 @@ QCString QGb18030Codec::fromUnicode(const QString& uc, int& lenInOut) const QCString rstr(rlen); uchar* cursor = (uchar*)rstr.data(); - //qDebug("QGb18030Codec::fromUnicode(const QString& uc, int& lenInOut = %d)", lenInOut); + //tqDebug("QGb18030Codec::fromUnicode(const QString& uc, int& lenInOut = %d)", lenInOut); for (int i=0; i 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 QJisCodec::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 2d9033f..3071dea 100644 --- a/src/codecs/qjpunicode.cpp +++ b/src/codecs/qjpunicode.cpp @@ -778,32 +778,32 @@ QJpUnicodeConv *QJpUnicodeConv::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 f77b0e6..1d99edd 100644 --- a/src/codecs/qrtlcodec.cpp +++ b/src/codecs/qrtlcodec.cpp @@ -217,7 +217,7 @@ static QString reverseLine(const QString &str, unsigned int from, unsigned int t case QChar::DirL: if ( runDir != QChar::DirL && runDir != QChar::DirON ) { out += run( str, from, pos, runDir ); - qDebug( "out = %s", out.latin1() ); + tqDebug( "out = %s", out.latin1() ); from = pos; } runDir = QChar::DirL; @@ -233,7 +233,7 @@ static QString reverseLine(const QString &str, unsigned int from, unsigned int t case QChar::DirEN: if ( runDir != QChar::DirR && runDir != QChar::DirON ) { out += run( str, from, pos, runDir ); - qDebug( "out = %s", out.latin1() ); + tqDebug( "out = %s", out.latin1() ); from = pos; } runDir = QChar::DirR; @@ -243,7 +243,7 @@ static QString reverseLine(const QString &str, unsigned int from, unsigned int t pos++; } out += run( str, from, pos, runDir ); - qDebug( "out = %s", out.latin1() ); + tqDebug( "out = %s", out.latin1() ); // second reversing for numbers QString in = out; out = ""; @@ -259,7 +259,7 @@ static QString reverseLine(const QString &str, unsigned int from, unsigned int t case QChar::DirR: if ( runDir == QChar::DirEN && runDir != QChar::DirON ) { out += run( in, from, pos, QChar::DirR ); //DirR ensures reversing - qDebug( "out = %s", out.latin1() ); + tqDebug( "out = %s", out.latin1() ); runDir = QChar::DirR; from = pos; } @@ -269,7 +269,7 @@ static QString reverseLine(const QString &str, unsigned int from, unsigned int t case QChar::DirEN: if ( runDir != QChar::DirEN && runDir != QChar::DirON ) { out += in.mid(from, pos-from+1); - qDebug( "out = %s", out.latin1() ); + tqDebug( "out = %s", out.latin1() ); from = pos; } runDir = QChar::DirEN; @@ -437,7 +437,7 @@ static QString visualOrder(QString logical, QChar::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 d6c1102..581971d 100644 --- a/src/codecs/qsjiscodec.cpp +++ b/src/codecs/qsjiscodec.cpp @@ -249,10 +249,10 @@ int QSjisCodec::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 QSjisCodec::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 1a4fb32..7e6b67e 100644 --- a/src/codecs/qtextcodec.cpp +++ b/src/codecs/qtextcodec.cpp @@ -443,7 +443,7 @@ QTextCodec::QTextCodec() QTextCodec::~QTextCodec() { if ( !destroying_is_ok ) - qWarning("QTextCodec::~QTextCodec() called by application"); + tqWarning("QTextCodec::~QTextCodec() called by application"); if ( all ) all->remove( this ); } @@ -503,7 +503,7 @@ static QString lettersAndNumbers( const char * input ) int QTextCodec::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 qstrlen( 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("QWindowsLocalDecoder: exceeded max internal buffer size"); + tqWarning("QWindowsLocalDecoder: exceeded max internal buffer size"); nbuf = 0; } } @@ -793,7 +793,7 @@ static QTextCodec * ru_RU_hack( const char * i ) { } else { // something else again... let's assume... *throws dice* ru_RU_codec = QTextCodec::codecForName( "KOI8-R" ); - qWarning( "QTextCodec: using KOI8-R, probe failed (%02x %02x %s)", + tqWarning( "QTextCodec: 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,"",15)) + if (0==tqstrnicmp(line,"",15)) n = line+15; - else if (0==qstrnicmp(line," ",14)) + else if (0==tqstrnicmp(line," ",14)) esc = line[14]; - else if (0==qstrnicmp(line," ",15)) + else if (0==tqstrnicmp(line," ",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 QSimpleTextCodec::mibEnum() const int QSimpleTextCodec::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' ) { QCString lhint = QCString(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( "QTextCodec: creating new codec during codec cleanup!" ); + tqWarning( "QTextCodec: creating new codec during codec cleanup!" ); #endif all = new QValueList; diff --git a/src/codecs/qtsciicodec.cpp b/src/codecs/qtsciicodec.cpp index ad6a6ee..71a0c83 100644 --- a/src/codecs/qtsciicodec.cpp +++ b/src/codecs/qtsciicodec.cpp @@ -183,7 +183,7 @@ int QTsciiCodec::heuristicNameMatch(const char* hint) const p++; else p = hint; - if (qstricmp(p, "TSCII") == 0) + if (tqstricmp(p, "TSCII") == 0) return 4; return QTextCodec::heuristicNameMatch(hint); } -- cgit v1.2.3