118 references to FunctionType
System.Xml (118)
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 (8)
15
using FT = MS.Internal.Xml.XPath.Function.
FunctionType
;
19
FT
funcType;
21
public BooleanFunctions(
FT
funcType, Query arg) {
38
case
FT
.FuncBoolean : return toBoolean(nodeIterator);
39
case
FT
.FuncNot : return Not(nodeIterator);
40
case
FT
.FuncTrue : return true;
41
case
FT
.FuncFalse : return false;
42
case
FT
.FuncLang : return Lang(nodeIterator);
System\Xml\XPath\Internal\Function.cs (6)
47
private
FunctionType
functionType;
53
public Function(
FunctionType
ftype, ArrayList argumentList) {
59
this.functionType =
FunctionType
.FuncUserDefined;
65
public Function(
FunctionType
ftype) {
69
public Function(
FunctionType
ftype, AstNode arg) {
83
public
FunctionType
TypeOfFunction { get { return functionType; } }
System\Xml\XPath\Internal\NodeFunctions.cs (9)
15
using FT = MS.Internal.Xml.XPath.Function.
FunctionType
;
19
FT
funcType;
22
public NodeFunctions(
FT
funcType, Query arg) {
46
case
FT
.FuncPosition:
48
case
FT
.FuncLast:
50
case
FT
.FuncNameSpaceUri:
56
case
FT
.FuncLocalName:
62
case
FT
.FuncName :
68
case
FT
.FuncCount:
System\Xml\XPath\Internal\NumberFunctions.cs (8)
16
using FT = MS.Internal.Xml.XPath.Function.
FunctionType
;
20
private
FT
ftype;
22
public NumberFunctions(
FT
ftype, Query arg) {
46
case
FT
.FuncNumber : return Number (nodeIterator);
47
case
FT
.FuncSum : return Sum (nodeIterator);
48
case
FT
.FuncFloor : return Floor (nodeIterator);
49
case
FT
.FuncCeiling : return Ceiling(nodeIterator);
50
case
FT
.FuncRound : return Round (nodeIterator);
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 (32)
15
using FT = Function.
FunctionType
;
223
prevCond = new LogicalExpr(Operator.Op.EQ, new NodeFunctions(
FT
.FuncPosition, null), prevCond);
305
case
FT
.FuncLast:
309
case
FT
.FuncPosition:
313
case
FT
.FuncCount:
314
return new NodeFunctions(
FT
.FuncCount,
317
case
FT
.FuncID:
321
case
FT
.FuncLocalName:
322
case
FT
.FuncNameSpaceUri:
323
case
FT
.FuncName:
331
case
FT
.FuncString:
332
case
FT
.FuncConcat:
333
case
FT
.FuncStartsWith:
334
case
FT
.FuncContains:
335
case
FT
.FuncSubstringBefore:
336
case
FT
.FuncSubstringAfter:
337
case
FT
.FuncSubstring:
338
case
FT
.FuncStringLength:
339
case
FT
.FuncNormalize:
340
case
FT
.FuncTranslate:
342
case
FT
.FuncNumber:
343
case
FT
.FuncSum:
344
case
FT
.FuncFloor:
345
case
FT
.FuncCeiling:
346
case
FT
.FuncRound:
352
return new NumberFunctions(Function.
FunctionType
.FuncNumber, null);
354
case
FT
.FuncTrue:
355
case
FT
.FuncFalse:
357
case
FT
.FuncNot:
358
case
FT
.FuncLang:
359
case
FT
.FuncBoolean:
363
case
FT
.FuncUserDefined:
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 (35)
469
if (pi.FType == Function.
FunctionType
.FuncConcat) {
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);
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));