From 4c6f8d69e2d1501837affb472c4eb8fec4462240 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 10 Aug 2011 06:08:18 +0000 Subject: rename the following methods: tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kode/kodemain.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'kode/kodemain.cpp') diff --git a/kode/kodemain.cpp b/kode/kodemain.cpp index dcc073edc..63746effe 100644 --- a/kode/kodemain.cpp +++ b/kode/kodemain.cpp @@ -167,14 +167,14 @@ int addProperty( KCmdLineArgs *args ) // out += line + "\n"; switch( state ) { case FindClass: -// if ( line.tqfind( TQRegExp( className ) ) >= 0 ) { - if ( line.tqfind( TQRegExp( "^\\s*class\\s+" + className ) ) >= 0 ) { +// if ( line.find( TQRegExp( className ) ) >= 0 ) { + if ( line.find( TQRegExp( "^\\s*class\\s+" + className ) ) >= 0 ) { kdDebug() << " FOUND CLASS" << endl; state = FindConstructor; } break; case FindConstructor: - if ( line.tqfind( TQRegExp( "^\\s*" + className + "\\s*\\(" ) ) >= 0 ) { + if ( line.find( TQRegExp( "^\\s*" + className + "\\s*\\(" ) ) >= 0 ) { kdDebug() << " FOUND CONSTRUCTOR" << endl; out += readAhead; readAhead = TQString(); @@ -212,9 +212,9 @@ int addProperty( KCmdLineArgs *args ) } } } - } else if ( line.tqfind( TQRegExp( "\\s*protected" ) ) >= 0 ) { + } else if ( line.find( TQRegExp( "\\s*protected" ) ) >= 0 ) { state = FindPrivate; - } else if ( line.tqfind( TQRegExp( "\\s*private" ) ) >= 0 ) { + } else if ( line.find( TQRegExp( "\\s*private" ) ) >= 0 ) { if ( accessor.isEmpty() ) { addPropertyFunctions( out, type, name ); out += readAhead; @@ -235,7 +235,7 @@ int addProperty( KCmdLineArgs *args ) } break; case FindPrivate: - if ( line.tqfind( TQRegExp( "\\s*private" ) ) >= 0 ) { + if ( line.find( TQRegExp( "\\s*private" ) ) >= 0 ) { if ( accessor.isEmpty() ) { out += readAhead; readAhead = TQString(); @@ -248,7 +248,7 @@ int addProperty( KCmdLineArgs *args ) break; case FindVariables: { - if ( line.tqfind( "m" + accessor.lower(), 0, false ) >= 0 ) { + if ( line.find( "m" + accessor.lower(), 0, false ) >= 0 ) { out += readAhead; readAhead = TQString(); addPropertyVariable( out, type, name ); @@ -309,8 +309,8 @@ int codify( KCmdLineArgs *args ) TQTextStream ts( &f ); TQString line; while( !( line = ts.readLine() ).isNull() ) { - line.tqreplace( "\\", "\\\\" ); - line.tqreplace( "\"", "\\\"" ); + line.replace( "\\", "\\\\" ); + line.replace( "\"", "\\\"" ); line = "code += \"" + line; line.append( "\";" ); std::cout << line.local8Bit().data() << std::endl; @@ -374,7 +374,7 @@ int create( KCmdLineArgs *args ) KABC::Addressee::List as = KABC::StdAddressBook::self()->findByEmail( authorEmail ); if ( as.isEmpty() ) { - kdDebug() << "Unable to tqfind '" << authorEmail << "' in address book." + kdDebug() << "Unable to find '" << authorEmail << "' in address book." << endl; } else { a = as.first(); -- cgit v1.2.1