示例#1
0
 public override BasicObject Equal(BasicObject r)
 {
     if (r is Text)
     {
         return(new Bool(string.Compare(((Text)r).Value, Value, true) == 0));
     }
     else if (r != null)
     {
         return(new Bool(string.Compare(r.ToString(), Value, true) == 0));
     }
     return(new Bool(false));
 }
示例#2
0
 public override BasicObject Like(BasicObject r)
 {
     System.Text.RegularExpressions.Regex e = new System.Text.RegularExpressions.Regex(r.ToString());
     return(new Bool(e.Match(Value).Success));
 }
示例#3
0
 public override BasicObject Plus(BasicObject r)
 {
     return(new Text(Value + r.ToString()));
 }