summaryrefslogtreecommitdiffstats
path: root/kbabel/kbabeldict/modules/pocompendium
diff options
context:
space:
mode:
Diffstat (limited to 'kbabel/kbabeldict/modules/pocompendium')
-rw-r--r--kbabel/kbabeldict/modules/pocompendium/pocompendium.cpp14
-rw-r--r--kbabel/kbabeldict/modules/pocompendium/pocompendium.h2
2 files changed, 8 insertions, 8 deletions
diff --git a/kbabel/kbabeldict/modules/pocompendium/pocompendium.cpp b/kbabel/kbabeldict/modules/pocompendium/pocompendium.cpp
index dab127bf..bc79f082 100644
--- a/kbabel/kbabeldict/modules/pocompendium/pocompendium.cpp
+++ b/kbabel/kbabeldict/modules/pocompendium/pocompendium.cpp
@@ -421,7 +421,7 @@ bool PoCompendium::searchWords(const TQString& searchStr, uint pluralForm, TQPtr
if(!found && matchContains && !wholeWords)
{
- TQString s=tqmaskString(searchStr);
+ TQString s=maskString(searchStr);
TQRegExp searchReg(s);
if(searchReg.search(origStr) >= 0)
@@ -430,7 +430,7 @@ bool PoCompendium::searchWords(const TQString& searchStr, uint pluralForm, TQPtr
if(!found && matchIsContained && !wholeWords)
{
- TQString s=tqmaskString(origStr);
+ TQString s=maskString(origStr);
TQRegExp reg(s);
if(reg.search(searchStr) >= 0)
@@ -445,7 +445,7 @@ bool PoCompendium::searchWords(const TQString& searchStr, uint pluralForm, TQPtr
for ( TQStringList::Iterator wit2 = list.begin()
; wit2 != list.end(); ++wit2 )
{
- TQString s=tqmaskString(*wit2);
+ TQString s=maskString(*wit2);
TQRegExp reg(s);
if(reg.search(origStr) >= 0)
@@ -491,7 +491,7 @@ bool PoCompendium::searchNGram(const TQString& searchStr, uint pluralForm, TQPtr
TQRegExp searchReg;
if(matchContains)
{
- TQString s=tqmaskString(searchStr);
+ TQString s=maskString(searchStr);
searchReg.setPattern(s);
}
@@ -564,7 +564,7 @@ bool PoCompendium::searchNGram(const TQString& searchStr, uint pluralForm, TQPtr
if(!found && matchIsContained)
{
- TQString s=tqmaskString(origStr);
+ TQString s=maskString(origStr);
TQRegExp reg(s);
if(reg.search(searchStr) >= 0)
@@ -580,7 +580,7 @@ bool PoCompendium::searchNGram(const TQString& searchStr, uint pluralForm, TQPtr
for ( TQStringList::Iterator wit2 = list.begin()
; wit2 != list.end(); ++wit2 )
{
- TQString s=tqmaskString(*wit2);
+ TQString s=maskString(*wit2);
if(wholeWords)
{
@@ -864,7 +864,7 @@ void PoCompendium::recheckData()
loading=false;
}
-TQString PoCompendium::tqmaskString(TQString s)
+TQString PoCompendium::maskString(TQString s)
{
s.tqreplace("\\","\\\\");
s.tqreplace("\?","\\?");
diff --git a/kbabel/kbabeldict/modules/pocompendium/pocompendium.h b/kbabel/kbabeldict/modules/pocompendium/pocompendium.h
index 70386572..1b3d1496 100644
--- a/kbabel/kbabeldict/modules/pocompendium/pocompendium.h
+++ b/kbabel/kbabeldict/modules/pocompendium/pocompendium.h
@@ -99,7 +99,7 @@ protected slots:
protected:
void loadCompendium();
void addResult(SearchResult *, TQPtrList<SearchResult>& allResults);
- TQString tqmaskString(TQString string);
+ TQString maskString(TQString string);
void registerData();
void unregisterData();