From 9a75b154bf0732aa3a501b6e31e566e06c5f8a31 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 2 Mar 2012 02:11:59 -0600 Subject: Undo prior accidental commit --- src/codecs/qfontcncodec.cpp | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'src/codecs/qfontcncodec.cpp') diff --git a/src/codecs/qfontcncodec.cpp b/src/codecs/qfontcncodec.cpp index 70cb846..0dca8bb 100644 --- a/src/codecs/qfontcncodec.cpp +++ b/src/codecs/qfontcncodec.cpp @@ -55,20 +55,20 @@ int QFontGb2312Codec::heuristicContentMatch(const char *, int) const QFontGb2312Codec::QFontGb2312Codec() { - //tqDebug("QFontGb2312Codec::QFontGb2312Codec()"); + //qDebug("QFontGb2312Codec::QFontGb2312Codec()"); } const char* QFontGb2312Codec::name() const { - //tqDebug("QFontGb2312Codec::name() = \"gb2312.1980-0\""); + //qDebug("QFontGb2312Codec::name() = \"gb2312.1980-0\""); return "gb2312.1980-0"; } int QFontGb2312Codec::mibEnum() const { - //tqDebug("QFontGb2312Codec::mibEnum() = 57"); + //qDebug("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(); - //tqDebug("QFontGb2312Codec::fromUnicode(const QString& uc, int& lenInOut = %d)", lenInOut); + //qDebug("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 ); - //tqDebug("QFontGb2312Codec::canEncode( QChar ch = %02X%02X )", ch.row(), ch.cell()); + //qDebug("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 { - //tqDebug("QFontGbkCodec::heuristicNameMatch(const char* hint = \"%s\")", hint); - return ( tqstricmp(hint, "gbk-0") == 0 || - tqstricmp(hint, "gb18030.2000-0") == 0 ) + //qDebug("QFontGbkCodec::heuristicNameMatch(const char* hint = \"%s\")", hint); + return ( qstricmp(hint, "gbk-0") == 0 || + qstricmp(hint, "gb18030.2000-0") == 0 ) ? 13 : 0; } QFontGbkCodec::QFontGbkCodec() { - //tqDebug("QFontGbkCodec::QFontGbkCodec()"); + //qDebug("QFontGbkCodec::QFontGbkCodec()"); } const char* QFontGbkCodec::name() const { - //tqDebug("QFontGbkCodec::name() = \"gbk-0\""); + //qDebug("QFontGbkCodec::name() = \"gbk-0\""); return "gbk-0"; } int QFontGbkCodec::mibEnum() const { - //tqDebug("QFontGbkCodec::mibEnum() = -113"); + //qDebug("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(); - //tqDebug("QFontGbkCodec::fromUnicode(const QString& uc, int& lenInOut = %d)", lenInOut); + //qDebug("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 ); - //tqDebug("QFontGbkCodec::canEncode( QChar ch = %02X%02X )", ch.row(), ch.cell()); + //qDebug("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() { - //tqDebug("QFontGb18030_0Codec::QFontGb18030_0Codec()"); + //qDebug("QFontGb18030_0Codec::QFontGb18030_0Codec()"); } const char* QFontGb18030_0Codec::name() const { - //tqDebug("QFontGb18030_0Codec::name() = \"gb18030-0\""); + //qDebug("QFontGb18030_0Codec::name() = \"gb18030-0\""); return "gb18030-0"; } int QFontGb18030_0Codec::mibEnum() const { - //tqDebug("QFontGb18030_0Codec::mibEnum() = -114"); + //qDebug("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(); - //tqDebug("QFontGb18030_0Codec::fromUnicode(const QString& uc, int& lenInOut = %d)", lenInOut); + //qDebug("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 { - //tqDebug("QFontGb18030_0Codec::canEncode( QChar ch = %02X%02X )", ch.row(), ch.cell()); + //qDebug("QFontGb18030_0Codec::canEncode( QChar ch = %02X%02X )", ch.row(), ch.cell()); return (ch.row () > 0 && !(ch.row () >= 0xd8 && ch.row () < 0xe0)); } -- cgit v1.2.3