50 writes to Index
System.Private.CoreLib (50)
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);
5512
Index
= -1;
5533
Index
++;
5550
Index
+= count;
5580
while (++
Index
< Length)
5612
Index
= start; // To include the first digit.
5626
Index
= save;
5634
while (++
Index
< Length)
5783
if (++
Index
< Length && Value.Slice(Index).StartsWith(str))
5788
Index
+= (str.Length - 1);
5797
if (++
Index
>= Length)
5807
Index
--;
5861
Index
= pos - 1;
5868
++
Index
< Length &&
5906
Index
++;
5930
while (++
Index
< Length)
6062
Index
= sub.index + sub.length;
78 references to Index
System.Private.CoreLib (78)
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\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (71)
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];
628
Trace($"Lex({Hex(str.Value)})\tpos:{str.
Index
}({Hex(str.m_current)}), {tokenType}, DS.{dps}");
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)
5534
if (
Index
< Length)
5536
m_current = Value[
Index
];
5544
return
Index
< Length ? false : true;
5549
Debug.Assert(
Index
+ count <= Length, "__DTString::Advance: Index + count <= len");
5551
if (
Index
< Length)
5553
m_current = Value[
Index
];
5563
if (
Index
>= Length)
5575
int start =
Index
;
5582
m_current = Value[
Index
];
5593
if (
Index
- start > DateTimeParse.MaxDateTimeNumberDigits)
5598
else if (
Index
- start < 3)
5609
int save =
Index
;
5613
m_current = Value[
Index
];
5636
m_current = Value[
Index
];
5653
indexBeforeSeparator =
Index
;
5681
Index
+ target.Length <= Length &&
5682
m_info.Compare(Value.Slice(
Index
, target.Length), target, CompareOptions.IgnoreCase) == 0;
5686
int valueRemaining = Value.Length -
Index
;
5689
if (matchLength > valueRemaining || m_info.Compare(Value.Slice(
Index
, matchLength), target, CompareOptions.IgnoreCase) != 0)
5693
int thisPosition =
Index
; // Where we are in this string
5763
int nextCharIndex =
Index
+ matchLength;
5783
if (++Index < Length && Value.Slice(
Index
).StartsWith(str))
5801
if ((Value[
Index
] == ch) ||
5802
(ch == ' ' && IsSpaceReplacingChar(Value[
Index
])))
5851
char repeatChar = Value[
Index
];
5852
int pos =
Index
+ 1;
5857
int repeatCount = (pos -
Index
);
5869
char.IsAsciiDigit(Value[
Index
]);
5876
Debug.Assert(
Index
>= 0 &&
Index
< Length, "Index >= 0 && Index < len");
5877
return Value[
Index
];
5885
Debug.Assert(
Index
>= 0 &&
Index
< Length, "Index >= 0 && Index < len");
5886
Debug.Assert(char.IsAsciiDigit(Value[
Index
]), "IsDigit(Value[Index])");
5887
return Value[
Index
] - '0';
5899
while (
Index
+ 1 < Length)
5901
char ch = Value[
Index
+ 1];
5920
if (
Index
>= Length)
5932
m_current = Value[
Index
];
6010
sub.index =
Index
;
6012
while (
Index
+ sub.length < Length)
6015
char ch = Value[
Index
+ sub.length];
6060
Debug.Assert(sub.index ==
Index
);
6063
if (
Index
< Length)
6065
m_current = Value[
Index
];