20 writes to _pos
System.Data.Common (20)
System\Data\Filter\ExpressionParser.cs (20)
151_pos = 0; 796ch = text[_pos++]; 838_pos++; 849_pos++; 854_pos++; 997_pos++; 1003_pos++; 1008_pos++; 1014_pos++; 1018_pos++; 1022_pos++; 1040_pos++; 1061_pos++; 1064_pos++; 1074_pos++; 1086do _pos++; while (_pos < text.Length && text[_pos] != '#'); 1100_pos++; 1155char ch = text[_pos++]; 1159_pos++; 1186_pos++;
63 references to _pos
System.Data.Common (63)
System\Data\Filter\ExpressionParser.cs (63)
217throw ExprException.MissingOperator(new string(_text, _start, _pos - _start)); 249relname = NameNode.ParseName(_text, _start, _pos); 265colname = NameNode.ParseName(_text, _start, _pos); 277node = new NameNode(_table, _text, _start, _pos); 282str = new string(_text, _start, _pos - _start); 286str = new string(_text, _start, _pos - _start); 290str = new string(_text, _start, _pos - _start); 294Debug.Assert(_text[_start] == '\'' && _text[_pos - 1] == '\'', "The expression contains an invalid string constant"); 295Debug.Assert(_pos - _start > 1, "The expression contains an invalid string constant"); 297str = new string(_text, _start + 1, _pos - _start - 2); 301Debug.Assert(_text[_start] == '#' && _text[_pos - 1] == '#', "The expression contains invalid date constant."); 302Debug.Assert(_pos - _start > 2, "The expression contains invalid date constant '{0}'."); 304str = new string(_text, _start + 1, _pos - _start - 2); 517throw ExprException.MissingOperator(new string(_text, _start, _pos - _start)); 536string newName = nameBefore._name + "." + NameNode.ParseName(_text, _start, _pos); 544throw ExprException.UnknownToken(new string(_text, _start, _pos - _start), _start + 1); 577colname = NameNode.ParseName(_text, _start, _pos); 592relname = NameNode.ParseName(_text, _start, _pos); 603colname = NameNode.ParseName(_text, _start, _pos); 780throw ExprException.UnknownToken(token, _token, _pos); 794_start = _pos; 836if (text[_pos] == '=') 847if (text[_pos] == '=') 852else if (text[_pos] == '>') 940if (ch == '0' && (text[_pos] == 'x' || text[_pos] == 'X')) 974throw ExprException.UnknownToken(new string(text, _start, _pos - _start), _start + 1); 992Debug.Assert(_pos != 0, "We have at least one digit in the buffer, ScanNumeric()"); 993Debug.Assert(IsDigit(text[_pos - 1]), "We have at least one digit in the buffer, ScanNumeric(), not a digit"); 995while (IsDigit(text[_pos])) 1000if (text[_pos] == _decimalSeparator) 1006while (IsDigit(text[_pos])) 1011if (text[_pos] == _exponentL || text[_pos] == _exponentU) 1016if (text[_pos] == '-' || text[_pos] == '+') 1020while (IsDigit(text[_pos])) 1039while (IsAlphaNumeric(text[_pos])) 1057if (text[_pos] == esc) 1059if (_pos + 1 < text.Length && charsToEscape.Contains(text[_pos + 1])) 1065} while (_pos < text.Length && text[_pos] != chEnd); 1067if (_pos >= text.Length) 1069throw ExprException.InvalidNameBracketing(new string(text, _start, (_pos - 1) - _start)); 1072Debug.Assert(text[_pos] == chEnd, "Invalid bracket value"); 1086do _pos++; while (_pos < text.Length && text[_pos] != '#'); 1088if (_pos >= text.Length || text[_pos] != '#') 1091if (_pos >= text.Length) 1092throw ExprException.InvalidDate(new string(text, _start, (_pos - 1) - _start)); 1094throw ExprException.InvalidDate(new string(text, _start, _pos - _start)); 1107if (IsAlpha(text[_pos])) 1112Debug.Assert(_pos > _start, "Exprecing an identifier."); 1114string name = new string(text, _start, _pos - _start); 1153while (_pos < text.Length) 1157if (ch == escape && _pos < text.Length && text[_pos] == escape) 1165if (_pos >= text.Length) 1167throw ExprException.InvalidString(new string(text, _start, (_pos - 1) - _start)); 1184while (_pos < text.Length && IsWhiteSpace(text[_pos]))