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

◆ Parse4Dig()

bool System.Xml.Schema.XsdDateTime.Parser.Parse4Dig ( int start,
ref int num )
inlineprivate

Definition at line 279 of file XsdDateTime.cs.

280 {
281 if (start + 3 < _length)
282 {
283 int num2 = _text[start] - 48;
284 int num3 = _text[start + 1] - 48;
285 int num4 = _text[start + 2] - 48;
286 int num5 = _text[start + 3] - 48;
287 if (0 <= num2 && num2 < 10 && 0 <= num3 && num3 < 10 && 0 <= num4 && num4 < 10 && 0 <= num5 && num5 < 10)
288 {
289 num = ((num2 * 10 + num3) * 10 + num4) * 10 + num5;
290 return true;
291 }
292 }
293 return false;
294 }

References System.Xml.Schema.XsdDateTime.Parser._length, System.Xml.Schema.XsdDateTime.Parser._text, System.Xml.Dictionary, and System.start.

Referenced by System.Xml.Schema.XsdDateTime.Parser.Parse(), and System.Xml.Schema.XsdDateTime.Parser.ParseDate().