summaryrefslogtreecommitdiffstats
path: root/kbugbuster/backend/person.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
commit0813b39aed2cf4c84157a22c4c9594336d93d412 (patch)
tree0f6157f9c9ecc6ed26cb98f058219a8021d3f4a6 /kbugbuster/backend/person.cpp
parent35dc58791106d7a1864264063df5f3ee3f1f0f15 (diff)
downloadtdesdk-0813b39aed2cf4c84157a22c4c9594336d93d412.tar.gz
tdesdk-0813b39aed2cf4c84157a22c4c9594336d93d412.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kbugbuster/backend/person.cpp')
-rw-r--r--kbugbuster/backend/person.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kbugbuster/backend/person.cpp b/kbugbuster/backend/person.cpp
index 368ea07c..8f73c512 100644
--- a/kbugbuster/backend/person.cpp
+++ b/kbugbuster/backend/person.cpp
@@ -4,7 +4,7 @@
Person::Person( const TQString &fullName )
{
- int emailPos = fullName.tqfind( '<' );
+ int emailPos = fullName.find( '<' );
if ( emailPos < 0 ) {
email = fullName;
} else {
@@ -41,10 +41,10 @@ Person Person::parseFromString( const TQString &_str )
TQString str = _str;
- int ltPos = str.tqfind( '<' );
+ int ltPos = str.find( '<' );
if ( ltPos != -1 )
{
- int gtPos = str.tqfind( '>', ltPos );
+ int gtPos = str.find( '>', ltPos );
if ( gtPos != -1 )
{
res.name = str.left( ltPos - 1 );
@@ -52,16 +52,16 @@ Person Person::parseFromString( const TQString &_str )
}
}
- int atPos = str.tqfind( '@' );
- int spacedAtPos = str.tqfind( TQString::tqfromLatin1( " at " ) );
+ int atPos = str.find( '@' );
+ int spacedAtPos = str.find( TQString::tqfromLatin1( " at " ) );
if ( atPos == -1 && spacedAtPos != -1 )
- str.tqreplace( spacedAtPos, 4, TQString::tqfromLatin1( "@" ) );
+ str.replace( spacedAtPos, 4, TQString::tqfromLatin1( "@" ) );
- int spacePos = str.tqfind( ' ' );
+ int spacePos = str.find( ' ' );
while ( spacePos != -1 )
{
str[ spacePos ] = '.';
- spacePos = str.tqfind( ' ', spacePos );
+ spacePos = str.find( ' ', spacePos );
}
res.email = str;