117 references to FunctionType
System.Private.Xml (117)
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 (8)
9
using FT = MS.Internal.Xml.XPath.Function.
FunctionType
;
16
private readonly
FT
_funcType;
18
public BooleanFunctions(
FT
funcType, Query? arg)
37
FT
.FuncBoolean => toBoolean(nodeIterator),
38
FT
.FuncNot => Not(nodeIterator),
39
FT
.FuncTrue => true,
40
FT
.FuncFalse => false,
41
FT
.FuncLang => Lang(nodeIterator!),
System\Xml\XPath\Internal\Function.cs (5)
44
private readonly
FunctionType
_functionType;
50
public Function(
FunctionType
ftype, List<AstNode> argumentList)
58
_functionType =
FunctionType
.FuncUserDefined;
64
public Function(
FunctionType
ftype, AstNode arg)
81
public
FunctionType
TypeOfFunction { get { return _functionType; } }
System\Xml\XPath\Internal\NodeFunctions.cs (9)
7
using FT = MS.Internal.Xml.XPath.Function.
FunctionType
;
14
private readonly
FT
_funcType;
17
public NodeFunctions(
FT
funcType, Query? arg)
45
case
FT
.FuncPosition:
47
case
FT
.FuncLast:
49
case
FT
.FuncNameSpaceUri:
56
case
FT
.FuncLocalName:
63
case
FT
.FuncName:
70
case
FT
.FuncCount:
System\Xml\XPath\Internal\NumberFunctions.cs (8)
9
using FT = MS.Internal.Xml.XPath.Function.
FunctionType
;
16
private readonly
FT
_ftype;
18
public NumberFunctions(
FT
ftype, Query? arg)
46
FT
.FuncNumber => (object)Number(nodeIterator),
47
FT
.FuncSum => Sum(nodeIterator),
48
FT
.FuncFloor => Floor(nodeIterator),
49
FT
.FuncCeiling => Ceiling(nodeIterator),
50
FT
.FuncRound => Round(nodeIterator),
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 (32)
9
using FT = MS.Internal.Xml.XPath.Function.
FunctionType
;
261
prevCond = new LogicalExpr(Operator.Op.EQ, new NodeFunctions(
FT
.FuncPosition, null), prevCond);
355
case
FT
.FuncLast:
359
case
FT
.FuncPosition:
363
case
FT
.FuncCount:
364
return new NodeFunctions(
FT
.FuncCount,
367
case
FT
.FuncID:
371
case
FT
.FuncLocalName:
372
case
FT
.FuncNameSpaceUri:
373
case
FT
.FuncName:
384
case
FT
.FuncString:
385
case
FT
.FuncConcat:
386
case
FT
.FuncStartsWith:
387
case
FT
.FuncContains:
388
case
FT
.FuncSubstringBefore:
389
case
FT
.FuncSubstringAfter:
390
case
FT
.FuncSubstring:
391
case
FT
.FuncStringLength:
392
case
FT
.FuncNormalize:
393
case
FT
.FuncTranslate:
395
case
FT
.FuncNumber:
396
case
FT
.FuncSum:
397
case
FT
.FuncFloor:
398
case
FT
.FuncCeiling:
399
case
FT
.FuncRound:
408
return new NumberFunctions(Function.
FunctionType
.FuncNumber, null);
410
case
FT
.FuncTrue:
411
case
FT
.FuncFalse:
413
case
FT
.FuncNot:
414
case
FT
.FuncLang:
415
case
FT
.FuncBoolean:
419
case
FT
.FuncUserDefined:
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 (35)
532
if (pi.FType == Function.
FunctionType
.FuncConcat)
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);
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));