summaryrefslogtreecommitdiffstats
path: root/korn/kconf_update/korn-3-4-config_change.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'korn/kconf_update/korn-3-4-config_change.cpp')
-rw-r--r--korn/kconf_update/korn-3-4-config_change.cpp56
1 files changed, 28 insertions, 28 deletions
diff --git a/korn/kconf_update/korn-3-4-config_change.cpp b/korn/kconf_update/korn-3-4-config_change.cpp
index f8afa1ff4..08ca732bd 100644
--- a/korn/kconf_update/korn-3-4-config_change.cpp
+++ b/korn/kconf_update/korn-3-4-config_change.cpp
@@ -16,19 +16,19 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <qstring.h>
-#include <qregexp.h>
-#include <qtextstream.h>
-#include <qmap.h>
-#include <qvaluelist.h>
+#include <tqstring.h>
+#include <tqregexp.h>
+#include <tqtextstream.h>
+#include <tqmap.h>
+#include <tqvaluelist.h>
#include <stdio.h>
-QString decodeString( const QString &password )
+TQString decodeString( const TQString &password )
{
unsigned int i, val;
unsigned int len = password.length();
- QString result="";
+ TQString result="";
for ( i=0; i < len; i++ )
{
val = password[i].latin1() - ' ';
@@ -38,7 +38,7 @@ QString decodeString( const QString &password )
return result;
}
-void printToprint( QTextStream &out, QMap<QString,QString> &to_printed, const QString type )
+void printToprint( TQTextStream &out, TQMap<TQString,TQString> &to_printed, const TQString type )
{
out << "printToprint( " << type << " )" << endl;
@@ -104,26 +104,26 @@ void printToprint( QTextStream &out, QMap<QString,QString> &to_printed, const QS
int main( int, char** )
{
- QString line = QString::null;
- QString currentGroup1 = QString::null;
- QString currentGroup2 = QString::null;
- QString type = QString::null;
- QString password = QString::null;
- QRegExp interesting_group( "^\\[box-(\\d+)\\]" );
- QRegExp key_value( "^(\\w*)=(.*)$" );
- QValueList<QString> tobe_deleted;
+ TQString line = TQString::null;
+ TQString currentGroup1 = TQString::null;
+ TQString currentGroup2 = TQString::null;
+ TQString type = TQString::null;
+ TQString password = TQString::null;
+ TQRegExp interesting_group( "^\\[box-(\\d+)\\]" );
+ TQRegExp key_value( "^(\\w*)=(.*)$" );
+ TQValueList<TQString> tobe_deleted;
int numboxes = -1;
bool isKey = false;
- QTextStream in( stdin, IO_ReadOnly );
- QTextStream out( stdout, IO_WriteOnly );
+ TQTextStream in( stdin, IO_ReadOnly );
+ TQTextStream out( stdout, IO_WriteOnly );
- in.setEncoding( QTextStream::UnicodeUTF8 );
- out.setEncoding( QTextStream::UnicodeUTF8 );
+ in.setEncoding( TQTextStream::UnicodeUTF8 );
+ out.setEncoding( TQTextStream::UnicodeUTF8 );
- QMap<QString,QString> mapping1;
- QValueList<QString> mapping2;
- QMap<QString,QString> to_printed;
+ TQMap<TQString,TQString> mapping1;
+ TQValueList<TQString> mapping2;
+ TQMap<TQString,TQString> to_printed;
mapping1.insert( "caption", "name" );
mapping1.insert( "onclick", "command" );
@@ -168,15 +168,15 @@ int main( int, char** )
printToprint( out, to_printed, type );
}
- currentGroup1 = QString::null;
+ currentGroup1 = TQString::null;
}
if( interesting_group.search( line ) >= 0 )
{
if( numboxes > -1 && interesting_group.cap( 1 ).toInt() < numboxes )
{
- currentGroup1 = QString( "[korn-%1]" ).arg( interesting_group.cap( 1 ) );
- currentGroup2 = QString( "[korn-%1-0]" ).arg( interesting_group.cap( 1 ) );
+ currentGroup1 = TQString( "[korn-%1]" ).arg( interesting_group.cap( 1 ) );
+ currentGroup2 = TQString( "[korn-%1-0]" ).arg( interesting_group.cap( 1 ) );
}
tobe_deleted.append( line );
continue;
@@ -250,8 +250,8 @@ int main( int, char** )
printToprint( out, to_printed, type );
}
- QValueList<QString>::Iterator it1 = tobe_deleted.begin();
- QValueList<QString>::Iterator it1_end = tobe_deleted.end();
+ TQValueList<TQString>::Iterator it1 = tobe_deleted.begin();
+ TQValueList<TQString>::Iterator it1_end = tobe_deleted.end();
for( ; it1 != it1_end; ++it1 )
out << "# DELETEGROUP " << *it1 << endl;