50 writes to Index
System.Private.CoreLib (50)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (50)
441str.Index = nextCharIndex; 593str.Index += whitespaceCount; 734str.Index = indexBeforeSeparator; 825str.Index = indexBeforeSeparator; 908str.Index = indexBeforeSeparator; 953str.Index = indexBeforeSeparator; 1020str.Index = indexBeforeSeparator; 1158str.Index = originalIndex; 1245str.Index = str.Length; 2988str.Index--; 3027str.Index--; 3042str.Index--; 3052str.Index--; 3195str.Index--; 3204str.Index = startingIndex; 3225str.Index--; 3235str.Index--; 3327str.Index--; 3488str.Index += (maxMatchStrLen - 1); 3589str.Index += (maxMatchStrLen - 1); 3655str.Index += maxMatchStrLen - 1; 3720str.Index += maxMatchStrLen - 1; 3761str.Index += (searchStr.Length - 1); 3768str.Index += (searchStr.Length - 1); 3812str.Index += (pmDesignator.Length - 1); 3818str.Index += (amDesignator.Length - 1); 3830str.Index += (pmDesignator.Length - 1); 3835str.Index--; // Undo the GetNext call. 4083str.Index--; 4385str.Index++; 4391str.Index--; 4409str.Index--; // Put the character back for the parser 4458format.Index += tokenLen - 1; 4548format.Index += (GMTName.Length - 1); 5516Index = -1; 5537Index++; 5554Index += count; 5584while (++Index < Length) 5616Index = start; // To include the first digit. 5630Index = save; 5638while (++Index < Length) 5787if (++Index < Length && Value.Slice(Index).StartsWith(str)) 5792Index += (str.Length - 1); 5801if (++Index >= Length) 5811Index--; 5865Index = pos - 1; 5872++Index < Length && 5910Index++; 5934while (++Index < Length) 6066Index = 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)
2227int i = str.Index; 2261str.Advance(i - str.Index); 2300Debug.Assert(str.Index < str.Value.Length, "DateTimeFormatInfo.Tokenize(): start < value.Length"); 2326int remaining = str.Length - str.Index; 2346int nextCharIndex = str.Index + value.tokenString.Length; 2360((value.tokenString.Length == 1 && str.Value[str.Index] == value.tokenString[0]) || 2361Culture.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)
421if (target.Length > (str.Value.Length - str.Index)) 426if (str.CompareInfo.Compare(str.Value.Slice(str.Index, target.Length), target, CompareOptions.IgnoreCase) != 0) 431int nextCharIndex = str.Index + target.Length; 442if (str.Index < str.Length) 444str.m_current = str.Value[str.Index]; 581if (str.Index < str.Length - 1) 583char nextCh = str.Value[str.Index]; 586while (char.IsWhiteSpace(nextCh) && str.Index + whitespaceCount < str.Length - 1) 589nextCh = str.Value[str.Index + whitespaceCount]; 656if (str.Index < str.Length - 1) 658char nextCh = str.Value[str.Index]; 672if (str.Index < str.Length - 1) 1141result.SetFailure(ParseFailureKind.Format_UnknownDateTimeWord, str.Index); 1148int originalIndex = str.Index; 1183char ch = str.Value[str.Index]; 1239if (str.Value.Slice(str.Index + 1).ContainsAnyExcept('\0')) 3189int startingIndex = str.Index; 3410ReadOnlySpan<char> span = str.Value.Slice(str.Index); 3511ReadOnlySpan<char> span = str.Value.Slice(str.Index); 3612ReadOnlySpan<char> span = str.Value.Slice(str.Index); 3679ReadOnlySpan<char> span = str.Value.Slice(str.Index); 4452if (!TryParseQuoteString(format.Value, format.Index, ref enquotedString, out tokenLen)) 4500if (format.Index >= format.Value.Length - 1 || format.Value[format.Index + 1] == '%') 4735if (str.Index < str.Value.Length - 1) 5538if (Index < Length) 5540m_current = Value[Index]; 5548return Index < Length ? false : true; 5553Debug.Assert(Index + count <= Length, "__DTString::Advance: Index + count <= len"); 5555if (Index < Length) 5557m_current = Value[Index]; 5567if (Index >= Length) 5579int start = Index; 5586m_current = Value[Index]; 5597if (Index - start > DateTimeParse.MaxDateTimeNumberDigits) 5602else if (Index - start < 3) 5613int save = Index; 5617m_current = Value[Index]; 5640m_current = Value[Index]; 5657indexBeforeSeparator = Index; 5685Index + target.Length <= Length && 5686m_info.Compare(Value.Slice(Index, target.Length), target, CompareOptions.IgnoreCase) == 0; 5690int valueRemaining = Value.Length - Index; 5693if (matchLength > valueRemaining || m_info.Compare(Value.Slice(Index, matchLength), target, CompareOptions.IgnoreCase) != 0) 5697int thisPosition = Index; // Where we are in this string 5767int nextCharIndex = Index + matchLength; 5787if (++Index < Length && Value.Slice(Index).StartsWith(str)) 5805if ((Value[Index] == ch) || 5806(ch == ' ' && IsSpaceReplacingChar(Value[Index]))) 5855char repeatChar = Value[Index]; 5856int pos = Index + 1; 5861int repeatCount = (pos - Index); 5873char.IsAsciiDigit(Value[Index]); 5880Debug.Assert(Index >= 0 && Index < Length, "Index >= 0 && Index < len"); 5881return Value[Index]; 5889Debug.Assert(Index >= 0 && Index < Length, "Index >= 0 && Index < len"); 5890Debug.Assert(char.IsAsciiDigit(Value[Index]), "IsDigit(Value[Index])"); 5891return Value[Index] - '0'; 5903while (Index + 1 < Length) 5905char ch = Value[Index + 1]; 5924if (Index >= Length) 5936m_current = Value[Index]; 6014sub.index = Index; 6016while (Index + sub.length < Length) 6019char ch = Value[Index + sub.length]; 6064Debug.Assert(sub.index == Index); 6067if (Index < Length) 6069m_current = Value[Index];