50 writes to Index
System.Private.CoreLib (50)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (50)
441
str.
Index
= nextCharIndex;
593
str.
Index
+= whitespaceCount;
734
str.
Index
= indexBeforeSeparator;
825
str.
Index
= indexBeforeSeparator;
908
str.
Index
= indexBeforeSeparator;
953
str.
Index
= indexBeforeSeparator;
1020
str.
Index
= indexBeforeSeparator;
1158
str.
Index
= originalIndex;
1245
str.
Index
= str.Length;
2988
str.
Index
--;
3027
str.
Index
--;
3042
str.
Index
--;
3052
str.
Index
--;
3195
str.
Index
--;
3204
str.
Index
= startingIndex;
3225
str.
Index
--;
3235
str.
Index
--;
3327
str.
Index
--;
3488
str.
Index
+= (maxMatchStrLen - 1);
3589
str.
Index
+= (maxMatchStrLen - 1);
3655
str.
Index
+= maxMatchStrLen - 1;
3720
str.
Index
+= maxMatchStrLen - 1;
3761
str.
Index
+= (searchStr.Length - 1);
3768
str.
Index
+= (searchStr.Length - 1);
3812
str.
Index
+= (pmDesignator.Length - 1);
3818
str.
Index
+= (amDesignator.Length - 1);
3830
str.
Index
+= (pmDesignator.Length - 1);
3835
str.
Index
--; // Undo the GetNext call.
4102
str.
Index
--;
4404
str.
Index
++;
4410
str.
Index
--;
4428
str.
Index
--; // Put the character back for the parser
4477
format.
Index
+= tokenLen - 1;
4567
format.
Index
+= (GMTName.Length - 1);
5535
Index
= -1;
5556
Index
++;
5573
Index
+= count;
5603
while (++
Index
< Length)
5635
Index
= start; // To include the first digit.
5649
Index
= save;
5657
while (++
Index
< Length)
5806
if (++
Index
< Length && Value.Slice(Index).StartsWith(str))
5811
Index
+= (str.Length - 1);
5820
if (++
Index
>= Length)
5830
Index
--;
5884
Index
= pos - 1;
5891
++
Index
< Length &&
5929
Index
++;
5953
while (++
Index
< Length)
6085
Index
= sub.index + sub.length;
79 references to Index
System.Private.CoreLib (79)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormatInfo.cs (7)
2227
int i = str.
Index
;
2261
str.Advance(i - str.
Index
);
2300
Debug.Assert(str.
Index
< str.Value.Length, "DateTimeFormatInfo.Tokenize(): start < value.Length");
2326
int remaining = str.Length - str.
Index
;
2346
int nextCharIndex = str.
Index
+ value.tokenString.Length;
2360
((value.tokenString.Length == 1 && str.Value[str.
Index
] == value.tokenString[0]) ||
2361
Culture.CompareInfo.Compare(str.Value.Slice(str.
Index
, value.tokenString.Length), value.tokenString, CompareOptions.IgnoreCase) == 0))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (72)
421
if (target.Length > (str.Value.Length - str.
Index
))
426
if (str.CompareInfo.Compare(str.Value.Slice(str.
Index
, target.Length), target, CompareOptions.IgnoreCase) != 0)
431
int nextCharIndex = str.
Index
+ target.Length;
442
if (str.
Index
< str.Length)
444
str.m_current = str.Value[str.
Index
];
581
if (str.
Index
< str.Length - 1)
583
char nextCh = str.Value[str.
Index
];
586
while (char.IsWhiteSpace(nextCh) && str.
Index
+ whitespaceCount < str.Length - 1)
589
nextCh = str.Value[str.
Index
+ whitespaceCount];
656
if (str.
Index
< str.Length - 1)
658
char nextCh = str.Value[str.
Index
];
672
if (str.
Index
< str.Length - 1)
1141
result.SetFailure(ParseFailureKind.Format_UnknownDateTimeWord, str.
Index
);
1148
int originalIndex = str.
Index
;
1183
char ch = str.Value[str.
Index
];
1239
if (str.Value.Slice(str.
Index
+ 1).ContainsAnyExcept('\0'))
3189
int startingIndex = str.
Index
;
3410
ReadOnlySpan<char> span = str.Value.Slice(str.
Index
);
3511
ReadOnlySpan<char> span = str.Value.Slice(str.
Index
);
3612
ReadOnlySpan<char> span = str.Value.Slice(str.
Index
);
3679
ReadOnlySpan<char> span = str.Value.Slice(str.
Index
);
3884
if (str.
Index
+ 1 >= str.Length || str.Value[str.
Index
+ 1] != designator[1])
4471
if (!TryParseQuoteString(format.Value, format.
Index
, ref enquotedString, out tokenLen))
4519
if (format.
Index
>= format.Value.Length - 1 || format.Value[format.
Index
+ 1] == '%')
4754
if (str.
Index
< str.Value.Length - 1)
5557
if (
Index
< Length)
5559
m_current = Value[
Index
];
5567
return
Index
< Length ? false : true;
5572
Debug.Assert(
Index
+ count <= Length, "__DTString::Advance: Index + count <= len");
5574
if (
Index
< Length)
5576
m_current = Value[
Index
];
5586
if (
Index
>= Length)
5598
int start =
Index
;
5605
m_current = Value[
Index
];
5616
if (
Index
- start > DateTimeParse.MaxDateTimeNumberDigits)
5621
else if (
Index
- start < 3)
5632
int save =
Index
;
5636
m_current = Value[
Index
];
5659
m_current = Value[
Index
];
5676
indexBeforeSeparator =
Index
;
5704
Index
+ target.Length <= Length &&
5705
m_info.Compare(Value.Slice(
Index
, target.Length), target, CompareOptions.IgnoreCase) == 0;
5709
int valueRemaining = Value.Length -
Index
;
5712
if (matchLength > valueRemaining || m_info.Compare(Value.Slice(
Index
, matchLength), target, CompareOptions.IgnoreCase) != 0)
5716
int thisPosition =
Index
; // Where we are in this string
5786
int nextCharIndex =
Index
+ matchLength;
5806
if (++Index < Length && Value.Slice(
Index
).StartsWith(str))
5824
if ((Value[
Index
] == ch) ||
5825
(ch == ' ' && IsSpaceReplacingChar(Value[
Index
])))
5874
char repeatChar = Value[
Index
];
5875
int pos =
Index
+ 1;
5880
int repeatCount = (pos -
Index
);
5892
char.IsAsciiDigit(Value[
Index
]);
5899
Debug.Assert(
Index
>= 0 &&
Index
< Length, "Index >= 0 && Index < len");
5900
return Value[
Index
];
5908
Debug.Assert(
Index
>= 0 &&
Index
< Length, "Index >= 0 && Index < len");
5909
Debug.Assert(char.IsAsciiDigit(Value[
Index
]), "IsDigit(Value[Index])");
5910
return Value[
Index
] - '0';
5922
while (
Index
+ 1 < Length)
5924
char ch = Value[
Index
+ 1];
5943
if (
Index
>= Length)
5955
m_current = Value[
Index
];
6033
sub.index =
Index
;
6035
while (
Index
+ sub.length < Length)
6038
char ch = Value[
Index
+ sub.length];
6083
Debug.Assert(sub.index ==
Index
);
6086
if (
Index
< Length)
6088
m_current = Value[
Index
];