예제 #1
0
        private bool MatchesFilter(BaseItem item)
        {
            if (!item.NameWordsSpecified)
            {
                return false;
            }

            return MatchesPattern(item);
        }
예제 #2
0
 private bool MatchesPattern(BaseItem item)
 {
     var matchEvaluator = new FilterMatchEvaluator(item, FilterWords);
     matchEvaluator.Evaluate();
     return item.MatchScore > 0;
 }
 public FilterMatchEvaluator(BaseItem item, string[] filterWords)
 {
     _item = item;
     _filterWords = filterWords;
 }