8 instantiations of Function
System.Private.Xml (8)
System\Xml\XPath\Internal\XPathParser.cs (8)
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); 584return new Function(pi.FType, argList); 587return new Function(prefix, name, argList); 668return new Function(pi.FType, argList); 682return new Function("", "key", argList);
66 references to Function
System.Private.Xml (66)
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 (1)
9using FT = MS.Internal.Xml.XPath.Function.FunctionType;
System\Xml\XPath\Internal\NodeFunctions.cs (2)
7using FT = MS.Internal.Xml.XPath.Function.FunctionType; 96public override XPathResultType StaticType { get { return Function.ReturnTypes[(int)_funcType]; } }
System\Xml\XPath\Internal\NumberFunctions.cs (1)
9using FT = MS.Internal.Xml.XPath.Function.FunctionType;
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 (4)
9using FT = MS.Internal.Xml.XPath.Function.FunctionType; 349private Query ProcessFunction(Function root, out Props props) 408return new NumberFunctions(Function.FunctionType.FuncNumber, null); 485result = ProcessFunction((Function)root, out props);
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 (38)
502private Function ParseMethod(AstNode? qyInput) 532if (pi.FType == Function.FunctionType.FuncConcat) 539arg = new Function(Function.FunctionType.FuncString, arg); 565if (!(arg is Variable) && !(arg is Function && arg.ReturnType == XPathResultType.Any)) 571arg = new Function(Function.FunctionType.FuncString, arg); 574arg = new Function(Function.FunctionType.FuncNumber, arg); 577arg = new Function(Function.FunctionType.FuncBoolean, arg); 653private Function? ParseIdKeyPattern() 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));