summaryrefslogtreecommitdiffstats
path: root/python/pyqt/pylupdate3/fetchtr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'python/pyqt/pylupdate3/fetchtr.cpp')
-rw-r--r--python/pyqt/pylupdate3/fetchtr.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/python/pyqt/pylupdate3/fetchtr.cpp b/python/pyqt/pylupdate3/fetchtr.cpp
index 609dbc18..600b3a07 100644
--- a/python/pyqt/pylupdate3/fetchtr.cpp
+++ b/python/pyqt/pylupdate3/fetchtr.cpp
@@ -29,23 +29,23 @@
**
**********************************************************************/
-#include <qfile.h>
-#include <qregexp.h>
-#include <qstring.h>
-#include <qtextstream.h>
+#include <tqfile.h>
+#include <tqregexp.h>
+#include <tqstring.h>
+#include <tqtextstream.h>
#include <ctype.h>
#include <errno.h>
#include <metatranslator.h>
#include <stdio.h>
#include <string.h>
-/*#include <qxml.h>*/
+/*#include <tqxml.h>*/
static const char MagicComment[] = "TRANSLATOR ";
-static QMap<QCString, int> needs_Q_OBJECT;
-static QMap<QCString, int> lacks_Q_OBJECT;
+static TQMap<TQCString, int> needs_Q_OBJECT;
+static TQMap<TQCString, int> lacks_Q_OBJECT;
/*
The first part of this source file is the python tokenizer. We skip
@@ -62,7 +62,7 @@ enum { Tok_Eof, Tok_class, Tok_return, Tok_tr,
The tokenizer maintains the following global variables. The names
should be self-explanatory.
*/
-static QCString yyFileName;
+static TQCString yyFileName;
static int yyCh;
static char yyIdent[128];
static size_t yyIdentLen;
@@ -78,7 +78,7 @@ static int yyCurLineNo;
static FILE *yyInFile;
// the string to read from and current position in the string (otherwise)
-static QString yyInStr;
+static TQString yyInStr;
static int yyInPos;
static int buf;
@@ -225,7 +225,7 @@ static int getToken()
yyCh = getChar();
if ( yyCh == 'x' ) {
- QCString hex = "0";
+ TQCString hex = "0";
yyCh = getChar();
while ( isxdigit(yyCh) ) {
@@ -236,7 +236,7 @@ static int getToken()
if ( yyStringLen < sizeof(yyString) - 1 )
yyString[yyStringLen++] = (char) n;
} else if ( yyCh >= '0' && yyCh < '8' ) {
- QCString oct = "";
+ TQCString oct = "";
do {
oct += (char) yyCh;
@@ -316,7 +316,7 @@ static bool match( int t )
return matches;
}
-static bool matchString( QCString *s )
+static bool matchString( TQCString *s )
{
bool matches = ( yyTok == Tok_String );
*s = "";
@@ -330,10 +330,10 @@ static bool matchString( QCString *s )
static bool matchEncoding( bool *utf8 )
{
if ( yyTok == Tok_Ident ) {
- if ( strcmp(yyIdent, "QApplication") == 0 ) {
+ if ( strcmp(yyIdent, "TQApplication") == 0 ) {
yyTok = getToken();
}
- *utf8 = QString( yyIdent ).endsWith( QString("UTF8") );
+ *utf8 = TQString( yyIdent ).endsWith( TQString("UTF8") );
yyTok = getToken();
return TRUE;
} else {
@@ -344,12 +344,12 @@ static bool matchEncoding( bool *utf8 )
static void parse( MetaTranslator *tor, const char *initialContext,
const char *defaultContext )
{
- QMap<QCString, QCString> qualifiedContexts;
- QCString context;
- QCString text;
- QCString com;
- QCString functionContext = initialContext;
- QCString prefix;
+ TQMap<TQCString, TQCString> qualifiedContexts;
+ TQCString context;
+ TQCString text;
+ TQCString com;
+ TQCString functionContext = initialContext;
+ TQCString prefix;
bool utf8 = FALSE;
yyTok = getToken();
@@ -380,7 +380,7 @@ static void parse( MetaTranslator *tor, const char *initialContext,
if ( qualifiedContexts.contains(context) )
context = qualifiedContexts[context];
tor->insert( MetaTranslatorMessage(context, text, com,
- QString::null, utf8) );
+ TQString::null, utf8) );
}
}
break;
@@ -400,7 +400,7 @@ static void parse( MetaTranslator *tor, const char *initialContext,
matchEncoding(&utf8) &&
match(Tok_RightParen))) )
tor->insert( MetaTranslatorMessage(context, text, com,
- QString::null, utf8) );
+ TQString::null, utf8) );
}
break;
case Tok_Ident:
@@ -423,7 +423,7 @@ static void parse( MetaTranslator *tor, const char *initialContext,
context = com.left( k );
com.remove( 0, k + 1 );
tor->insert( MetaTranslatorMessage(context, "", com,
- QString::null, FALSE) );
+ TQString::null, FALSE) );
}
}
yyTok = getToken();