8 instantiations of Function
System.Xml (8)
System\Xml\XPath\Internal\XPathParser.cs (8)
473
arg = new
Function
(Function.FunctionType.FuncString, arg);
498
arg = new
Function
(Function.FunctionType.FuncString, arg);
501
arg = new
Function
(Function.FunctionType.FuncNumber, arg);
504
arg = new
Function
(Function.FunctionType.FuncBoolean, arg);
511
return new
Function
(pi.FType, argList);
514
return new
Function
(prefix, name, argList);
583
return new
Function
(pi.FType, argList);
596
return new
Function
("", "key", argList);
64 references to Function
System.Xml (64)
System\Xml\XPath\Internal\BooleanExpr.cs (2)
25
opnd1 = new BooleanFunctions(
Function
.FunctionType.FuncBoolean, opnd1);
28
opnd2 = new BooleanFunctions(
Function
.FunctionType.FuncBoolean, opnd2);
System\Xml\XPath\Internal\BooleanFunctions.cs (1)
15
using FT = MS.Internal.Xml.XPath.
Function
.FunctionType;
System\Xml\XPath\Internal\NodeFunctions.cs (2)
15
using FT = MS.Internal.Xml.XPath.
Function
.FunctionType;
88
public override XPathResultType StaticType { get { return
Function
.ReturnTypes[(int)funcType]; } }
System\Xml\XPath\Internal\NumberFunctions.cs (1)
16
using FT = MS.Internal.Xml.XPath.
Function
.FunctionType;
System\Xml\XPath\Internal\NumericExpr.cs (2)
29
opnd1 = new NumberFunctions(
Function
.FunctionType.FuncNumber, opnd1);
32
opnd2 = new NumberFunctions(
Function
.FunctionType.FuncNumber, opnd2);
System\Xml\XPath\Internal\QueryBuilder.cs (4)
15
using FT =
Function
.FunctionType;
301
private Query ProcessFunction(
Function
root, out Props props) {
352
return new NumberFunctions(
Function
.FunctionType.FuncNumber, null);
420
result = ProcessFunction((
Function
)root, out props);
System\Xml\XPath\Internal\SortQuery.cs (1)
166
evalQuery = new StringFunctions(
Function
.FunctionType.FuncString, new Query[] { evalQuery });
System\Xml\XPath\Internal\StringFunctions.cs (15)
19
Function
.FunctionType funcType;
22
public StringFunctions(
Function
.FunctionType funcType, IList<Query> argList) {
45
case
Function
.FunctionType.FuncString : return toString(nodeIterator);
46
case
Function
.FunctionType.FuncConcat : return Concat(nodeIterator);
47
case
Function
.FunctionType.FuncStartsWith : return StartsWith(nodeIterator);
48
case
Function
.FunctionType.FuncContains : return Contains(nodeIterator);
49
case
Function
.FunctionType.FuncSubstringBefore : return SubstringBefore(nodeIterator);
50
case
Function
.FunctionType.FuncSubstringAfter : return SubstringAfter(nodeIterator);
51
case
Function
.FunctionType.FuncSubstring : return Substring(nodeIterator);
52
case
Function
.FunctionType.FuncStringLength : return StringLength(nodeIterator);
53
case
Function
.FunctionType.FuncNormalize : return Normalize(nodeIterator);
54
case
Function
.FunctionType.FuncTranslate : return Translate(nodeIterator);
90
if (funcType ==
Function
.FunctionType.FuncStringLength) {
94
funcType ==
Function
.FunctionType.FuncStartsWith ||
95
funcType ==
Function
.FunctionType.FuncContains
System\Xml\XPath\Internal\XPathParser.cs (36)
469
if (pi.FType ==
Function
.FunctionType.FuncConcat) {
473
arg = new Function(
Function
.FunctionType.FuncString, arg);
493
if (!(arg is Variable) && !(arg is
Function
&& arg.ReturnType == XPathResultType.Any) ) {
498
arg = new Function(
Function
.FunctionType.FuncString, arg);
501
arg = new Function(
Function
.FunctionType.FuncNumber, arg);
504
arg = new Function(
Function
.FunctionType.FuncBoolean, arg);
691
private
Function
.FunctionType ftype;
696
public
Function
.FunctionType FType { get { return this.ftype; } }
701
internal ParamInfo(
Function
.FunctionType ftype, int minargs, int maxargs, XPathResultType[] argTypes) {
712
table.Add("last" , new ParamInfo(
Function
.FunctionType.FuncLast , 0, 0, temparray1));
713
table.Add("position" , new ParamInfo(
Function
.FunctionType.FuncPosition , 0, 0, temparray1));
714
table.Add("name" , new ParamInfo(
Function
.FunctionType.FuncName , 0, 1, temparray2));
715
table.Add("namespace-uri" , new ParamInfo(
Function
.FunctionType.FuncNameSpaceUri , 0, 1, temparray2));
716
table.Add("local-name" , new ParamInfo(
Function
.FunctionType.FuncLocalName , 0, 1, temparray2));
717
table.Add("count" , new ParamInfo(
Function
.FunctionType.FuncCount , 1, 1, temparray2));
718
table.Add("id" , new ParamInfo(
Function
.FunctionType.FuncID , 1, 1, temparray3));
719
table.Add("string" , new ParamInfo(
Function
.FunctionType.FuncString , 0, 1, temparray3));
720
table.Add("concat" , new ParamInfo(
Function
.FunctionType.FuncConcat , 2, 100, temparray4));
721
table.Add("starts-with" , new ParamInfo(
Function
.FunctionType.FuncStartsWith , 2, 2, temparray5));
722
table.Add("contains" , new ParamInfo(
Function
.FunctionType.FuncContains , 2, 2, temparray5));
723
table.Add("substring-before" , new ParamInfo(
Function
.FunctionType.FuncSubstringBefore, 2, 2, temparray5));
724
table.Add("substring-after" , new ParamInfo(
Function
.FunctionType.FuncSubstringAfter , 2, 2, temparray5));
725
table.Add("substring" , new ParamInfo(
Function
.FunctionType.FuncSubstring , 2, 3, temparray6));
726
table.Add("string-length" , new ParamInfo(
Function
.FunctionType.FuncStringLength , 0, 1, temparray4));
727
table.Add("normalize-space" , new ParamInfo(
Function
.FunctionType.FuncNormalize , 0, 1, temparray4));
728
table.Add("translate" , new ParamInfo(
Function
.FunctionType.FuncTranslate , 3, 3, temparray7));
729
table.Add("boolean" , new ParamInfo(
Function
.FunctionType.FuncBoolean , 1, 1, temparray3));
730
table.Add("not" , new ParamInfo(
Function
.FunctionType.FuncNot , 1, 1, temparray8));
731
table.Add("true" , new ParamInfo(
Function
.FunctionType.FuncTrue , 0, 0 ,temparray8));
732
table.Add("false" , new ParamInfo(
Function
.FunctionType.FuncFalse , 0, 0, temparray8));
733
table.Add("lang" , new ParamInfo(
Function
.FunctionType.FuncLang , 1, 1, temparray4));
734
table.Add("number" , new ParamInfo(
Function
.FunctionType.FuncNumber , 0, 1, temparray3));
735
table.Add("sum" , new ParamInfo(
Function
.FunctionType.FuncSum , 1, 1, temparray2));
736
table.Add("floor" , new ParamInfo(
Function
.FunctionType.FuncFloor , 1, 1, temparray9));
737
table.Add("ceiling" , new ParamInfo(
Function
.FunctionType.FuncCeiling , 1, 1, temparray9));
738
table.Add("round" , new ParamInfo(
Function
.FunctionType.FuncRound , 1, 1, temparray9));