summaryrefslogtreecommitdiffstats
path: root/kode/kodemain.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commit4c6f8d69e2d1501837affb472c4eb8fec4462240 (patch)
tree766a8ad7939fcf3eec534184c36bd0e0f80489e2 /kode/kodemain.cpp
parent469cc56a805bd3d6940d54adbef554877c29853c (diff)
downloadtdepim-4c6f8d69e2d1501837affb472c4eb8fec4462240.tar.gz
tdepim-4c6f8d69e2d1501837affb472c4eb8fec4462240.zip
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
Diffstat (limited to 'kode/kodemain.cpp')
-rw-r--r--kode/kodemain.cpp20
1 files changed, 10 insertions, 10 deletions
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();