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;
960
str.
Index
= indexBeforeSeparator;
1027
str.
Index
= indexBeforeSeparator;
1165
str.
Index
= originalIndex;
1252
str.
Index
= str.Length;
2995
str.
Index
--;
3034
str.
Index
--;
3049
str.
Index
--;
3059
str.
Index
--;
3202
str.
Index
--;
3211
str.
Index
= startingIndex;
3232
str.
Index
--;
3242
str.
Index
--;
3334
str.
Index
--;
3495
str.
Index
+= (maxMatchStrLen - 1);
3596
str.
Index
+= (maxMatchStrLen - 1);
3662
str.
Index
+= maxMatchStrLen - 1;
3727
str.
Index
+= maxMatchStrLen - 1;
3768
str.
Index
+= (searchStr.Length - 1);
3775
str.
Index
+= (searchStr.Length - 1);
3819
str.
Index
+= (pmDesignator.Length - 1);
3825
str.
Index
+= (amDesignator.Length - 1);
3837
str.
Index
+= (pmDesignator.Length - 1);
3842
str.
Index
--; // Undo the GetNext call.
4109
str.
Index
--;
4411
str.
Index
++;
4417
str.
Index
--;
4435
str.
Index
--; // Put the character back for the parser
4484
format.
Index
+= tokenLen - 1;
4574
format.
Index
+= (GMTName.Length - 1);
5542
Index
= -1;
5563
Index
++;
5580
Index
+= count;
5610
while (++
Index
< Length)
5642
Index
= start; // To include the first digit.
5656
Index
= save;
5664
while (++
Index
< Length)
5813
if (++
Index
< Length && Value.Slice(Index).StartsWith(str))
5818
Index
+= (str.Length - 1);
5827
if (++
Index
>= Length)
5837
Index
--;
5891
Index
= pos - 1;
5898
++
Index
< Length &&
5936
Index
++;
5960
while (++
Index
< Length)
6092
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)
1148
result.SetFailure(ParseFailureKind.Format_UnknownDateTimeWord, str.
Index
);
1155
int originalIndex = str.
Index
;
1190
char ch = str.Value[str.
Index
];
1246
if (str.Value.Slice(str.
Index
+ 1).ContainsAnyExcept('\0'))
3196
int startingIndex = str.
Index
;
3417
ReadOnlySpan<char> span = str.Value.Slice(str.
Index
);
3518
ReadOnlySpan<char> span = str.Value.Slice(str.
Index
);
3619
ReadOnlySpan<char> span = str.Value.Slice(str.
Index
);
3686
ReadOnlySpan<char> span = str.Value.Slice(str.
Index
);
3891
if (str.
Index
+ 1 >= str.Length || str.Value[str.
Index
+ 1] != designator[1])
4478
if (!TryParseQuoteString(format.Value, format.
Index
, ref enquotedString, out tokenLen))
4526
if (format.
Index
>= format.Value.Length - 1 || format.Value[format.
Index
+ 1] == '%')
4761
if (str.
Index
< str.Value.Length - 1)
5564
if (
Index
< Length)
5566
m_current = Value[
Index
];
5574
return
Index
< Length ? false : true;
5579
Debug.Assert(
Index
+ count <= Length, "__DTString::Advance: Index + count <= len");
5581
if (
Index
< Length)
5583
m_current = Value[
Index
];
5593
if (
Index
>= Length)
5605
int start =
Index
;
5612
m_current = Value[
Index
];
5623
if (
Index
- start > DateTimeParse.MaxDateTimeNumberDigits)
5628
else if (
Index
- start < 3)
5639
int save =
Index
;
5643
m_current = Value[
Index
];
5666
m_current = Value[
Index
];
5683
indexBeforeSeparator =
Index
;
5711
Index
+ target.Length <= Length &&
5712
m_info.Compare(Value.Slice(
Index
, target.Length), target, CompareOptions.IgnoreCase) == 0;
5716
int valueRemaining = Value.Length -
Index
;
5719
if (matchLength > valueRemaining || m_info.Compare(Value.Slice(
Index
, matchLength), target, CompareOptions.IgnoreCase) != 0)
5723
int thisPosition =
Index
; // Where we are in this string
5793
int nextCharIndex =
Index
+ matchLength;
5813
if (++Index < Length && Value.Slice(
Index
).StartsWith(str))
5831
if ((Value[
Index
] == ch) ||
5832
(ch == ' ' && IsSpaceReplacingChar(Value[
Index
])))
5881
char repeatChar = Value[
Index
];
5882
int pos =
Index
+ 1;
5887
int repeatCount = (pos -
Index
);
5899
char.IsAsciiDigit(Value[
Index
]);
5906
Debug.Assert(
Index
>= 0 &&
Index
< Length, "Index >= 0 && Index < len");
5907
return Value[
Index
];
5915
Debug.Assert(
Index
>= 0 &&
Index
< Length, "Index >= 0 && Index < len");
5916
Debug.Assert(char.IsAsciiDigit(Value[
Index
]), "IsDigit(Value[Index])");
5917
return Value[
Index
] - '0';
5929
while (
Index
+ 1 < Length)
5931
char ch = Value[
Index
+ 1];
5950
if (
Index
>= Length)
5962
m_current = Value[
Index
];
6040
sub.index =
Index
;
6042
while (
Index
+ sub.length < Length)
6045
char ch = Value[
Index
+ sub.length];
6090
Debug.Assert(sub.index ==
Index
);
6093
if (
Index
< Length)
6095
m_current = Value[
Index
];