From 627b091fad9df13695f249588e8a58f524eda0fa 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/kdeaddons@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kfile-plugins/mhtml/kfile_mhtml.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'kfile-plugins/mhtml') diff --git a/kfile-plugins/mhtml/kfile_mhtml.cpp b/kfile-plugins/mhtml/kfile_mhtml.cpp index 96da46e..895d969 100644 --- a/kfile-plugins/mhtml/kfile_mhtml.cpp +++ b/kfile-plugins/mhtml/kfile_mhtml.cpp @@ -120,21 +120,21 @@ bool mhtmlPlugin::readInfo( KFileMetaInfo& info, uint /*what*/) } TQString mhtmlPlugin::decodeRFC2047Phrase(const TQString &msg, bool removeLessGreater){ - int st=msg.tqfind("=?"); + int st=msg.find("=?"); int en=-1; TQString msgCopy=msg; TQString decodedText=msgCopy.left(st); TQString encodedText=msgCopy.mid(st); - st=encodedText.tqfind("=?"); + st=encodedText.find("=?"); while(st!=-1){ - en=encodedText.tqfind("?="); - while(encodedText.mid(en+2,1)!=" " && en+2<(int)encodedText.length()) en=encodedText.tqfind("?=",en+1); + en=encodedText.find("?="); + while(encodedText.mid(en+2,1)!=" " && en+2<(int)encodedText.length()) en=encodedText.find("?=",en+1); if(en==-1) break; decodedText+=encodedText.left(st); TQString tmp=encodedText.mid(st,en-st+2); encodedText=encodedText.mid(en+2); decodedText+=decodeRFC2047String(tmp); - st=encodedText.tqfind("=?",st+1); + st=encodedText.find("=?",st+1); } decodedText += encodedText; // remove unwanted '<' and '>' @@ -147,12 +147,12 @@ TQString mhtmlPlugin::decodeRFC2047Phrase(const TQString &msg, bool removeLessGr TQString dec=decodedText; TQString tmp; - st=decodedText.tqfind("<"); + st=decodedText.find("<"); while(st!=-1){ - st=dec.tqfind("<",st); + st=dec.find("<",st); if(st==0 || (st!=0 && (dec.mid(st-2,2)==", "))){ - en=dec.tqfind(">",st); - if(en==-1 && dec.tqfind(",",st)",st); + if(en==-1 && dec.find(",",st)toUnicode(tmpOut); - decodedText=decodedText.tqreplace("_"," "); - }else decodedText=tmpOut.tqreplace("_"," "); + decodedText=decodedText.replace("_"," "); + }else decodedText=tmpOut.replace("_"," "); return decodedText + notEncodedText; }else return msg; } -- cgit v1.2.1