diff options
Diffstat (limited to 'kbugbuster/backend/person.cpp')
-rw-r--r-- | kbugbuster/backend/person.cpp | 16 |
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; |