8 instantiations of Function
System.Private.Xml (8)
System\Xml\XPath\Internal\XPathParser.cs (8)
539
arg = new
Function
(Function.FunctionType.FuncString, arg);
571
arg = new
Function
(Function.FunctionType.FuncString, arg);
574
arg = new
Function
(Function.FunctionType.FuncNumber, arg);
577
arg = new
Function
(Function.FunctionType.FuncBoolean, arg);
584
return new
Function
(pi.FType, argList);
587
return new
Function
(prefix, name, argList);
668
return new
Function
(pi.FType, argList);
682
return new
Function
("", "key", argList);
66 references to Function
System.Private.Xml (66)
System\Xml\XPath\Internal\BooleanExpr.cs (2)
23
opnd1 = new BooleanFunctions(
Function
.FunctionType.FuncBoolean, opnd1);
27
opnd2 = new BooleanFunctions(
Function
.FunctionType.FuncBoolean, opnd2);
System\Xml\XPath\Internal\BooleanFunctions.cs (1)
9
using FT = MS.Internal.Xml.XPath.
Function
.FunctionType;
System\Xml\XPath\Internal\NodeFunctions.cs (2)
7
using FT = MS.Internal.Xml.XPath.
Function
.FunctionType;
96
public override XPathResultType StaticType { get { return
Function
.ReturnTypes[(int)_funcType]; } }
System\Xml\XPath\Internal\NumberFunctions.cs (1)
9
using FT = MS.Internal.Xml.XPath.
Function
.FunctionType;
System\Xml\XPath\Internal\NumericExpr.cs (2)
27
opnd1 = new NumberFunctions(
Function
.FunctionType.FuncNumber, opnd1);
31
opnd2 = new NumberFunctions(
Function
.FunctionType.FuncNumber, opnd2);
System\Xml\XPath\Internal\QueryBuilder.cs (4)
9
using FT = MS.Internal.Xml.XPath.
Function
.FunctionType;
349
private Query ProcessFunction(
Function
root, out Props props)
408
return new NumberFunctions(
Function
.FunctionType.FuncNumber, null);
485
result = ProcessFunction((
Function
)root, out props);
System\Xml\XPath\Internal\SortQuery.cs (1)
180
evalQuery = new StringFunctions(
Function
.FunctionType.FuncString, new Query[] { evalQuery });
System\Xml\XPath\Internal\StringFunctions.cs (15)
17
private readonly
Function
.FunctionType _funcType;
20
public StringFunctions(
Function
.FunctionType funcType, IList<Query> argList)
50
Function
.FunctionType.FuncString => toString(nodeIterator),
51
Function
.FunctionType.FuncConcat => Concat(nodeIterator),
52
Function
.FunctionType.FuncStartsWith => StartsWith(nodeIterator),
53
Function
.FunctionType.FuncContains => Contains(nodeIterator),
54
Function
.FunctionType.FuncSubstringBefore => SubstringBefore(nodeIterator),
55
Function
.FunctionType.FuncSubstringAfter => SubstringAfter(nodeIterator),
56
Function
.FunctionType.FuncSubstring => Substring(nodeIterator),
57
Function
.FunctionType.FuncStringLength => StringLength(nodeIterator),
58
Function
.FunctionType.FuncNormalize => Normalize(nodeIterator),
59
Function
.FunctionType.FuncTranslate => Translate(nodeIterator),
103
if (_funcType ==
Function
.FunctionType.FuncStringLength)
108
_funcType ==
Function
.FunctionType.FuncStartsWith ||
109
_funcType ==
Function
.FunctionType.FuncContains
System\Xml\XPath\Internal\XPathParser.cs (38)
502
private
Function
ParseMethod(AstNode? qyInput)
532
if (pi.FType ==
Function
.FunctionType.FuncConcat)
539
arg = new Function(
Function
.FunctionType.FuncString, arg);
565
if (!(arg is Variable) && !(arg is
Function
&& arg.ReturnType == XPathResultType.Any))
571
arg = new Function(
Function
.FunctionType.FuncString, arg);
574
arg = new Function(
Function
.FunctionType.FuncNumber, arg);
577
arg = new Function(
Function
.FunctionType.FuncBoolean, arg);
653
private
Function
? ParseIdKeyPattern()
792
private readonly
Function
.FunctionType _ftype;
797
public
Function
.FunctionType FType { get { return _ftype; } }
802
internal ParamInfo(
Function
.FunctionType ftype, int minargs, int maxargs, XPathResultType[] argTypes)
815
table.Add("last", new ParamInfo(
Function
.FunctionType.FuncLast, 0, 0, s_temparray1));
816
table.Add("position", new ParamInfo(
Function
.FunctionType.FuncPosition, 0, 0, s_temparray1));
817
table.Add("name", new ParamInfo(
Function
.FunctionType.FuncName, 0, 1, s_temparray2));
818
table.Add("namespace-uri", new ParamInfo(
Function
.FunctionType.FuncNameSpaceUri, 0, 1, s_temparray2));
819
table.Add("local-name", new ParamInfo(
Function
.FunctionType.FuncLocalName, 0, 1, s_temparray2));
820
table.Add("count", new ParamInfo(
Function
.FunctionType.FuncCount, 1, 1, s_temparray2));
821
table.Add("id", new ParamInfo(
Function
.FunctionType.FuncID, 1, 1, s_temparray3));
822
table.Add("string", new ParamInfo(
Function
.FunctionType.FuncString, 0, 1, s_temparray3));
823
table.Add("concat", new ParamInfo(
Function
.FunctionType.FuncConcat, 2, 100, s_temparray4));
824
table.Add("starts-with", new ParamInfo(
Function
.FunctionType.FuncStartsWith, 2, 2, s_temparray5));
825
table.Add("contains", new ParamInfo(
Function
.FunctionType.FuncContains, 2, 2, s_temparray5));
826
table.Add("substring-before", new ParamInfo(
Function
.FunctionType.FuncSubstringBefore, 2, 2, s_temparray5));
827
table.Add("substring-after", new ParamInfo(
Function
.FunctionType.FuncSubstringAfter, 2, 2, s_temparray5));
828
table.Add("substring", new ParamInfo(
Function
.FunctionType.FuncSubstring, 2, 3, s_temparray6));
829
table.Add("string-length", new ParamInfo(
Function
.FunctionType.FuncStringLength, 0, 1, s_temparray4));
830
table.Add("normalize-space", new ParamInfo(
Function
.FunctionType.FuncNormalize, 0, 1, s_temparray4));
831
table.Add("translate", new ParamInfo(
Function
.FunctionType.FuncTranslate, 3, 3, s_temparray7));
832
table.Add("boolean", new ParamInfo(
Function
.FunctionType.FuncBoolean, 1, 1, s_temparray3));
833
table.Add("not", new ParamInfo(
Function
.FunctionType.FuncNot, 1, 1, s_temparray8));
834
table.Add("true", new ParamInfo(
Function
.FunctionType.FuncTrue, 0, 0, s_temparray8));
835
table.Add("false", new ParamInfo(
Function
.FunctionType.FuncFalse, 0, 0, s_temparray8));
836
table.Add("lang", new ParamInfo(
Function
.FunctionType.FuncLang, 1, 1, s_temparray4));
837
table.Add("number", new ParamInfo(
Function
.FunctionType.FuncNumber, 0, 1, s_temparray3));
838
table.Add("sum", new ParamInfo(
Function
.FunctionType.FuncSum, 1, 1, s_temparray2));
839
table.Add("floor", new ParamInfo(
Function
.FunctionType.FuncFloor, 1, 1, s_temparray9));
840
table.Add("ceiling", new ParamInfo(
Function
.FunctionType.FuncCeiling, 1, 1, s_temparray9));
841
table.Add("round", new ParamInfo(
Function
.FunctionType.FuncRound, 1, 1, s_temparray9));