Exemplo n.º 1
0
        // Token: 0x06000052 RID: 82 RVA: 0x00003DFC File Offset: 0x00001FFC
        public override bool Evaluate(LogCursor row)
        {
            string strA   = this.Left.GetValue(row) as string;
            string strB   = this.Right.GetValue(row) as string;
            int    result = string.Compare(strA, strB, this.IgnoreCase ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal);

            return(base.ApplyOperator(result));
        }
Exemplo n.º 2
0
 // Token: 0x0600011F RID: 287 RVA: 0x00008D18 File Offset: 0x00006F18
 public SearchContext(LogEvaluator evaluator, LogCursor cursor)
 {
     this.evaluator = evaluator;
     if (evaluator.Searches != null && evaluator.Searches.Count != 0)
     {
         this.searchEnumerator = evaluator.Searches.GetEnumerator();
         this.searchEnumerator.MoveNext();
     }
     this.cursor = cursor;
 }
Exemplo n.º 3
0
 // Token: 0x06000036 RID: 54 RVA: 0x00003AD4 File Offset: 0x00001CD4
 public override bool Evaluate(LogCursor row)
 {
     for (int i = 0; i < this.Conditions.Count; i++)
     {
         if (!this.Conditions[i].Evaluate(row))
         {
             return(false);
         }
     }
     return(true);
 }
        // Token: 0x06000046 RID: 70 RVA: 0x00003BF4 File Offset: 0x00001DF4
        public override object GetValue(LogCursor row)
        {
            object field = row.GetField(this.Index);

            if (this.Index == 10)
            {
                string messageId = field as string;
                return(CsvFieldCache.NormalizeMessageID(messageId));
            }
            return(field);
        }
Exemplo n.º 5
0
        // Token: 0x0600005C RID: 92 RVA: 0x00003FB0 File Offset: 0x000021B0
        public override bool Evaluate(LogCursor row)
        {
            object value = this.Operand.GetValue(row);

            if (value == null)
            {
                return(true);
            }
            string text = value as string;

            return(text != null && text.Length == 0);
        }
        // Token: 0x06000057 RID: 87 RVA: 0x00003EC8 File Offset: 0x000020C8
        public override bool Evaluate(LogCursor row)
        {
            string text  = this.Left.GetValue(row) as string;
            string text2 = this.Right.GetValue(row) as string;

            if (this.IgnoreCase)
            {
                if (!this.Left.AssumeUppercase)
                {
                    text = text.ToUpperInvariant();
                }
                if (!this.Right.AssumeUppercase)
                {
                    text2 = text2.ToUpperInvariant();
                }
            }
            return(text.EndsWith(text2));
        }
        // Token: 0x0600004F RID: 79 RVA: 0x00003D3C File Offset: 0x00001F3C
        public override bool Evaluate(LogCursor row)
        {
            IComparable comparable = this.Left.GetValue(row) as IComparable;
            object      value      = this.Right.GetValue(row);

            if (comparable == null)
            {
                if (value == null)
                {
                    return(this.Operator == LogComparisonOperator.Equals);
                }
                return(this.Operator == LogComparisonOperator.NotEquals);
            }
            else
            {
                if (value == null)
                {
                    return(this.Operator == LogComparisonOperator.NotEquals);
                }
                return(this.ApplyOperator(comparable.CompareTo(value)));
            }
        }
Exemplo n.º 8
0
        // Token: 0x0600004A RID: 74 RVA: 0x00003C5C File Offset: 0x00001E5C
        public override bool Evaluate(LogCursor row)
        {
            Array array = row.GetField(this.FieldIndex) as Array;

            if (array == null)
            {
                return(false);
            }
            if (this.Condition == null)
            {
                return(false);
            }
            for (int i = 0; i < array.Length; i++)
            {
                this.Variable.Value = array.GetValue(i);
                if (this.Condition.Evaluate(row))
                {
                    return(true);
                }
            }
            return(false);
        }
Exemplo n.º 9
0
 // Token: 0x06000040 RID: 64 RVA: 0x00003B83 File Offset: 0x00001D83
 public override object GetValue(LogCursor row)
 {
     return(this.Value);
 }
Exemplo n.º 10
0
 // Token: 0x06000033 RID: 51 RVA: 0x00003AB4 File Offset: 0x00001CB4
 public override bool Evaluate(LogCursor row)
 {
     return(false);
 }
 // Token: 0x0600003B RID: 59 RVA: 0x00003B62 File Offset: 0x00001D62
 public override bool Evaluate(LogCursor row)
 {
     return(!this.Condition.Evaluate(row));
 }
Exemplo n.º 12
0
 // Token: 0x06000029 RID: 41
 public abstract bool Evaluate(LogCursor row);
Exemplo n.º 13
0
 // Token: 0x0600003D RID: 61
 public abstract object GetValue(LogCursor row);