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

◆ ParseZoneAndWhitespace()

bool System.Xml.Schema.XsdDateTime.Parser.ParseZoneAndWhitespace ( int start)
inlineprivate

Definition at line 247 of file XsdDateTime.cs.

248 {
249 if (start < _length)
250 {
251 char c = _text[start];
252 if (c == 'Z' || c == 'z')
253 {
254 kind = XsdDateTimeKind.Zulu;
255 start++;
256 }
257 else if (start + 5 < _length && Parse2Dig(start + s_Lz_, ref zoneHour) && zoneHour <= 99 && ParseChar(start + s_lz_zz, ':') && Parse2Dig(start + s_lz_zz_, ref zoneMinute) && zoneMinute <= 99)
258 {
259 switch (c)
260 {
261 case '-':
262 kind = XsdDateTimeKind.LocalWestOfZulu;
263 start += s_lz_zz_zz;
264 break;
265 case '+':
266 kind = XsdDateTimeKind.LocalEastOfZulu;
267 start += s_lz_zz_zz;
268 break;
269 }
270 }
271 }
272 while (start < _length && char.IsWhiteSpace(_text[start]))
273 {
274 start++;
275 }
276 return start == _length;
277 }
bool ParseChar(int start, char ch)
bool Parse2Dig(int start, ref int num)
static readonly int s_lz_zz_zz
static readonly int s_lz_zz_
static readonly int s_lz_zz
static readonly int s_Lz_

References System.Xml.Schema.XsdDateTime.Parser._length, System.Xml.Schema.XsdDateTime.Parser._text, System.Xml.Dictionary, System.Xml.Schema.XsdDateTime.Parser.kind, System.Xml.Schema.XsdDateTime.Parser.Parse2Dig(), System.Xml.Schema.XsdDateTime.Parser.ParseChar(), System.Xml.Schema.XsdDateTime.s_Lz_, System.Xml.Schema.XsdDateTime.s_lz_zz, System.Xml.Schema.XsdDateTime.s_lz_zz_, System.Xml.Schema.XsdDateTime.s_lz_zz_zz, System.start, System.Xml.Schema.XsdDateTime.Parser.zoneHour, and System.Xml.Schema.XsdDateTime.Parser.zoneMinute.

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