summaryrefslogtreecommitdiffstats
path: root/lib/kotext/kohyphen/kohyphentest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kotext/kohyphen/kohyphentest.cpp')
-rw-r--r--lib/kotext/kohyphen/kohyphentest.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/lib/kotext/kohyphen/kohyphentest.cpp b/lib/kotext/kohyphen/kohyphentest.cpp
index d19526ce..d5d8daff 100644
--- a/lib/kotext/kohyphen/kohyphentest.cpp
+++ b/lib/kotext/kohyphen/kohyphentest.cpp
@@ -3,19 +3,19 @@
#include <stdio.h>
#include <stdlib.h>
-#include <qstringlist.h>
+#include <tqstringlist.h>
#include <kapplication.h>
#include "kohyphen.h"
#include <kdebug.h>
-static bool check(QString a, QString b)
+static bool check(TQString a, TQString b)
{
if (a.isEmpty())
- a = QString::null;
+ a = TQString();
if (b.isEmpty())
- b = QString::null;
+ b = TQString();
if (a == b) {
kdDebug() << "checking '" << a << "' against expected value '" << b << "'... " << "ok" << endl;
}
@@ -28,13 +28,13 @@ static bool check(QString a, QString b)
KoHyphenator * hypher = 0L;
-void check_hyphenation( const QStringList& tests, const QStringList& results, const char* lang )
+void check_hyphenation( const TQStringList& tests, const TQStringList& results, const char* lang )
{
- QStringList::ConstIterator it, itres;
+ TQStringList::ConstIterator it, itres;
for ( it = tests.begin(), itres = results.begin(); it != tests.end() ; ++it, ++itres ) {
- QString result = hypher->hyphenate((*it), lang);
+ TQString result = hypher->hyphenate((*it), lang);
kdDebug() << (*it) << " hyphenates like this: " << result << endl;
- check( result.replace(QChar(0xad),'-'), *itres );
+ check( result.tqreplace(TQChar(0xad),'-'), *itres );
}
}
@@ -51,22 +51,22 @@ int main (int argc, char ** argv)
return 1;
}
- QStringList::ConstIterator it, itres;
+ TQStringList::ConstIterator it, itres;
//testing Czech language, this text is in UTF-8!
- QStringList cs_tests = QStringList() << "Žluťoučký" << "kůň" << "úpěl" <<
+ TQStringList cs_tests = TQStringList() << "Žluťoučký" << "kůň" << "úpěl" <<
"ďábelské" << "ódy";
for ( it = cs_tests.begin(); it != cs_tests.end() ; ++it )
kdDebug() << (*it) << " hyphenates like this: " << hypher->hyphenate((*it), "cs") << endl;
//testing English
- QStringList en_tests = QStringList() << "Follow" << "white" << "rabbit";
- QStringList en_results = QStringList() << "Fol-low" << "white" << "rab-bit";
+ TQStringList en_tests = TQStringList() << "Follow" << "white" << "rabbit";
+ TQStringList en_results = TQStringList() << "Fol-low" << "white" << "rab-bit";
check_hyphenation( en_tests, en_results, "en" );
- QStringList fr_tests = QStringList() << "constitution" ;
- QStringList fr_results = QStringList() << "consti-tu-tion" ;
+ TQStringList fr_tests = TQStringList() << "constitution" ;
+ TQStringList fr_results = TQStringList() << "consti-tu-tion" ;
check_hyphenation( fr_tests, fr_results, "fr" );
return 0;