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.
4083
str.
Index
--;
4385
str.
Index
++;
4391
str.
Index
--;
4409
str.
Index
--; // Put the character back for the parser
4458
format.
Index
+= tokenLen - 1;
4548
format.
Index
+= (GMTName.Length - 1);
5516
Index
= -1;
5537
Index
++;
5554
Index
+= count;
5584
while (++
Index
< Length)
5616
Index
= start; // To include the first digit.
5630
Index
= save;
5638
while (++
Index
< Length)
5787
if (++
Index
< Length && Value.Slice(Index).StartsWith(str))
5792
Index
+= (str.Length - 1);
5801
if (++
Index
>= Length)
5811
Index
--;
5865
Index
= pos - 1;
5872
++
Index
< Length &&
5910
Index
++;
5934
while (++
Index
< Length)
6066
Index
= sub.index + sub.length;
77 references to Index
System.Private.CoreLib (77)
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 (70)
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
);
4452
if (!TryParseQuoteString(format.Value, format.
Index
, ref enquotedString, out tokenLen))
4500
if (format.
Index
>= format.Value.Length - 1 || format.Value[format.
Index
+ 1] == '%')
4735
if (str.
Index
< str.Value.Length - 1)
5538
if (
Index
< Length)
5540
m_current = Value[
Index
];
5548
return
Index
< Length ? false : true;
5553
Debug.Assert(
Index
+ count <= Length, "__DTString::Advance: Index + count <= len");
5555
if (
Index
< Length)
5557
m_current = Value[
Index
];
5567
if (
Index
>= Length)
5579
int start =
Index
;
5586
m_current = Value[
Index
];
5597
if (
Index
- start > DateTimeParse.MaxDateTimeNumberDigits)
5602
else if (
Index
- start < 3)
5613
int save =
Index
;
5617
m_current = Value[
Index
];
5640
m_current = Value[
Index
];
5657
indexBeforeSeparator =
Index
;
5685
Index
+ target.Length <= Length &&
5686
m_info.Compare(Value.Slice(
Index
, target.Length), target, CompareOptions.IgnoreCase) == 0;
5690
int valueRemaining = Value.Length -
Index
;
5693
if (matchLength > valueRemaining || m_info.Compare(Value.Slice(
Index
, matchLength), target, CompareOptions.IgnoreCase) != 0)
5697
int thisPosition =
Index
; // Where we are in this string
5767
int nextCharIndex =
Index
+ matchLength;
5787
if (++Index < Length && Value.Slice(
Index
).StartsWith(str))
5805
if ((Value[
Index
] == ch) ||
5806
(ch == ' ' && IsSpaceReplacingChar(Value[
Index
])))
5855
char repeatChar = Value[
Index
];
5856
int pos =
Index
+ 1;
5861
int repeatCount = (pos -
Index
);
5873
char.IsAsciiDigit(Value[
Index
]);
5880
Debug.Assert(
Index
>= 0 &&
Index
< Length, "Index >= 0 && Index < len");
5881
return Value[
Index
];
5889
Debug.Assert(
Index
>= 0 &&
Index
< Length, "Index >= 0 && Index < len");
5890
Debug.Assert(char.IsAsciiDigit(Value[
Index
]), "IsDigit(Value[Index])");
5891
return Value[
Index
] - '0';
5903
while (
Index
+ 1 < Length)
5905
char ch = Value[
Index
+ 1];
5924
if (
Index
>= Length)
5936
m_current = Value[
Index
];
6014
sub.index =
Index
;
6016
while (
Index
+ sub.length < Length)
6019
char ch = Value[
Index
+ sub.length];
6064
Debug.Assert(sub.index ==
Index
);
6067
if (
Index
< Length)
6069
m_current = Value[
Index
];