8 instantiations of Function
System.Xml (8)
System\Xml\XPath\Internal\XPathParser.cs (8)
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); 511 return new Function(pi.FType, argList); 514return 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)
25opnd1 = new BooleanFunctions(Function.FunctionType.FuncBoolean, opnd1); 28opnd2 = new BooleanFunctions(Function.FunctionType.FuncBoolean, opnd2);
System\Xml\XPath\Internal\BooleanFunctions.cs (1)
15using FT = MS.Internal.Xml.XPath.Function.FunctionType;
System\Xml\XPath\Internal\NodeFunctions.cs (2)
15using FT = MS.Internal.Xml.XPath.Function.FunctionType; 88public override XPathResultType StaticType { get { return Function.ReturnTypes[(int)funcType]; } }
System\Xml\XPath\Internal\NumberFunctions.cs (1)
16using FT = MS.Internal.Xml.XPath.Function.FunctionType;
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 (4)
15using FT = Function.FunctionType; 301private Query ProcessFunction(Function root, out Props props) { 352return new NumberFunctions(Function.FunctionType.FuncNumber, null); 420result = ProcessFunction((Function)root, out props);
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 (36)
469if (pi.FType == Function.FunctionType.FuncConcat) { 473arg = new Function(Function.FunctionType.FuncString, arg); 493if (!(arg is Variable) && !(arg is Function && arg.ReturnType == XPathResultType.Any) ) { 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));