diff options
author | Mavridis Philippe <mavridisf@gmail.com> | 2024-09-30 00:04:56 +0300 |
---|---|---|
committer | Philippe Mavridis <philippe.mavridis@yandex.com> | 2025-05-15 21:00:25 +0300 |
commit | 04e86613f67d171cc965fce64a4310c0d25c98e1 (patch) | |
tree | 08a85d43bc40568f94259601339ccd7e1de11773 /lib/kotext/kohyphen/kohyphentest.cpp | |
parent | cf85b9c285a2b9baa87c9d0cb9d683b48e82a475 (diff) | |
download | koffice-feat/cmake-port.tar.gz koffice-feat/cmake-port.zip |
WIP: CMake portfeat/cmake-port
Signed-off-by: Philippe Mavridis <philippe.mavridis@yandex.com>
Diffstat (limited to 'lib/kotext/kohyphen/kohyphentest.cpp')
-rw-r--r-- | lib/kotext/kohyphen/kohyphentest.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/kotext/kohyphen/kohyphentest.cpp b/lib/kotext/kohyphen/kohyphentest.cpp index 0f083631e..5a0d3ac0e 100644 --- a/lib/kotext/kohyphen/kohyphentest.cpp +++ b/lib/kotext/kohyphen/kohyphentest.cpp @@ -6,6 +6,7 @@ #include <tqstringlist.h> #include <tdeapplication.h> +#include <tdecmdlineargs.h> #include "kohyphen.h" #include <kdebug.h> @@ -40,7 +41,8 @@ void check_hyphenation( const TQStringList& tests, const TQStringList& results, int main (int argc, char ** argv) { - TDEApplication app(argc, argv, "KoHyphenator test"); + TDECmdLineArgs::init(argc, argv, "kohyphentest", "KoHyphenator test", 0, 0, true); + TDEApplication app; try { hypher = KoHyphenator::self(); @@ -54,8 +56,12 @@ int main (int argc, char ** argv) TQStringList::ConstIterator it, itres; //testing Czech language, this text is in UTF-8! - TQStringList cs_tests = TQStringList() << "Žluťoučký" << "kůň" << "úpěl" << - "ďábelské" << "ódy"; + TQStringList cs_tests; + cs_tests << TQString::fromLocal8Bit("Žluťoučký") + << TQString::fromLocal8Bit("kůň") + << TQString::fromLocal8Bit("úpěl") + << TQString::fromLocal8Bit("ďábelské") + << TQString::fromLocal8Bit("ódy"); for ( it = cs_tests.begin(); it != cs_tests.end() ; ++it ) kdDebug() << (*it) << " hyphenates like this: " << hypher->hyphenate((*it), "cs") << endl; |