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)); }
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)); }
public override BasicObject Plus(BasicObject r) { return(new Text(Value + r.ToString())); }