118 references to FunctionType
System.Xml (118)
System\Xml\XPath\Internal\BooleanExpr.cs (2)
25opnd1 = new BooleanFunctions(Function.FunctionType.FuncBoolean, opnd1); 28opnd2 = new BooleanFunctions(Function.FunctionType.FuncBoolean, opnd2);
System\Xml\XPath\Internal\BooleanFunctions.cs (8)
15using FT = MS.Internal.Xml.XPath.Function.FunctionType; 19FT funcType; 21public BooleanFunctions(FT funcType, Query arg) { 38case FT.FuncBoolean : return toBoolean(nodeIterator); 39case FT.FuncNot : return Not(nodeIterator); 40case FT.FuncTrue : return true; 41case FT.FuncFalse : return false; 42case FT.FuncLang : return Lang(nodeIterator);
System\Xml\XPath\Internal\Function.cs (6)
47private FunctionType functionType; 53public Function(FunctionType ftype, ArrayList argumentList) { 59this.functionType = FunctionType.FuncUserDefined; 65public Function(FunctionType ftype) { 69public Function(FunctionType ftype, AstNode arg) { 83public FunctionType TypeOfFunction { get { return functionType; } }
System\Xml\XPath\Internal\NodeFunctions.cs (9)
15using FT = MS.Internal.Xml.XPath.Function.FunctionType; 19FT funcType; 22public NodeFunctions(FT funcType, Query arg) { 46case FT.FuncPosition: 48case FT.FuncLast: 50case FT.FuncNameSpaceUri: 56case FT.FuncLocalName: 62case FT.FuncName : 68case FT.FuncCount:
System\Xml\XPath\Internal\NumberFunctions.cs (8)
16using FT = MS.Internal.Xml.XPath.Function.FunctionType; 20private FT ftype; 22public NumberFunctions(FT ftype, Query arg) { 46case FT.FuncNumber : return Number (nodeIterator); 47case FT.FuncSum : return Sum (nodeIterator); 48case FT.FuncFloor : return Floor (nodeIterator); 49case FT.FuncCeiling : return Ceiling(nodeIterator); 50case FT.FuncRound : return Round (nodeIterator);
System\Xml\XPath\Internal\NumericExpr.cs (2)
29opnd1 = new NumberFunctions(Function.FunctionType.FuncNumber, opnd1); 32opnd2 = new NumberFunctions(Function.FunctionType.FuncNumber, opnd2);
System\Xml\XPath\Internal\QueryBuilder.cs (32)
15using FT = Function.FunctionType; 223prevCond = new LogicalExpr(Operator.Op.EQ, new NodeFunctions(FT.FuncPosition, null), prevCond); 305case FT.FuncLast: 309case FT.FuncPosition: 313case FT.FuncCount: 314return new NodeFunctions(FT.FuncCount, 317case FT.FuncID: 321case FT.FuncLocalName: 322case FT.FuncNameSpaceUri: 323case FT.FuncName: 331case FT.FuncString: 332case FT.FuncConcat: 333case FT.FuncStartsWith: 334case FT.FuncContains: 335case FT.FuncSubstringBefore: 336case FT.FuncSubstringAfter: 337case FT.FuncSubstring: 338case FT.FuncStringLength: 339case FT.FuncNormalize: 340case FT.FuncTranslate: 342case FT.FuncNumber: 343case FT.FuncSum: 344case FT.FuncFloor: 345case FT.FuncCeiling: 346case FT.FuncRound: 352return new NumberFunctions(Function.FunctionType.FuncNumber, null); 354case FT.FuncTrue: 355case FT.FuncFalse: 357case FT.FuncNot: 358case FT.FuncLang: 359case FT.FuncBoolean: 363case FT.FuncUserDefined:
System\Xml\XPath\Internal\SortQuery.cs (1)
166evalQuery = new StringFunctions(Function.FunctionType.FuncString, new Query[] { evalQuery });
System\Xml\XPath\Internal\StringFunctions.cs (15)
19Function.FunctionType funcType; 22public StringFunctions(Function.FunctionType funcType, IList<Query> argList) { 45case Function.FunctionType.FuncString : return toString(nodeIterator); 46case Function.FunctionType.FuncConcat : return Concat(nodeIterator); 47case Function.FunctionType.FuncStartsWith : return StartsWith(nodeIterator); 48case Function.FunctionType.FuncContains : return Contains(nodeIterator); 49case Function.FunctionType.FuncSubstringBefore : return SubstringBefore(nodeIterator); 50case Function.FunctionType.FuncSubstringAfter : return SubstringAfter(nodeIterator); 51case Function.FunctionType.FuncSubstring : return Substring(nodeIterator); 52case Function.FunctionType.FuncStringLength : return StringLength(nodeIterator); 53case Function.FunctionType.FuncNormalize : return Normalize(nodeIterator); 54case Function.FunctionType.FuncTranslate : return Translate(nodeIterator); 90if (funcType == Function.FunctionType.FuncStringLength) { 94funcType == Function.FunctionType.FuncStartsWith || 95funcType == Function.FunctionType.FuncContains
System\Xml\XPath\Internal\XPathParser.cs (35)
469if (pi.FType == Function.FunctionType.FuncConcat) { 473arg = new Function(Function.FunctionType.FuncString, arg); 498arg = new Function(Function.FunctionType.FuncString, arg); 501arg = new Function(Function.FunctionType.FuncNumber, arg); 504arg = new Function(Function.FunctionType.FuncBoolean, arg); 691private Function.FunctionType ftype; 696public Function.FunctionType FType { get { return this.ftype; } } 701internal ParamInfo(Function.FunctionType ftype, int minargs, int maxargs, XPathResultType[] argTypes) { 712table.Add("last" , new ParamInfo(Function.FunctionType.FuncLast , 0, 0, temparray1)); 713table.Add("position" , new ParamInfo(Function.FunctionType.FuncPosition , 0, 0, temparray1)); 714table.Add("name" , new ParamInfo(Function.FunctionType.FuncName , 0, 1, temparray2)); 715table.Add("namespace-uri" , new ParamInfo(Function.FunctionType.FuncNameSpaceUri , 0, 1, temparray2)); 716table.Add("local-name" , new ParamInfo(Function.FunctionType.FuncLocalName , 0, 1, temparray2)); 717table.Add("count" , new ParamInfo(Function.FunctionType.FuncCount , 1, 1, temparray2)); 718table.Add("id" , new ParamInfo(Function.FunctionType.FuncID , 1, 1, temparray3)); 719table.Add("string" , new ParamInfo(Function.FunctionType.FuncString , 0, 1, temparray3)); 720table.Add("concat" , new ParamInfo(Function.FunctionType.FuncConcat , 2, 100, temparray4)); 721table.Add("starts-with" , new ParamInfo(Function.FunctionType.FuncStartsWith , 2, 2, temparray5)); 722table.Add("contains" , new ParamInfo(Function.FunctionType.FuncContains , 2, 2, temparray5)); 723table.Add("substring-before" , new ParamInfo(Function.FunctionType.FuncSubstringBefore, 2, 2, temparray5)); 724table.Add("substring-after" , new ParamInfo(Function.FunctionType.FuncSubstringAfter , 2, 2, temparray5)); 725table.Add("substring" , new ParamInfo(Function.FunctionType.FuncSubstring , 2, 3, temparray6)); 726table.Add("string-length" , new ParamInfo(Function.FunctionType.FuncStringLength , 0, 1, temparray4)); 727table.Add("normalize-space" , new ParamInfo(Function.FunctionType.FuncNormalize , 0, 1, temparray4)); 728table.Add("translate" , new ParamInfo(Function.FunctionType.FuncTranslate , 3, 3, temparray7)); 729table.Add("boolean" , new ParamInfo(Function.FunctionType.FuncBoolean , 1, 1, temparray3)); 730table.Add("not" , new ParamInfo(Function.FunctionType.FuncNot , 1, 1, temparray8)); 731table.Add("true" , new ParamInfo(Function.FunctionType.FuncTrue , 0, 0 ,temparray8)); 732table.Add("false" , new ParamInfo(Function.FunctionType.FuncFalse , 0, 0, temparray8)); 733table.Add("lang" , new ParamInfo(Function.FunctionType.FuncLang , 1, 1, temparray4)); 734table.Add("number" , new ParamInfo(Function.FunctionType.FuncNumber , 0, 1, temparray3)); 735table.Add("sum" , new ParamInfo(Function.FunctionType.FuncSum , 1, 1, temparray2)); 736table.Add("floor" , new ParamInfo(Function.FunctionType.FuncFloor , 1, 1, temparray9)); 737table.Add("ceiling" , new ParamInfo(Function.FunctionType.FuncCeiling , 1, 1, temparray9)); 738table.Add("round" , new ParamInfo(Function.FunctionType.FuncRound , 1, 1, temparray9));