summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/tools/assistant/index.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-08-09 22:25:47 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-08-09 22:25:47 -0500
commiteaa7ee2e0bbca40ba3173c4304f81957e8964291 (patch)
tree4f793aa48a5080aedc94ce6e519c3b86708f2b88 /tqtinterface/qt4/tools/assistant/index.cpp
parent79a9d7a46a20d4a0923bc06fc471fdc2176ef865 (diff)
downloadexperimental-eaa7ee2e0bbca40ba3173c4304f81957e8964291.tar.gz
experimental-eaa7ee2e0bbca40ba3173c4304f81957e8964291.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains
Diffstat (limited to 'tqtinterface/qt4/tools/assistant/index.cpp')
-rw-r--r--tqtinterface/qt4/tools/assistant/index.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/tqtinterface/qt4/tools/assistant/index.cpp b/tqtinterface/qt4/tools/assistant/index.cpp
index 41e582f..7ed1a4f 100644
--- a/tqtinterface/qt4/tools/assistant/index.cpp
+++ b/tqtinterface/qt4/tools/assistant/index.cpp
@@ -266,7 +266,7 @@ TQStringList Index::query( const TQStringList &terms, const TQStringList &termSe
TQStringList::ConstIterator it = terms.begin();
for ( it = terms.begin(); it != terms.end(); ++it ) {
Entry *e = 0;
- if ( (*it).tqcontains( '*' ) ) {
+ if ( (*it).contains( '*' ) ) {
TQValueList<Document> wcts = setupDummyTerm( getWildcardTerms( *it ) );
termList.append( new Term( "dummy", wcts.count(), wcts ) );
} else if ( dict[ *it ] ) {
@@ -333,8 +333,8 @@ TQString Index::getDocumentTitle( const TQString &fileName )
TQTextStream s( &file );
TQString text = s.read();
- int start = text.tqfind( "<title>", 0, FALSE ) + 7;
- int end = text.tqfind( "</title>", 0, FALSE );
+ int start = text.find( "<title>", 0, FALSE ) + 7;
+ int end = text.find( "</title>", 0, FALSE );
TQString title = ( end - start <= 0 ? tr("Untitled") : text.mid( start, end - start ) );
return title;
@@ -360,9 +360,9 @@ TQStringList Index::getWildcardTerms( const TQString &term )
found = FALSE;
break;
}
- 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() ) {
found = FALSE;
break;
@@ -388,7 +388,7 @@ TQStringList Index::split( const TQString &str )
{
TQStringList lst;
int j = 0;
- int i = str.tqfind( '*', j );
+ int i = str.find( '*', j );
while ( i != -1 ) {
if ( i > j && i <= (int)str.length() ) {
@@ -396,7 +396,7 @@ TQStringList Index::split( const TQString &str )
lst << "*";
}
j = i + 1;
- i = str.tqfind( '*', j );
+ i = str.find( '*', j );
}
int l = str.length() - 1;
@@ -431,7 +431,7 @@ TQValueList<Document> Index::setupDummyTerm( const TQStringList &terms )
while ( t ) {
TQValueList<Document> docs = t->documents;
for ( docIt = docs.begin(); docIt != docs.end(); ++docIt ) {
- if ( maxList.tqfindIndex( *docIt ) == -1 )
+ if ( maxList.findIndex( *docIt ) == -1 )
maxList.append( *docIt );
}
t = termList.next();
@@ -511,7 +511,7 @@ bool Index::searchForPattern( const TQStringList &patterns, const TQStringList &
b = miniDict[ wordLst[j] ]->positions;
aIt = a.begin();
while ( aIt != a.end() ) {
- if ( b.tqfind( *aIt + 1 ) != b.end() ) {
+ if ( b.find( *aIt + 1 ) != b.end() ) {
(*aIt)++;
++aIt;
} else {