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