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