From 937b2991d8e78166eea904c80ad04d34607017a4 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/kdenetwork@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kopete/protocols/oscar/aim/aimcontact.cpp | 40 +++++++++++++++---------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'kopete/protocols/oscar/aim/aimcontact.cpp') diff --git a/kopete/protocols/oscar/aim/aimcontact.cpp b/kopete/protocols/oscar/aim/aimcontact.cpp index 7f14d3ba..c71fed4d 100644 --- a/kopete/protocols/oscar/aim/aimcontact.cpp +++ b/kopete/protocols/oscar/aim/aimcontact.cpp @@ -127,16 +127,16 @@ void AIMContact::setAwayMessage(const TQString &message) kdDebug(14152) << k_funcinfo << "Called for '" << contactId() << "', away msg='" << message << "'" << endl; TQString filteredMessage = message; - filteredMessage.tqreplace( + filteredMessage.replace( TQRegExp(TQString::tqfromLatin1("<[hH][tT][mM][lL].*>(.*)")), TQString::tqfromLatin1("\\1")); - filteredMessage.tqreplace( + filteredMessage.replace( TQRegExp(TQString::tqfromLatin1("<[bB][oO][dD][yY].*>(.*)")), TQString::tqfromLatin1("\\1") ); TQRegExp fontRemover( TQString::tqfromLatin1("<[fF][oO][nN][tT].*>(.*)") ); fontRemover.setMinimal(true); - while ( filteredMessage.tqfind( fontRemover ) != -1 ) - filteredMessage.tqreplace( fontRemover, TQString::tqfromLatin1("\\1") ); + while ( filteredMessage.find( fontRemover ) != -1 ) + filteredMessage.replace( fontRemover, TQString::tqfromLatin1("\\1") ); setProperty(mProtocol->awayMessage, filteredMessage); } @@ -392,56 +392,56 @@ void AIMContact::slotSendMsg(Kopete::Message& message, Kopete::ChatSession *) //font-size:xxpt -> s=message.escapedBody(); - s.tqreplace ( TQRegExp( TQString::tqfromLatin1("([^<]*)")), + s.replace ( TQRegExp( TQString::tqfromLatin1("([^<]*)")), TQString::tqfromLatin1("")); - s.tqreplace ( TQRegExp( TQString::tqfromLatin1("")), + s.replace ( TQRegExp( TQString::tqfromLatin1("")), TQString::tqfromLatin1("")); - s.tqreplace ( TQRegExp( TQString::tqfromLatin1("")), + s.replace ( TQRegExp( TQString::tqfromLatin1("")), TQString::tqfromLatin1("")); - s.tqreplace ( TQRegExp( TQString::tqfromLatin1("")), + s.replace ( TQRegExp( TQString::tqfromLatin1("")), TQString::tqfromLatin1("")); - s.tqreplace ( TQRegExp( TQString::tqfromLatin1("")), + s.replace ( TQRegExp( TQString::tqfromLatin1("")), TQString::tqfromLatin1("")); - s.tqreplace ( TQRegExp( TQString::tqfromLatin1("")), + s.replace ( TQRegExp( TQString::tqfromLatin1("")), TQString::tqfromLatin1("")); - s.tqreplace ( TQRegExp( TQString::tqfromLatin1("")), + s.replace ( TQRegExp( TQString::tqfromLatin1("")), TQString::tqfromLatin1("")); - s.tqreplace ( TQRegExp( TQString::tqfromLatin1("")), + s.replace ( TQRegExp( TQString::tqfromLatin1("")), TQString::tqfromLatin1("\\2")); //okay now change the to //0-9 are size 1 - s.tqreplace ( TQRegExp ( TQString::tqfromLatin1("")), + s.replace ( TQRegExp ( TQString::tqfromLatin1("")), TQString::tqfromLatin1("")); //10-11 are size 2 - s.tqreplace ( TQRegExp ( TQString::tqfromLatin1("")), + s.replace ( TQRegExp ( TQString::tqfromLatin1("")), TQString::tqfromLatin1("")); //12-13 are size 3 - s.tqreplace ( TQRegExp ( TQString::tqfromLatin1("")), + s.replace ( TQRegExp ( TQString::tqfromLatin1("")), TQString::tqfromLatin1("")); //14-16 are size 4 - s.tqreplace ( TQRegExp ( TQString::tqfromLatin1("")), + s.replace ( TQRegExp ( TQString::tqfromLatin1("")), TQString::tqfromLatin1("")); //17-22 are size 5 - s.tqreplace ( TQRegExp ( TQString::tqfromLatin1("")), + s.replace ( TQRegExp ( TQString::tqfromLatin1("")), TQString::tqfromLatin1("")); //23-29 are size 6 - s.tqreplace ( TQRegExp ( TQString::tqfromLatin1("")),TQString::tqfromLatin1("")); + s.replace ( TQRegExp ( TQString::tqfromLatin1("")),TQString::tqfromLatin1("")); //30- (and any I missed) are size 7 - s.tqreplace ( TQRegExp ( TQString::tqfromLatin1("")),TQString::tqfromLatin1("")); + s.replace ( TQRegExp ( TQString::tqfromLatin1("")),TQString::tqfromLatin1("")); // strip left over line break s.remove(TQRegExp(TQString::tqfromLatin1("]*>$"))); - s.tqreplace ( TQRegExp ( TQString::tqfromLatin1("")), TQString::tqfromLatin1("
") ); + s.replace ( TQRegExp ( TQString::tqfromLatin1("")), TQString::tqfromLatin1("
") ); // strip left over line break s.remove( TQRegExp( TQString::tqfromLatin1( "
$" ) ) ); -- cgit v1.2.1