summaryrefslogtreecommitdiffstats
path: root/src/codecs/qtextcodec.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/codecs/qtextcodec.cpp')
-rw-r--r--src/codecs/qtextcodec.cpp34
1 files changed, 17 insertions, 17 deletions
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,"<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 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<QTextCodec*>;