diff options
Diffstat (limited to 'indexer')
-rw-r--r-- | indexer/ftypes_matcher.hpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/indexer/ftypes_matcher.hpp b/indexer/ftypes_matcher.hpp index 9774074d0f..a2209ed3ee 100644 --- a/indexer/ftypes_matcher.hpp +++ b/indexer/ftypes_matcher.hpp @@ -170,6 +170,17 @@ public: static std::set<std::pair<std::string, std::string>> const kTypesForWiki; DECLARE_CHECKER_INSTANCE(WikiChecker); + + template <typename Ft> + bool NeedFeature(Ft & feature) const + { + bool need = true; + feature.ForEachType([&](uint32_t type) { + if (need && !IsMatched(type)) + need = false; + }); + return need; + } }; class IsPlaceChecker : public BaseChecker |