23 #ifndef SUIT_SENTENCEMATCHER_H
24 #define SUIT_SENTENCEMATCHER_H
29 #include <QStringList>
46 void setUseExactWordOrder(
bool theOn);
47 void setUseFuzzyWords(
bool theOn);
48 void setCaseSensitive(
bool theOn);
52 void setQuery(QString theQuery);
54 inline const QString&
getQuery()
const {
return myQuery; };
58 double match(
const QString& theInputString)
const;
61 QString toString()
const;
64 static bool makePermutatedSentences(
const QStringList& theWords,
QList<QStringList>& theSentences);
65 static void makeFuzzyWords(
const QStringList& theWords, QStringList& theFuzzyWords);
68 static int matchWithSentenceIgnoreEndings(
const QString& theInputString,
const QStringList& theSentence,
bool theCaseSensitive);
70 static int matchWithSentencesIgnoreEndings(
const QString& theInputString,
const QList<QStringList>& theSentences,
bool theCaseSensitive);
73 static int matchAtLeastOneWord(
const QString& theInputString,
const QStringList& theWords,
bool theCaseSensitive);
77 const QString& theInputString,
78 const QStringList& theSentence,
84 const QString& theInputString,
#define SUIT_EXPORT
Definition: SUIT.h:36