summaryrefslogtreecommitdiffstats
path: root/src/codecs/qtextcodec.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-02-28 22:31:39 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-02-28 22:31:39 -0600
commit41bb408dde90e755b07cd2ab8a9bdec7548c84b0 (patch)
tree6d4d5407c000add30aa78630e009c0e5d633e440 /src/codecs/qtextcodec.cpp
parent1740cd279522c060e738bbbffacab83355d2b794 (diff)
downloadtqt3-41bb408dde90e755b07cd2ab8a9bdec7548c84b0.tar.gz
tqt3-41bb408dde90e755b07cd2ab8a9bdec7548c84b0.zip
Automated conversion from qt3
Diffstat (limited to 'src/codecs/qtextcodec.cpp')
-rw-r--r--src/codecs/qtextcodec.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/src/codecs/qtextcodec.cpp b/src/codecs/qtextcodec.cpp
index c03529df2..5f962118f 100644
--- a/src/codecs/qtextcodec.cpp
+++ b/src/codecs/qtextcodec.cpp
@@ -122,8 +122,8 @@ void TQTextCodec::deleteAllCodecs()
return;
#ifdef QT_THREAD_SUPPORT
- TQMutexLocker locker( qt_global_mutexpool ?
- qt_global_mutexpool->get( &all ) : 0 );
+ TQMutexLocker locker( tqt_global_mutexpool ?
+ tqt_global_mutexpool->get( &all ) : 0 );
if ( !all )
return;
#endif // QT_THREAD_SUPPORT
@@ -152,8 +152,8 @@ static inline void setup()
if ( all ) return;
#ifdef QT_THREAD_SUPPORT
- TQMutexLocker locker( qt_global_mutexpool ?
- qt_global_mutexpool->get( &all ) : 0 );
+ TQMutexLocker locker( tqt_global_mutexpool ?
+ tqt_global_mutexpool->get( &all ) : 0 );
if ( all ) return;
#endif // QT_THREAD_SUPPORT
@@ -443,7 +443,7 @@ TQTextCodec::TQTextCodec()
TQTextCodec::~TQTextCodec()
{
if ( !destroying_is_ok )
- qWarning("TQTextCodec::~TQTextCodec() called by application");
+ tqWarning("TQTextCodec::~TQTextCodec() called by application");
if ( all )
all->remove( this );
}
@@ -503,7 +503,7 @@ static TQString lettersAndNumbers( const char * input )
int TQTextCodec::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 tqstrlen( 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("TQWindowsLocalDecoder: exceeded max internal buffer size");
+ tqWarning("TQWindowsLocalDecoder: exceeded max internal buffer size");
nbuf = 0;
}
}
@@ -793,7 +793,7 @@ static TQTextCodec * ru_RU_hack( const char * i ) {
} else {
// something else again... let's assume... *throws dice*
ru_RU_codec = TQTextCodec::codecForName( "KOI8-R" );
- qWarning( "TQTextCodec: using KOI8-R, probe failed (%02x %02x %s)",
+ tqWarning( "TQTextCodec: 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 TQSimpleTextCodec::mibEnum() const
int TQSimpleTextCodec::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' ) {
TQCString lhint = TQCString(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( "TQTextCodec: creating new codec during codec cleanup!" );
+ tqWarning( "TQTextCodec: creating new codec during codec cleanup!" );
#endif
all = new TQValueList<TQTextCodec*>;