summaryrefslogtreecommitdiffstats
path: root/src/codecs/qfontcncodec.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2012-02-28 22:31:39 -0600
committerTimothy Pearson <[email protected]>2012-02-28 22:31:39 -0600
commit41bb408dde90e755b07cd2ab8a9bdec7548c84b0 (patch)
tree6d4d5407c000add30aa78630e009c0e5d633e440 /src/codecs/qfontcncodec.cpp
parent1740cd279522c060e738bbbffacab83355d2b794 (diff)
downloadtqt3-41bb408dde90e755b07cd2ab8a9bdec7548c84b0.tar.gz
tqt3-41bb408dde90e755b07cd2ab8a9bdec7548c84b0.zip
Automated conversion from qt3
Diffstat (limited to 'src/codecs/qfontcncodec.cpp')
-rw-r--r--src/codecs/qfontcncodec.cpp36
1 files changed, 18 insertions, 18 deletions
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));
}