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

◆ ScanDate()

void System.Data.ExpressionParser.ScanDate ( )
inlineprivate

Definition at line 750 of file ExpressionParser.cs.

751 {
752 char[] text = _text;
753 do
754 {
755 _pos++;
756 }
757 while (_pos < text.Length && text[_pos] != '#');
758 if (_pos >= text.Length || text[_pos] != '#')
759 {
760 if (_pos >= text.Length)
761 {
762 throw ExprException.InvalidDate(new string(text, _start, _pos - 1 - _start));
763 }
764 throw ExprException.InvalidDate(new string(text, _start, _pos - _start));
765 }
766 _token = Tokens.Date;
767 _pos++;
768 }

References System.Data.ExpressionParser._pos, System.Data.ExpressionParser._start, System.Data.ExpressionParser._text, System.Data.ExpressionParser._token, System.Data.ExprException.InvalidDate(), and System.text.

Referenced by System.Data.ExpressionParser.Scan().