117 references to FunctionType
System.Private.Xml (117)
System\Xml\XPath\Internal\BooleanExpr.cs (2)
23opnd1 = new BooleanFunctions(Function.FunctionType.FuncBoolean, opnd1); 27opnd2 = new BooleanFunctions(Function.FunctionType.FuncBoolean, opnd2);
System\Xml\XPath\Internal\BooleanFunctions.cs (8)
9using FT = MS.Internal.Xml.XPath.Function.FunctionType; 16private readonly FT _funcType; 18public BooleanFunctions(FT funcType, Query? arg) 37FT.FuncBoolean => toBoolean(nodeIterator), 38FT.FuncNot => Not(nodeIterator), 39FT.FuncTrue => true, 40FT.FuncFalse => false, 41FT.FuncLang => Lang(nodeIterator!),
System\Xml\XPath\Internal\Function.cs (5)
44private readonly FunctionType _functionType; 50public Function(FunctionType ftype, List<AstNode> argumentList) 58_functionType = FunctionType.FuncUserDefined; 64public Function(FunctionType ftype, AstNode arg) 81public FunctionType TypeOfFunction { get { return _functionType; } }
System\Xml\XPath\Internal\NodeFunctions.cs (9)
7using FT = MS.Internal.Xml.XPath.Function.FunctionType; 14private readonly FT _funcType; 17public NodeFunctions(FT funcType, Query? arg) 45case FT.FuncPosition: 47case FT.FuncLast: 49case FT.FuncNameSpaceUri: 56case FT.FuncLocalName: 63case FT.FuncName: 70case FT.FuncCount:
System\Xml\XPath\Internal\NumberFunctions.cs (8)
9using FT = MS.Internal.Xml.XPath.Function.FunctionType; 16private readonly FT _ftype; 18public NumberFunctions(FT ftype, Query? arg) 46FT.FuncNumber => (object)Number(nodeIterator), 47FT.FuncSum => Sum(nodeIterator), 48FT.FuncFloor => Floor(nodeIterator), 49FT.FuncCeiling => Ceiling(nodeIterator), 50FT.FuncRound => Round(nodeIterator),
System\Xml\XPath\Internal\NumericExpr.cs (2)
27opnd1 = new NumberFunctions(Function.FunctionType.FuncNumber, opnd1); 31opnd2 = new NumberFunctions(Function.FunctionType.FuncNumber, opnd2);
System\Xml\XPath\Internal\QueryBuilder.cs (32)
9using FT = MS.Internal.Xml.XPath.Function.FunctionType; 261prevCond = new LogicalExpr(Operator.Op.EQ, new NodeFunctions(FT.FuncPosition, null), prevCond); 355case FT.FuncLast: 359case FT.FuncPosition: 363case FT.FuncCount: 364return new NodeFunctions(FT.FuncCount, 367case FT.FuncID: 371case FT.FuncLocalName: 372case FT.FuncNameSpaceUri: 373case FT.FuncName: 384case FT.FuncString: 385case FT.FuncConcat: 386case FT.FuncStartsWith: 387case FT.FuncContains: 388case FT.FuncSubstringBefore: 389case FT.FuncSubstringAfter: 390case FT.FuncSubstring: 391case FT.FuncStringLength: 392case FT.FuncNormalize: 393case FT.FuncTranslate: 395case FT.FuncNumber: 396case FT.FuncSum: 397case FT.FuncFloor: 398case FT.FuncCeiling: 399case FT.FuncRound: 408return new NumberFunctions(Function.FunctionType.FuncNumber, null); 410case FT.FuncTrue: 411case FT.FuncFalse: 413case FT.FuncNot: 414case FT.FuncLang: 415case FT.FuncBoolean: 419case FT.FuncUserDefined:
System\Xml\XPath\Internal\SortQuery.cs (1)
180evalQuery = new StringFunctions(Function.FunctionType.FuncString, new Query[] { evalQuery });
System\Xml\XPath\Internal\StringFunctions.cs (15)
17private readonly Function.FunctionType _funcType; 20public StringFunctions(Function.FunctionType funcType, IList<Query> argList) 50Function.FunctionType.FuncString => toString(nodeIterator), 51Function.FunctionType.FuncConcat => Concat(nodeIterator), 52Function.FunctionType.FuncStartsWith => StartsWith(nodeIterator), 53Function.FunctionType.FuncContains => Contains(nodeIterator), 54Function.FunctionType.FuncSubstringBefore => SubstringBefore(nodeIterator), 55Function.FunctionType.FuncSubstringAfter => SubstringAfter(nodeIterator), 56Function.FunctionType.FuncSubstring => Substring(nodeIterator), 57Function.FunctionType.FuncStringLength => StringLength(nodeIterator), 58Function.FunctionType.FuncNormalize => Normalize(nodeIterator), 59Function.FunctionType.FuncTranslate => Translate(nodeIterator), 103if (_funcType == Function.FunctionType.FuncStringLength) 108_funcType == Function.FunctionType.FuncStartsWith || 109_funcType == Function.FunctionType.FuncContains
System\Xml\XPath\Internal\XPathParser.cs (35)
532if (pi.FType == Function.FunctionType.FuncConcat) 539arg = new Function(Function.FunctionType.FuncString, arg); 571arg = new Function(Function.FunctionType.FuncString, arg); 574arg = new Function(Function.FunctionType.FuncNumber, arg); 577arg = new Function(Function.FunctionType.FuncBoolean, arg); 792private readonly Function.FunctionType _ftype; 797public Function.FunctionType FType { get { return _ftype; } } 802internal ParamInfo(Function.FunctionType ftype, int minargs, int maxargs, XPathResultType[] argTypes) 815table.Add("last", new ParamInfo(Function.FunctionType.FuncLast, 0, 0, s_temparray1)); 816table.Add("position", new ParamInfo(Function.FunctionType.FuncPosition, 0, 0, s_temparray1)); 817table.Add("name", new ParamInfo(Function.FunctionType.FuncName, 0, 1, s_temparray2)); 818table.Add("namespace-uri", new ParamInfo(Function.FunctionType.FuncNameSpaceUri, 0, 1, s_temparray2)); 819table.Add("local-name", new ParamInfo(Function.FunctionType.FuncLocalName, 0, 1, s_temparray2)); 820table.Add("count", new ParamInfo(Function.FunctionType.FuncCount, 1, 1, s_temparray2)); 821table.Add("id", new ParamInfo(Function.FunctionType.FuncID, 1, 1, s_temparray3)); 822table.Add("string", new ParamInfo(Function.FunctionType.FuncString, 0, 1, s_temparray3)); 823table.Add("concat", new ParamInfo(Function.FunctionType.FuncConcat, 2, 100, s_temparray4)); 824table.Add("starts-with", new ParamInfo(Function.FunctionType.FuncStartsWith, 2, 2, s_temparray5)); 825table.Add("contains", new ParamInfo(Function.FunctionType.FuncContains, 2, 2, s_temparray5)); 826table.Add("substring-before", new ParamInfo(Function.FunctionType.FuncSubstringBefore, 2, 2, s_temparray5)); 827table.Add("substring-after", new ParamInfo(Function.FunctionType.FuncSubstringAfter, 2, 2, s_temparray5)); 828table.Add("substring", new ParamInfo(Function.FunctionType.FuncSubstring, 2, 3, s_temparray6)); 829table.Add("string-length", new ParamInfo(Function.FunctionType.FuncStringLength, 0, 1, s_temparray4)); 830table.Add("normalize-space", new ParamInfo(Function.FunctionType.FuncNormalize, 0, 1, s_temparray4)); 831table.Add("translate", new ParamInfo(Function.FunctionType.FuncTranslate, 3, 3, s_temparray7)); 832table.Add("boolean", new ParamInfo(Function.FunctionType.FuncBoolean, 1, 1, s_temparray3)); 833table.Add("not", new ParamInfo(Function.FunctionType.FuncNot, 1, 1, s_temparray8)); 834table.Add("true", new ParamInfo(Function.FunctionType.FuncTrue, 0, 0, s_temparray8)); 835table.Add("false", new ParamInfo(Function.FunctionType.FuncFalse, 0, 0, s_temparray8)); 836table.Add("lang", new ParamInfo(Function.FunctionType.FuncLang, 1, 1, s_temparray4)); 837table.Add("number", new ParamInfo(Function.FunctionType.FuncNumber, 0, 1, s_temparray3)); 838table.Add("sum", new ParamInfo(Function.FunctionType.FuncSum, 1, 1, s_temparray2)); 839table.Add("floor", new ParamInfo(Function.FunctionType.FuncFloor, 1, 1, s_temparray9)); 840table.Add("ceiling", new ParamInfo(Function.FunctionType.FuncCeiling, 1, 1, s_temparray9)); 841table.Add("round", new ParamInfo(Function.FunctionType.FuncRound, 1, 1, s_temparray9));