20 writes to pos
System.Data (20)
fx\src\data\System\Data\Filter\ExpressionParser.cs (20)
149pos = 0; 754ch = text[pos++]; 794pos++; 804pos++; 808pos++; 941pos++; 946pos ++; 950pos++; 955pos++; 958pos++; 961pos++; 978pos++; 995pos++; 998pos++; 1007pos++; 1018do pos++; while (pos < text.Length && text[pos] != '#'); 1030pos++; 1081char ch = text[pos++]; 1084pos++; 1107pos++;
63 references to pos
System.Data (63)
fx\src\data\System\Data\Filter\ExpressionParser.cs (63)
208throw ExprException.MissingOperator(new string(text, start, pos - start)); 235relname = NameNode.ParseName(text, start, pos); 253colname = NameNode.ParseName(text, start, pos); 267node = new NameNode(_table, text, start, pos); 272str = new string(text, start, pos - start); 276str = new string(text, start, pos - start); 280str = new string(text, start, pos - start); 284Debug.Assert(text[start] == '\'' && text[pos-1] == '\'', "The expression contains an invalid string constant"); 285Debug.Assert(pos - start > 1, "The expression contains an invalid string constant"); 287str = new string(text, start+1, pos - start-2); 291Debug.Assert(text[start] == '#' && text[pos-1] == '#', "The expression contains invalid date constant."); 292Debug.Assert(pos - start > 2, "The expression contains invalid date constant '{0}'."); 294str = new string(text, start+1, pos - start-2); 490throw ExprException.MissingOperator(new string(text, start, pos - start)); 508string newName = nameBefore.name + "." + NameNode.ParseName(text, start, pos); 517throw ExprException.UnknownToken(new string(text, start, pos - start), start+1); 548colname = NameNode.ParseName(text, start, pos); 562relname = NameNode.ParseName(text, start, pos); 572colname = NameNode.ParseName(text, start, pos); 740throw ExprException.UnknownToken(token, this.token, pos); 752start = pos; 793if (text[pos] == '=') { 803if (text[pos] == '=') { 807else if (text[pos] == '>') { 890if (ch == '0' && (text[pos] == 'x' || text[pos] == 'X')) { 920throw ExprException.UnknownToken(new string(text, start, pos - start), start+1); 937Debug.Assert(pos != 0, "We have at least one digit in the buffer, ScanNumeric()"); 938Debug.Assert(IsDigit(text[pos-1]), "We have at least one digit in the buffer, ScanNumeric(), not a digit"); 940while (IsDigit(text[pos])) { 944if (text[pos] == DecimalSeparator) { 949while (IsDigit(text[pos])) { 953if (text[pos] == ExponentL || text[pos] == ExponentU) { 957if (text[pos] == '-' || text[pos] == '+') { 960while (IsDigit(text[pos])) { 977while (IsAlphaNumeric(text[pos])) 993if (text[pos] == esc) { 994if (pos+1 < text.Length && charsToEscape.IndexOf(text[pos+1]) >= 0) { 999}while (pos < text.Length && text[pos] != chEnd); 1001if (pos >= text.Length) { 1002throw ExprException.InvalidNameBracketing(new string(text, start, (pos - 1) - start)); 1005Debug.Assert(text[pos] == chEnd, "Invalid bracket value"); 1018do pos++; while (pos < text.Length && text[pos] != '#'); 1020if (pos >= text.Length || text[pos]!= '#') { 1022if (pos >= text.Length) 1023throw ExprException.InvalidDate(new string(text, start, (pos - 1) - start)); 1025throw ExprException.InvalidDate(new string(text, start, pos - start)); 1040if (IsAlpha(text[pos])) { 1044Debug.Assert(pos > start, "Exprecing an identifier."); 1046string name = new string(text, start, pos - start); 1080while (pos < text.Length) { 1083if (ch == escape && pos < text.Length && text[pos] == escape) { 1090if (pos >= text.Length) { 1091throw ExprException.InvalidString(new string(text, start, (pos - 1) - start)); 1106while (pos < text.Length && IsWhiteSpace(text[pos])) {