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

◆ ScanNumber()

double MS.Internal.Xml.XPath.XPathScanner.ScanNumber ( )
inlineprivate

Definition at line 263 of file XPathScanner.cs.

264 {
265 int startIndex = _xpathExprIndex - 1;
266 int num = 0;
268 {
269 NextChar();
270 num++;
271 }
272 if (CurrentChar == '.')
273 {
274 NextChar();
275 num++;
277 {
278 NextChar();
279 num++;
280 }
281 }
282 return XmlConvert.ToXPathDouble(_xpathExpr.Substring(startIndex, num));
283 }
static bool IsDigit(char ch)
static double ToXPathDouble(object o)

References MS.Internal.Xml.XPath.XPathScanner._xpathExpr, MS.Internal.Xml.XPath.XPathScanner._xpathExprIndex, MS.Internal.Xml.XPath.XPathScanner.CurrentChar, System.Xml.XmlCharType.IsDigit(), MS.Internal.Xml.XPath.XPathScanner.NextChar(), System.startIndex, and System.Xml.XmlConvert.ToXPathDouble().

Referenced by MS.Internal.Xml.XPath.XPathScanner.NextLex().