Add basic Collator::find() method.
[dcpomatic.git] / src / lib / collator.h
index 3762f240013fe83847ca212f05d04c921304e8eb..1768c43c09595d3ef880b79b67549343a7ea5c28 100644 (file)
@@ -38,7 +38,8 @@ public:
        Collator(Collator const &) = delete;
        Collator& operator=(Collator const&) = delete;
 
-       int compare(std::string const& utf8_a, std::string const& utf8_b);
+       int compare(std::string const& utf8_a, std::string const& utf8_b) const;
+       bool find(std::string pattern, std::string text) const;
 
 private:
        UCollator* _collator = nullptr;