diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | 72aaee9802d447ee21340b011856b9b355a58f1a (patch) | |
tree | f97a68e4f75e6c25c8492e03fdfe6983fb0aa199 /src/modules/help/index.cpp | |
parent | 5d03948cd3558c613fae1fad109635f860babcbb (diff) | |
download | kvirc-72aaee9802d447ee21340b011856b9b355a58f1a.tar.gz kvirc-72aaee9802d447ee21340b011856b9b355a58f1a.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kvirc@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/modules/help/index.cpp')
-rwxr-xr-x | src/modules/help/index.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/modules/help/index.cpp b/src/modules/help/index.cpp index ba5e72f3..46dc4f22 100755 --- a/src/modules/help/index.cpp +++ b/src/modules/help/index.cpp @@ -329,7 +329,7 @@ TQStringList Index::query( const TQStringList &terms, const TQStringList &termSe Entry *e = 0; - if ( (*it).tqcontains( '*' ) ) { + if ( (*it).contains( '*' ) ) { KviValueList<Document> wcts = setupDummyTerm( getWildcardTerms( *it ) ); @@ -464,9 +464,9 @@ TQString Index::getDocumentTitle( const TQString &fileName ) - int start = text.tqfind( "<title>", 0, FALSE ) + 7; + int start = text.find( "<title>", 0, FALSE ) + 7; - int end = text.tqfind( "</title>", 0, FALSE ); + int end = text.find( "</title>", 0, FALSE ); @@ -521,11 +521,11 @@ TQStringList Index::getWildcardTerms( const TQString &term ) } - index = text.tqfind( *iter, index ); + index = text.find( *iter, index ); if ( *iter == terms.last() && index != (int)text.length()-1 ) { - index = text.tqfindRev( *iter ); + index = text.findRev( *iter ); if ( index != (int)text.length() - (int)(*iter).length() ) { @@ -577,7 +577,7 @@ TQStringList Index::split( const TQString &str ) int j = 0; - int i = str.tqfind( '*', j ); + int i = str.find( '*', j ); @@ -593,7 +593,7 @@ TQStringList Index::split( const TQString &str ) j = i + 1; - i = str.tqfind( '*', j ); + i = str.find( '*', j ); } @@ -663,7 +663,7 @@ KviValueList<Document> Index::setupDummyTerm( const TQStringList &terms ) for ( docIt = docs.begin(); docIt != docs.end(); ++docIt ) { - if ( maxList.tqfindIndex( *docIt ) == -1 ) + if ( maxList.findIndex( *docIt ) == -1 ) maxList.append( *docIt ); @@ -823,7 +823,7 @@ bool Index::searchForPattern( const TQStringList &patterns, const TQStringList & while ( aIt != a.end() ) { - if ( b.tqfind( *aIt + 1 ) != b.end() ) { + if ( b.find( *aIt + 1 ) != b.end() ) { (*aIt)++; |