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

◆ numberCount()

int System.Xml.Xsl.XsltOld.NumberAction.numberCount ( XPathNavigator nav,
Processor processor,
XPathNavigator contextNode )
inlineprivate

Definition at line 340 of file NumberAction.cs.

341 {
343 int num = 1;
344 if (xPathNavigator.MoveToParent())
345 {
346 xPathNavigator.MoveToFirstChild();
347 while (!xPathNavigator.IsSamePosition(nav))
348 {
349 if (MatchCountKey(processor, contextNode, xPathNavigator))
350 {
351 num++;
352 }
353 if (!xPathNavigator.MoveToNext())
354 {
355 break;
356 }
357 }
358 }
359 return num;
360 }
bool MatchCountKey(Processor processor, XPathNavigator contextNode, XPathNavigator nav)

References System.Xml.XPath.XPathNavigator.Clone(), and System.Xml.Xsl.XsltOld.NumberAction.MatchCountKey().

Referenced by System.Xml.Xsl.XsltOld.NumberAction.Execute().