]> git.lyx.org Git - features.git/blobdiff - src/support/lstrings.h
to much stuff for my liking...
[features.git] / src / support / lstrings.h
index 6be7f9ddaa3823d49652b7b7dd440f756f5b7132..72001459ad8a7af7d14a4f615a4d3ecc428834f7 100644 (file)
@@ -145,6 +145,19 @@ bool contains(string const & a, char b);
 ///
 bool contains(char const * a, char const * b);
 
+/// This should probably we rewritten to be more general.
+class contains_functor {
+public:
+       typedef string first_argument_type;
+       typedef string second_argument_type;
+       typedef bool result_type;
+       
+       bool operator()(string const & haystack, string const & needle) const {
+               return contains(haystack, needle);
+       }
+};
+
+
 ///
 bool containsOnly(string const &, char const *);