diff options
Diffstat (limited to 'src/codecs/qfonthkcodec.cpp')
-rw-r--r-- | src/codecs/qfonthkcodec.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
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 ); } |