118 references to FunctionType
dotnet-svcutil-lib (118)
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\BooleanExpr.cs (2)
26
opnd1 = new BooleanFunctions(Function.
FunctionType
.FuncBoolean, opnd1);
30
opnd2 = new BooleanFunctions(Function.
FunctionType
.FuncBoolean, opnd2);
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\BooleanFunctions.cs (8)
13
using FT = MS.Internal.Xml.XPath.Function.
FunctionType
;
18
private
FT
_funcType;
20
public BooleanFunctions(
FT
funcType, Query arg)
43
case
FT
.FuncBoolean: return toBoolean(nodeIterator);
44
case
FT
.FuncNot: return Not(nodeIterator);
45
case
FT
.FuncTrue: return true;
46
case
FT
.FuncFalse: return false;
47
case
FT
.FuncLang: return Lang(nodeIterator);
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\Function.cs (6)
47
private
FunctionType
_functionType;
53
public Function(
FunctionType
ftype, ArrayList argumentList)
61
_functionType =
FunctionType
.FuncUserDefined;
67
public Function(
FunctionType
ftype)
72
public Function(
FunctionType
ftype, AstNode arg)
89
public
FunctionType
TypeOfFunction { get { return _functionType; } }
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\NodeFunctions.cs (9)
13
using FT = MS.Internal.Xml.XPath.Function.
FunctionType
;
18
private
FT
_funcType;
21
public NodeFunctions(
FT
funcType, Query arg)
52
case
FT
.FuncPosition:
54
case
FT
.FuncLast:
56
case
FT
.FuncNameSpaceUri:
63
case
FT
.FuncLocalName:
70
case
FT
.FuncName:
77
case
FT
.FuncCount:
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\NumberFunctions.cs (8)
14
using FT = MS.Internal.Xml.XPath.Function.
FunctionType
;
19
private
FT
_ftype;
21
public NumberFunctions(
FT
ftype, Query arg)
53
case
FT
.FuncNumber: return Number(nodeIterator);
54
case
FT
.FuncSum: return Sum(nodeIterator);
55
case
FT
.FuncFloor: return Floor(nodeIterator);
56
case
FT
.FuncCeiling: return Ceiling(nodeIterator);
57
case
FT
.FuncRound: return Round(nodeIterator);
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\NumericExpr.cs (2)
30
opnd1 = new NumberFunctions(Function.
FunctionType
.FuncNumber, opnd1);
34
opnd2 = new NumberFunctions(Function.
FunctionType
.FuncNumber, opnd2);
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\querybuilder.cs (32)
13
using FT = Function.
FunctionType
;
263
prevCond = new LogicalExpr(Operator.Op.EQ, new NodeFunctions(
FT
.FuncPosition, null), prevCond);
360
case
FT
.FuncLast:
364
case
FT
.FuncPosition:
368
case
FT
.FuncCount:
369
return new NodeFunctions(
FT
.FuncCount,
372
case
FT
.FuncID:
376
case
FT
.FuncLocalName:
377
case
FT
.FuncNameSpaceUri:
378
case
FT
.FuncName:
389
case
FT
.FuncString:
390
case
FT
.FuncConcat:
391
case
FT
.FuncStartsWith:
392
case
FT
.FuncContains:
393
case
FT
.FuncSubstringBefore:
394
case
FT
.FuncSubstringAfter:
395
case
FT
.FuncSubstring:
396
case
FT
.FuncStringLength:
397
case
FT
.FuncNormalize:
398
case
FT
.FuncTranslate:
400
case
FT
.FuncNumber:
401
case
FT
.FuncSum:
402
case
FT
.FuncFloor:
403
case
FT
.FuncCeiling:
404
case
FT
.FuncRound:
413
return new NumberFunctions(Function.
FunctionType
.FuncNumber, null);
415
case
FT
.FuncTrue:
416
case
FT
.FuncFalse:
418
case
FT
.FuncNot:
419
case
FT
.FuncLang:
420
case
FT
.FuncBoolean:
424
case
FT
.FuncUserDefined:
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\SortQuery.cs (1)
189
evalQuery = new StringFunctions(Function.
FunctionType
.FuncString, new Query[] { evalQuery });
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\StringFunctions.cs (15)
18
private Function.
FunctionType
_funcType;
21
public StringFunctions(Function.
FunctionType
funcType, IList<Query> argList)
52
case Function.
FunctionType
.FuncString: return toString(nodeIterator);
53
case Function.
FunctionType
.FuncConcat: return Concat(nodeIterator);
54
case Function.
FunctionType
.FuncStartsWith: return StartsWith(nodeIterator);
55
case Function.
FunctionType
.FuncContains: return Contains(nodeIterator);
56
case Function.
FunctionType
.FuncSubstringBefore: return SubstringBefore(nodeIterator);
57
case Function.
FunctionType
.FuncSubstringAfter: return SubstringAfter(nodeIterator);
58
case Function.
FunctionType
.FuncSubstring: return Substring(nodeIterator);
59
case Function.
FunctionType
.FuncStringLength: return StringLength(nodeIterator);
60
case Function.
FunctionType
.FuncNormalize: return Normalize(nodeIterator);
61
case Function.
FunctionType
.FuncTranslate: return Translate(nodeIterator);
105
if (_funcType == Function.
FunctionType
.FuncStringLength)
110
_funcType == Function.
FunctionType
.FuncStartsWith ||
111
_funcType == Function.
FunctionType
.FuncContains
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\XPathParser.cs (35)
545
if (pi.FType == Function.
FunctionType
.FuncConcat)
552
arg = new Function(Function.
FunctionType
.FuncString, arg);
584
arg = new Function(Function.
FunctionType
.FuncString, arg);
587
arg = new Function(Function.
FunctionType
.FuncNumber, arg);
590
arg = new Function(Function.
FunctionType
.FuncBoolean, arg);
805
private Function.
FunctionType
_ftype;
810
public Function.
FunctionType
FType { get { return _ftype; } }
815
internal ParamInfo(Function.
FunctionType
ftype, int minargs, int maxargs, XPathResultType[] argTypes)
828
table.Add("last", new ParamInfo(Function.
FunctionType
.FuncLast, 0, 0, s_temparray1));
829
table.Add("position", new ParamInfo(Function.
FunctionType
.FuncPosition, 0, 0, s_temparray1));
830
table.Add("name", new ParamInfo(Function.
FunctionType
.FuncName, 0, 1, s_temparray2));
831
table.Add("namespace-uri", new ParamInfo(Function.
FunctionType
.FuncNameSpaceUri, 0, 1, s_temparray2));
832
table.Add("local-name", new ParamInfo(Function.
FunctionType
.FuncLocalName, 0, 1, s_temparray2));
833
table.Add("count", new ParamInfo(Function.
FunctionType
.FuncCount, 1, 1, s_temparray2));
834
table.Add("id", new ParamInfo(Function.
FunctionType
.FuncID, 1, 1, s_temparray3));
835
table.Add("string", new ParamInfo(Function.
FunctionType
.FuncString, 0, 1, s_temparray3));
836
table.Add("concat", new ParamInfo(Function.
FunctionType
.FuncConcat, 2, 100, s_temparray4));
837
table.Add("starts-with", new ParamInfo(Function.
FunctionType
.FuncStartsWith, 2, 2, s_temparray5));
838
table.Add("contains", new ParamInfo(Function.
FunctionType
.FuncContains, 2, 2, s_temparray5));
839
table.Add("substring-before", new ParamInfo(Function.
FunctionType
.FuncSubstringBefore, 2, 2, s_temparray5));
840
table.Add("substring-after", new ParamInfo(Function.
FunctionType
.FuncSubstringAfter, 2, 2, s_temparray5));
841
table.Add("substring", new ParamInfo(Function.
FunctionType
.FuncSubstring, 2, 3, s_temparray6));
842
table.Add("string-length", new ParamInfo(Function.
FunctionType
.FuncStringLength, 0, 1, s_temparray4));
843
table.Add("normalize-space", new ParamInfo(Function.
FunctionType
.FuncNormalize, 0, 1, s_temparray4));
844
table.Add("translate", new ParamInfo(Function.
FunctionType
.FuncTranslate, 3, 3, s_temparray7));
845
table.Add("boolean", new ParamInfo(Function.
FunctionType
.FuncBoolean, 1, 1, s_temparray3));
846
table.Add("not", new ParamInfo(Function.
FunctionType
.FuncNot, 1, 1, s_temparray8));
847
table.Add("true", new ParamInfo(Function.
FunctionType
.FuncTrue, 0, 0, s_temparray8));
848
table.Add("false", new ParamInfo(Function.
FunctionType
.FuncFalse, 0, 0, s_temparray8));
849
table.Add("lang", new ParamInfo(Function.
FunctionType
.FuncLang, 1, 1, s_temparray4));
850
table.Add("number", new ParamInfo(Function.
FunctionType
.FuncNumber, 0, 1, s_temparray3));
851
table.Add("sum", new ParamInfo(Function.
FunctionType
.FuncSum, 1, 1, s_temparray2));
852
table.Add("floor", new ParamInfo(Function.
FunctionType
.FuncFloor, 1, 1, s_temparray9));
853
table.Add("ceiling", new ParamInfo(Function.
FunctionType
.FuncCeiling, 1, 1, s_temparray9));
854
table.Add("round", new ParamInfo(Function.
FunctionType
.FuncRound, 1, 1, s_temparray9));