49 writes to Index
System.Private.CoreLib (49)
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (49)
431
str.
Index
= nextCharIndex;
583
str.
Index
+= whitespaceCount;
725
str.
Index
= indexBeforeSeparator;
817
str.
Index
= indexBeforeSeparator;
900
str.
Index
= indexBeforeSeparator;
946
str.
Index
= indexBeforeSeparator;
1014
str.
Index
= indexBeforeSeparator;
1152
str.
Index
= originalIndex;
1239
str.
Index
= str.Length;
2958
str.
Index
--;
2997
str.
Index
--;
3012
str.
Index
--;
3022
str.
Index
--;
3139
str.
Index
--;
3148
str.
Index
= startingIndex;
3169
str.
Index
--;
3179
str.
Index
--;
3271
str.
Index
--;
3432
str.
Index
+= (maxMatchStrLen - 1);
3533
str.
Index
+= (maxMatchStrLen - 1);
3599
str.
Index
+= maxMatchStrLen - 1;
3664
str.
Index
+= maxMatchStrLen - 1;
3705
str.
Index
+= (searchStr.Length - 1);
3712
str.
Index
+= (searchStr.Length - 1);
3751
str.
Index
+= (searchStr.Length - 1);
3762
str.
Index
+= (searchStr.Length - 1);
3767
str.
Index
--; // Undo the GetNext call.
4015
str.
Index
--;
4317
str.
Index
++;
4323
str.
Index
--;
4341
str.
Index
--; // Put the character back for the parser
4390
format.
Index
+= tokenLen - 1;
4482
format.
Index
+= (GMTName.Length - 1);
5411
Index
= -1;
5432
Index
++;
5449
Index
+= count;
5479
while (++
Index
< Length)
5511
Index
= start; // To include the first digit.
5525
Index
= save;
5533
while (++
Index
< Length)
5682
if (++
Index
< Length && Value.Slice(Index).StartsWith(str))
5687
Index
+= (str.Length - 1);
5696
if (++
Index
>= Length)
5706
Index
--;
5760
Index
= pos - 1;
5767
++
Index
< Length &&
5805
Index
++;
5829
while (++
Index
< Length)
5961
Index
= sub.index + sub.length;
78 references to Index
System.Private.CoreLib (78)
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormatInfo.cs (7)
2233
int i = str.
Index
;
2267
str.Advance(i - str.
Index
);
2306
Debug.Assert(str.
Index
< str.Value.Length, "DateTimeFormatInfo.Tokenize(): start < value.Length");
2332
int remaining = str.Length - str.
Index
;
2352
int nextCharIndex = str.
Index
+ value.tokenString.Length;
2366
((value.tokenString.Length == 1 && str.Value[str.
Index
] == value.tokenString[0]) ||
2367
Culture.CompareInfo.Compare(str.Value.Slice(str.
Index
, value.tokenString.Length), value.tokenString, CompareOptions.IgnoreCase) == 0))
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (71)
411
if (target.Length > (str.Value.Length - str.
Index
))
416
if (str.CompareInfo.Compare(str.Value.Slice(str.
Index
, target.Length), target, CompareOptions.IgnoreCase) != 0)
421
int nextCharIndex = str.
Index
+ target.Length;
432
if (str.
Index
< str.Length)
434
str.m_current = str.Value[str.
Index
];
571
if (str.
Index
< str.Length - 1)
573
char nextCh = str.Value[str.
Index
];
576
while (char.IsWhiteSpace(nextCh) && str.
Index
+ whitespaceCount < str.Length - 1)
579
nextCh = str.Value[str.
Index
+ whitespaceCount];
618
Trace($"Lex({Hex(str.Value)})\tpos:{str.
Index
}({Hex(str.m_current)}), {tokenType}, DS.{dps}");
646
if (str.
Index
< str.Length - 1)
648
char nextCh = str.Value[str.
Index
];
662
if (str.
Index
< str.Length - 1)
1135
result.SetFailure(ParseFailureKind.Format_UnknownDateTimeWord, str.
Index
);
1142
int originalIndex = str.
Index
;
1177
char ch = str.Value[str.
Index
];
1233
if (str.Value.Slice(str.
Index
+ 1).ContainsAnyExcept('\0'))
3133
int startingIndex = str.
Index
;
3354
ReadOnlySpan<char> span = str.Value.Slice(str.
Index
);
3455
ReadOnlySpan<char> span = str.Value.Slice(str.
Index
);
3556
ReadOnlySpan<char> span = str.Value.Slice(str.
Index
);
3623
ReadOnlySpan<char> span = str.Value.Slice(str.
Index
);
4384
if (!TryParseQuoteString(format.Value, format.
Index
, ref enquotedString, out tokenLen))
4432
if (format.
Index
>= format.Value.Length - 1 || format.Value[format.
Index
+ 1] == '%')
4669
if (str.
Index
< str.Value.Length - 1)
5433
if (
Index
< Length)
5435
m_current = Value[
Index
];
5443
return
Index
< Length ? false : true;
5448
Debug.Assert(
Index
+ count <= Length, "__DTString::Advance: Index + count <= len");
5450
if (
Index
< Length)
5452
m_current = Value[
Index
];
5462
if (
Index
>= Length)
5474
int start =
Index
;
5481
m_current = Value[
Index
];
5492
if (
Index
- start > DateTimeParse.MaxDateTimeNumberDigits)
5497
else if (
Index
- start < 3)
5508
int save =
Index
;
5512
m_current = Value[
Index
];
5535
m_current = Value[
Index
];
5552
indexBeforeSeparator =
Index
;
5580
Index
+ target.Length <= Length &&
5581
m_info.Compare(Value.Slice(
Index
, target.Length), target, CompareOptions.IgnoreCase) == 0;
5585
int valueRemaining = Value.Length -
Index
;
5588
if (matchLength > valueRemaining || m_info.Compare(Value.Slice(
Index
, matchLength), target, CompareOptions.IgnoreCase) != 0)
5592
int thisPosition =
Index
; // Where we are in this string
5662
int nextCharIndex =
Index
+ matchLength;
5682
if (++Index < Length && Value.Slice(
Index
).StartsWith(str))
5700
if ((Value[
Index
] == ch) ||
5701
(ch == ' ' && IsSpaceReplacingChar(Value[
Index
])))
5750
char repeatChar = Value[
Index
];
5751
int pos =
Index
+ 1;
5756
int repeatCount = (pos -
Index
);
5768
char.IsAsciiDigit(Value[
Index
]);
5775
Debug.Assert(
Index
>= 0 &&
Index
< Length, "Index >= 0 && Index < len");
5776
return Value[
Index
];
5784
Debug.Assert(
Index
>= 0 &&
Index
< Length, "Index >= 0 && Index < len");
5785
Debug.Assert(char.IsAsciiDigit(Value[
Index
]), "IsDigit(Value[Index])");
5786
return Value[
Index
] - '0';
5798
while (
Index
+ 1 < Length)
5800
char ch = Value[
Index
+ 1];
5819
if (
Index
>= Length)
5831
m_current = Value[
Index
];
5909
sub.index =
Index
;
5911
while (
Index
+ sub.length < Length)
5914
char ch = Value[
Index
+ sub.length];
5959
Debug.Assert(sub.index ==
Index
);
5962
if (
Index
< Length)
5964
m_current = Value[
Index
];