예제 #1
0
 public static bool matches(filter.match item, IEnumerable<info_type> cols, search_for search) {
     // 1.6.27+ faster way to find out if the message is contained - just look at the full message (instead of looking at each part)
     if (matches_cell(item.line.raw_full_msg(), search))
         return cols.Any(x => matches_cell(item.line.part(x), search));
     else
         return false;
 }
예제 #2
0
 // returns true if at least one "include" filter matches this (or, if we don't have any include filters)
 public bool has_matches_via_include(filter f) {
     if (!f.has_include_filters)
         // in this case, we match all
         return true;
     if (matches.Count == 0)
         return false;
     // it needs to match at least one include filter!
     for ( int idx = 0; idx < matches.Count; ++idx)
         if ( matches[idx])
             if (f.is_include_filter(idx))
                 return true;
     return false;
 }
예제 #3
0
 // returns true if at least one "include" filter matches this (or, if we don't have any include filters)
 public bool has_matches_via_include(filter f)
 {
     if (!f.has_include_filters)
     {
         // in this case, we match all
         return(true);
     }
     if (matches.Count == 0)
     {
         return(false);
     }
     // it needs to match at least one include filter!
     for (int idx = 0; idx < matches.Count; ++idx)
     {
         if (matches[idx])
         {
             if (f.is_include_filter(idx))
             {
                 return(true);
             }
         }
     }
     return(false);
 }
예제 #4
0
 public static bool matches(filter.match item, search_for search) {
     if (search.all_columns) 
         return matches(item, info_type_io.searchable, search);
     else
         return matches_cell(item.line.part(info_type.msg), search);
 }
예제 #5
0
 public static bool matches(filter.match item, IEnumerable<info_type> cols, search_for search) {
     return cols.Any(x => matches_cell(item.line.part(x), search));
 }
예제 #6
0
 public static bool matches(filter.match item, IEnumerable<info_type> cols, search_for search) {
     return matches(item.line, cols, search);
 }