summaryrefslogtreecommitdiffstats
path: root/kbabel/kbabeldict/searchengine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kbabel/kbabeldict/searchengine.cpp')
-rw-r--r--kbabel/kbabeldict/searchengine.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/kbabel/kbabeldict/searchengine.cpp b/kbabel/kbabeldict/searchengine.cpp
index ac45c8b3..912f4da7 100644
--- a/kbabel/kbabeldict/searchengine.cpp
+++ b/kbabel/kbabeldict/searchengine.cpp
@@ -204,7 +204,7 @@ TQString SearchEngine::directory(const TQString& path, int n)
if(n<0)
return TQString();
- int begin=path.tqfindRev('/');
+ int begin=path.findRev('/');
int end=path.length();
if(begin < 0)
@@ -224,7 +224,7 @@ TQString SearchEngine::directory(const TQString& path, int n)
}
end = begin;
- begin = path.tqfindRev('/', end-1);
+ begin = path.findRev('/', end-1);
if(begin < 0)
{
@@ -266,7 +266,7 @@ uint SearchEngine::ngramMatch (const TQString& text1, const TQString& text2,
uint ngram_cnt = text1.length() - ngram_len + 1;
for (uint i = 0; i < ngram_cnt; i++) {
- if (text2.tqfind(text1.mid(i,ngram_len)) >= 0)
+ if (text2.find(text1.mid(i,ngram_len)) >= 0)
cnt++;
}