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

◆ ScanString()

void System.Data.ExpressionParser.ScanString ( char escape)
inlineprivate

Definition at line 804 of file ExpressionParser.cs.

805 {
806 char[] text = _text;
807 while (_pos < text.Length)
808 {
809 char c = text[_pos++];
810 if (c == escape && _pos < text.Length && text[_pos] == escape)
811 {
812 _pos++;
813 }
814 else if (c == escape)
815 {
816 break;
817 }
818 }
819 if (_pos >= text.Length)
820 {
821 throw ExprException.InvalidString(new string(text, _start, _pos - 1 - _start));
822 }
823 _token = Tokens.StringConst;
824 }

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

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