aboutsummaryrefslogtreecommitdiff
path: root/src/clients/inquisitio/text_matcher.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-02-05 12:32:56 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-02-05 12:32:56 +0000
commit32a457a2f1f7927fccc6e7c663646b2e54dacfda (patch)
tree0bfe15f21bc1f0d8a37401cba6b0be398f67e66c /src/clients/inquisitio/text_matcher.cc
parent791b90eb11433ffe03c1b7c72b270413e38025a0 (diff)
downloadpaludis-32a457a2f1f7927fccc6e7c663646b2e54dacfda.tar.gz
paludis-32a457a2f1f7927fccc6e7c663646b2e54dacfda.tar.xz
More inquisitio
Diffstat (limited to 'src/clients/inquisitio/text_matcher.cc')
-rw-r--r--src/clients/inquisitio/text_matcher.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/clients/inquisitio/text_matcher.cc b/src/clients/inquisitio/text_matcher.cc
index c913b5897..dd096fcfe 100644
--- a/src/clients/inquisitio/text_matcher.cc
+++ b/src/clients/inquisitio/text_matcher.cc
@@ -18,6 +18,7 @@
*/
#include "text_matcher.hh"
+#include <string.h>
using namespace paludis;
using namespace inquisitio;
@@ -42,9 +43,9 @@ TextMatcher::TextMatcher(const std::string & s) :
}
bool
-TextMatcher::operator() (const std::string & s, const MatcherOptions &) const
+TextMatcher::operator() (const std::string & s) const
{
- return std::string::npos != s.find(_imp->pattern);
+ return 0 != strcasestr(s.c_str(), _imp->pattern.c_str());
}
TextMatcher::~TextMatcher()