示例#1
0
        private static bool cmpRtfBoolE(Operator.Op op, object val1, object val2)
        {
            bool n1 = BooleanFunctions.toBoolean(Rtf(val1));
            bool n2 = (bool)val2;

            return(cmpBoolBoolE(op, n1, n2));
        }
示例#2
0
        private static bool cmpBoolStringE(Operator.Op op, object val1, object val2)
        {
            bool n1 = (bool)val1;
            bool n2 = BooleanFunctions.toBoolean((string)val2);

            return(cmpBoolBoolE(op, n1, n2));
        }
示例#3
0
        private static bool cmpBoolNumberE(Operator.Op op, object val1, object val2)
        {
            bool n1 = (bool)val1;
            bool n2 = BooleanFunctions.toBoolean((double)val2);

            return(cmpBoolBoolE(op, n1, n2));
        }
示例#4
0
 public BooleanExpr(Operator.Op op, Query opnd1, Query opnd2)
 {
     Debug.Assert(op == Operator.Op.AND || op == Operator.Op.OR);
     Debug.Assert(opnd1 != null && opnd2 != null);
     if (opnd1.StaticType != XPathResultType.Boolean)
     {
         opnd1 = new BooleanFunctions(Function.FunctionType.FuncBoolean, opnd1);
     }
     if (opnd2.StaticType != XPathResultType.Boolean)
     {
         opnd2 = new BooleanFunctions(Function.FunctionType.FuncBoolean, opnd2);
     }
     _opnd1 = opnd1;
     _opnd2 = opnd2;
     _isOr  = (op == Operator.Op.OR);
 }
示例#5
0
 private BooleanFunctions(BooleanFunctions other) : base(other)
 {
     _arg      = Clone(other._arg);
     _funcType = other._funcType;
 }
 private BooleanFunctions(BooleanFunctions other) : base(other)
 {
     this.arg      = Clone(other.arg);
     this.funcType = other.funcType;
 }