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