diff options
Diffstat (limited to 'python/pyqt/pylupdate3/numberh.cpp')
-rw-r--r-- | python/pyqt/pylupdate3/numberh.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/python/pyqt/pylupdate3/numberh.cpp b/python/pyqt/pylupdate3/numberh.cpp index 67048031..2280ba27 100644 --- a/python/pyqt/pylupdate3/numberh.cpp +++ b/python/pyqt/pylupdate3/numberh.cpp @@ -14,16 +14,16 @@ ** **********************************************************************/ -#include <qmemarray.h> -#include <qcstring.h> -#include <qmap.h> -#include <qstringlist.h> +#include <tqmemarray.h> +#include <tqcstring.h> +#include <tqmap.h> +#include <tqstringlist.h> #include <ctype.h> #include <metatranslator.h> -typedef QMap<QCString, MetaTranslatorMessage> TMM; -typedef QValueList<MetaTranslatorMessage> TML; +typedef TQMap<TQCString, MetaTranslatorMessage> TMM; +typedef TQValueList<MetaTranslatorMessage> TML; static bool isDigitFriendly( int c ) { @@ -49,9 +49,9 @@ static int numberLength( const char *s ) Returns a version of 'key' where all numbers have been replaced by zeroes. If there were none, returns "". */ -static QCString zeroKey( const char *key ) +static TQCString zeroKey( const char *key ) { - QCString zeroed( strlen(key) + 1 ); + TQCString zeroed( strlen(key) + 1 ); char *z = zeroed.data(); int i = 0, j = 0; int len; @@ -75,17 +75,17 @@ static QCString zeroKey( const char *key ) return ""; } -static QString translationAttempt( const QString& oldTranslation, +static TQString translationAttempt( const TQString& oldTranslation, const char *oldSource, const char *newSource ) { int p = zeroKey( oldSource ).contains( '0' ); int oldSourceLen = qstrlen( oldSource ); - QString attempt; - QStringList oldNumbers; - QStringList newNumbers; - QMemArray<bool> met( p ); - QMemArray<int> matchedYet( p ); + TQString attempt; + TQStringList oldNumbers; + TQStringList newNumbers; + TQMemArray<bool> met( p ); + TQMemArray<int> matchedYet( p ); int i, j; int k = 0, ell, best; int m, n; @@ -103,8 +103,8 @@ static QString translationAttempt( const QString& oldTranslation, m = numberLength( oldSource + i ); n = numberLength( newSource + j ); if ( m > 0 ) { - oldNumbers.append( QCString(oldSource + i, m + 1) ); - newNumbers.append( QCString(newSource + j, n + 1) ); + oldNumbers.append( TQCString(oldSource + i, m + 1) ); + newNumbers.append( TQCString(newSource + j, n + 1) ); i += m; j += n; met[k] = FALSE; @@ -168,7 +168,7 @@ static QString translationAttempt( const QString& oldTranslation, */ for ( k = 0; k < p; k++ ) { if ( !met[k] ) - attempt += QString( " {" ) + newNumbers[k] + QString( "?}" ); + attempt += TQString( " {" ) + newNumbers[k] + TQString( "?}" ); } /* @@ -180,8 +180,8 @@ static QString translationAttempt( const QString& oldTranslation, for ( ell = 0; ell < p; ell++ ) { if ( k != ell && oldNumbers[k] == oldNumbers[ell] && newNumbers[k] < newNumbers[ell] ) - attempt += QString( " {" ) + newNumbers[k] + QString( " or " ) + - newNumbers[ell] + QString( "?}" ); + attempt += TQString( " {" ) + newNumbers[k] + TQString( " or " ) + + newNumbers[ell] + TQString( "?}" ); } } return attempt; |