From 0254ebaa5e056092461fd585b6851d15faa43035 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/applications/tellico@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/fetch/ibsfetcher.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/fetch/ibsfetcher.cpp') diff --git a/src/fetch/ibsfetcher.cpp b/src/fetch/ibsfetcher.cpp index 734c431..4c86ef3 100644 --- a/src/fetch/ibsfetcher.cpp +++ b/src/fetch/ibsfetcher.cpp @@ -174,8 +174,8 @@ void IBSFetcher::slotComplete(KIO::Job* job_) { #ifdef IBS_TEST KURL url = KURL::fromPathOrURL(TQString::tqfromLatin1("/home/robby/ibs2.html")); #else - // the url probable tqcontains & so be careful - KURL url = u.tqreplace(TQString::tqfromLatin1("&"), TQChar('&')); + // the url probable contains & so be careful + KURL url = u.replace(TQString::tqfromLatin1("&"), TQChar('&')); #endif m_matches.insert(r->uid, url); @@ -185,9 +185,9 @@ void IBSFetcher::slotComplete(KIO::Job* job_) { } u = anchorRx.cap(1); t = anchorRx.cap(2); - pos2 = s.tqfind(TQString::tqfromLatin1("
"), pos, false); + pos2 = s.find(TQString::tqfromLatin1("
"), pos, false); if(pos2 > -1) { - int pos3 = s.tqfind(TQString::tqfromLatin1("
"), pos2+1, false); + int pos3 = s.find(TQString::tqfromLatin1("
"), pos2+1, false); if(pos3 > -1) { d = s.mid(pos2, pos3-pos2).remove(tagRx).simplifyWhiteSpace(); } @@ -197,7 +197,7 @@ void IBSFetcher::slotComplete(KIO::Job* job_) { if(!u.isEmpty()) { SearchResult* r = new SearchResult(this, t, d, TQString()); emit signalResultFound(r); - m_matches.insert(r->uid, u.tqreplace(TQString::tqfromLatin1("&"), TQChar('&'))); + m_matches.insert(r->uid, u.replace(TQString::tqfromLatin1("&"), TQChar('&'))); } #endif @@ -221,7 +221,7 @@ void IBSFetcher::slotCompleteISBN(KIO::Job* job_) { } TQString str = Tellico::decodeHTML(TQString(m_data)); - if(str.tqfind(TQString::tqfromLatin1("Libro non presente"), 0, false /* cas-sensitive */) > -1) { + if(str.find(TQString::tqfromLatin1("Libro non presente"), 0, false /* cas-sensitive */) > -1) { stop(); return; } @@ -364,7 +364,7 @@ Tellico::Data::EntryPtr IBSFetcher::parseEntry(const TQString& str_) { TQStringList names = entry->fields(TQString::tqfromLatin1("author"), false); if(!names.isEmpty() && !names[0].isEmpty()) { for(TQStringList::Iterator it = names.begin(); it != names.end(); ++it) { - if((*it).tqfind(',') > -1) { + if((*it).find(',') > -1) { continue; // skip if it has a comma } TQStringList words = TQStringList::split(' ', *it); -- cgit v1.2.1