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

◆ NodeCostForXPath()

static int System.Xml.Xsl.Xslt.XslAstRewriter.NodeCostForXPath ( string xpath)
inlinestaticprivate

Definition at line 36 of file XslAstRewriter.cs.

37 {
38 int num = 0;
39 if (xpath != null)
40 {
41 num = 2;
42 for (int i = 2; i < xpath.Length; i += 2)
43 {
44 if (xpath[i] == '/' || xpath[i - 1] == '/')
45 {
46 num += 2;
47 }
48 }
49 }
50 return num;
51 }

Referenced by System.Xml.Xsl.Xslt.XslAstRewriter.CheckNodeCost().