コード例 #1
0
ファイル: string_search.cs プロジェクト: bestwpw/logwizard
 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
ファイル: filter.cs プロジェクト: printedheart/logwizard
 // 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
ファイル: string_search.cs プロジェクト: ink0gnitas/logwizard
 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
ファイル: string_search.cs プロジェクト: ink0gnitas/logwizard
 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
ファイル: string_search.cs プロジェクト: jtorjo/logwizard
 public static bool matches(filter.match item, IEnumerable<info_type> cols, search_for search) {
     return matches(item.line, cols, search);
 }