Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CreateFunctionTable()

static Dictionary< string, ParamInfo > MS.Internal.Xml.XPath.XPathParser.CreateFunctionTable ( )
inlinestaticprivate

Definition at line 723 of file XPathParser.cs.

724 {
726 dictionary.Add("last", new ParamInfo(Function.FunctionType.FuncLast, 0, 0, s_temparray1));
727 dictionary.Add("position", new ParamInfo(Function.FunctionType.FuncPosition, 0, 0, s_temparray1));
728 dictionary.Add("name", new ParamInfo(Function.FunctionType.FuncName, 0, 1, s_temparray2));
729 dictionary.Add("namespace-uri", new ParamInfo(Function.FunctionType.FuncNameSpaceUri, 0, 1, s_temparray2));
730 dictionary.Add("local-name", new ParamInfo(Function.FunctionType.FuncLocalName, 0, 1, s_temparray2));
731 dictionary.Add("count", new ParamInfo(Function.FunctionType.FuncCount, 1, 1, s_temparray2));
732 dictionary.Add("id", new ParamInfo(Function.FunctionType.FuncID, 1, 1, s_temparray3));
733 dictionary.Add("string", new ParamInfo(Function.FunctionType.FuncString, 0, 1, s_temparray3));
734 dictionary.Add("concat", new ParamInfo(Function.FunctionType.FuncConcat, 2, 100, s_temparray4));
735 dictionary.Add("starts-with", new ParamInfo(Function.FunctionType.FuncStartsWith, 2, 2, s_temparray5));
736 dictionary.Add("contains", new ParamInfo(Function.FunctionType.FuncContains, 2, 2, s_temparray5));
737 dictionary.Add("substring-before", new ParamInfo(Function.FunctionType.FuncSubstringBefore, 2, 2, s_temparray5));
738 dictionary.Add("substring-after", new ParamInfo(Function.FunctionType.FuncSubstringAfter, 2, 2, s_temparray5));
739 dictionary.Add("substring", new ParamInfo(Function.FunctionType.FuncSubstring, 2, 3, s_temparray6));
740 dictionary.Add("string-length", new ParamInfo(Function.FunctionType.FuncStringLength, 0, 1, s_temparray4));
741 dictionary.Add("normalize-space", new ParamInfo(Function.FunctionType.FuncNormalize, 0, 1, s_temparray4));
742 dictionary.Add("translate", new ParamInfo(Function.FunctionType.FuncTranslate, 3, 3, s_temparray7));
743 dictionary.Add("boolean", new ParamInfo(Function.FunctionType.FuncBoolean, 1, 1, s_temparray3));
744 dictionary.Add("not", new ParamInfo(Function.FunctionType.FuncNot, 1, 1, s_temparray8));
745 dictionary.Add("true", new ParamInfo(Function.FunctionType.FuncTrue, 0, 0, s_temparray8));
746 dictionary.Add("false", new ParamInfo(Function.FunctionType.FuncFalse, 0, 0, s_temparray8));
747 dictionary.Add("lang", new ParamInfo(Function.FunctionType.FuncLang, 1, 1, s_temparray4));
748 dictionary.Add("number", new ParamInfo(Function.FunctionType.FuncNumber, 0, 1, s_temparray3));
749 dictionary.Add("sum", new ParamInfo(Function.FunctionType.FuncSum, 1, 1, s_temparray2));
750 dictionary.Add("floor", new ParamInfo(Function.FunctionType.FuncFloor, 1, 1, s_temparray9));
751 dictionary.Add("ceiling", new ParamInfo(Function.FunctionType.FuncCeiling, 1, 1, s_temparray9));
752 dictionary.Add("round", new ParamInfo(Function.FunctionType.FuncRound, 1, 1, s_temparray9));
753 return dictionary;
754 }
static readonly XPathResultType[] s_temparray1
static readonly XPathResultType[] s_temparray4
static readonly XPathResultType[] s_temparray3
static readonly XPathResultType[] s_temparray6
static readonly XPathResultType[] s_temparray2
static readonly XPathResultType[] s_temparray9
static readonly XPathResultType[] s_temparray8
static readonly XPathResultType[] s_temparray5
static readonly XPathResultType[] s_temparray7

References System.dictionary, MS.Internal.Xml.XPath.XPathParser.s_temparray1, MS.Internal.Xml.XPath.XPathParser.s_temparray2, MS.Internal.Xml.XPath.XPathParser.s_temparray3, MS.Internal.Xml.XPath.XPathParser.s_temparray4, MS.Internal.Xml.XPath.XPathParser.s_temparray5, MS.Internal.Xml.XPath.XPathParser.s_temparray6, MS.Internal.Xml.XPath.XPathParser.s_temparray7, MS.Internal.Xml.XPath.XPathParser.s_temparray8, and MS.Internal.Xml.XPath.XPathParser.s_temparray9.