public static bool matches(line l, 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(l.raw_full_msg(), search)) { return(cols.Any(x => matches_cell(l.part(x), search))); } else { return(false); } }
private bool matches_case_insensitive_any_column(line l) { string line_part = l.raw_full_msg().ToLower(); if (compare(line_part, lo_text, lo_words)) { // we need an extra step, so that we don't mistakenly match the text in the time/date column, for instance foreach (var type in info_type_io.searchable) { if (compare(l.part(type).ToLower(), lo_text, lo_words)) { return(true); } } } return(false); }
private List <match_index> matches_case_insensitive_with_indexes(line l, info_type type) { string line_part = l.part(type).ToLower(); return(compare_with_indexes(line_part, lo_text, lo_words)); }
private string line_part(line l) { return(l.part(part_type_io.to_info_type(part))); }
private List<match_index> matches_case_insensitive_with_indexes(line l, info_type type) { string line_part = l.part(type).ToLower(); return compare_with_indexes(line_part, lo_text, lo_words, type); }
private bool matches_case_insensitive_any_column(line l) { string line_part = l.raw_full_msg().ToLower(); if ( compare(line_part, lo_text, lo_words)) // we need an extra step, so that we don't mistakenly match the text in the time/date column, for instance foreach ( var type in info_type_io.searchable) if (compare(l.part(type).ToLower(), lo_text, lo_words)) return true; return false; }
private string line_part(line l) { return l.part(part_type_io.to_info_type(part)); }
private List<match_index> matches_case_sensitive_with_indexes(line l, info_type type) { string line_part = l.part(type); return compare_with_indexes(line_part, text, words); }
private List <match_index> matches_case_sensitive_with_indexes(line l, info_type type) { string line_part = l.part(type); return(compare_with_indexes(line_part, text, words, type)); }
public static bool matches(line l, 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(l.raw_full_msg(), search)) return cols.Any(x => matches_cell(l.part(x), search)); else return false; }