summaryrefslogtreecommitdiff
path: root/plugins/Boltun/src/Engine/WordsList.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-04-27 08:58:18 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-04-27 08:58:18 +0000
commit47f4d5c03a16988eab91de5e26218f8e0d35b8b8 (patch)
treeed8bb521a4301dfeea2e918f50830819db524762 /plugins/Boltun/src/Engine/WordsList.cpp
parent68a6aa6db2eb165cfbebebc891a41be2f6917f44 (diff)
Boltun common project
git-svn-id: http://svn.miranda-ng.org/main/trunk@13194 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Boltun/src/Engine/WordsList.cpp')
-rw-r--r--plugins/Boltun/src/Engine/WordsList.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/plugins/Boltun/src/Engine/WordsList.cpp b/plugins/Boltun/src/Engine/WordsList.cpp
index d9ba65aa90..439ee229dd 100644
--- a/plugins/Boltun/src/Engine/WordsList.cpp
+++ b/plugins/Boltun/src/Engine/WordsList.cpp
@@ -18,7 +18,7 @@
//
//***********************************************************
-#include "..\boltun.h"
+#include "..\stdafx.h"
using namespace std;
@@ -31,7 +31,7 @@ WordsList::operator tstring() const
{
tstring res;
//if (unstrict)
- // res = _T("~");
+ // res = _T("~");
set<tstring>::const_iterator it = words.begin();
if (!words.empty())
while (true)
@@ -58,11 +58,11 @@ void WordsList::Parse(tstring s/*, bool allowUnstrict*/)
isQuestion = false;
/*if (allowUnstrict && s.length() && s[0] == _T('~'))
{
- s = s.substr(1, s.npos);
- unstrict = true;
+ s = s.substr(1, s.npos);
+ unstrict = true;
}
else
- unstrict = false;*/
+ unstrict = false;*/
int len = (int)s.length() - 1;
while (len != -1 && _istspace(s[len]))
len--;
@@ -94,15 +94,15 @@ bool WordsList::MatchesAll(const vector<tstring>& s/*, bool& WasStrict*/, float&
//WasStrict = true;
for (vector<tstring>::const_iterator it = s.begin(); it != s.end(); ++it)
{
-/* if (words.find(*it) == words.end())
- if (unstrict)
- {
- WasStrict = false;
- continue;
- }
- else
- return false;
- temp.insert((*it));*/
+ /* if (words.find(*it) == words.end())
+ if (unstrict)
+ {
+ WasStrict = false;
+ continue;
+ }
+ else
+ return false;
+ temp.insert((*it));*/
if (words.find(*it) != words.end())
temp.insert((*it));
}
@@ -137,10 +137,10 @@ vector<tstring> WordsList::DoesntIncludeAny(const set<tstring>& list) const
res.push_back(*it);
return res;
}
-
+
bool WordsList::operator<(const WordsList& value) const
{
- return (tstring)*this < (tstring)value;
+ return (tstring)*this < (tstring)value;
}
bool WordsList::operator!=(const WordsList& value) const