part() public method

public part ( info_type i ) : string
i info_type
return string
Beispiel #1
0
 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);
     }
 }
Beispiel #2
0
        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);
        }
Beispiel #3
0
        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));
        }
Beispiel #4
0
 private string line_part(line l)
 {
     return(l.part(part_type_io.to_info_type(part)));
 }
Beispiel #5
0
 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);
 }
Beispiel #6
0
 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;
 }
Beispiel #7
0
 private string line_part(line l) {
     return l.part(part_type_io.to_info_type(part));
 }
Beispiel #8
0
 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);
 }
Beispiel #9
0
        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));
        }
Beispiel #10
0
 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;
 }