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. 4102str.Index--; 4404str.Index++; 4410str.Index--; 4428str.Index--; // Put the character back for the parser 4477format.Index += tokenLen - 1; 4567format.Index += (GMTName.Length - 1); 5535Index = -1; 5556Index++; 5573Index += count; 5603while (++Index < Length) 5635Index = start; // To include the first digit. 5649Index = save; 5657while (++Index < Length) 5806if (++Index < Length && Value.Slice(Index).StartsWith(str)) 5811Index += (str.Length - 1); 5820if (++Index >= Length) 5830Index--; 5884Index = pos - 1; 5891++Index < Length && 5929Index++; 5953while (++Index < Length) 6085Index = 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) 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); 3884if (str.Index + 1 >= str.Length || str.Value[str.Index + 1] != designator[1]) 4471if (!TryParseQuoteString(format.Value, format.Index, ref enquotedString, out tokenLen)) 4519if (format.Index >= format.Value.Length - 1 || format.Value[format.Index + 1] == '%') 4754if (str.Index < str.Value.Length - 1) 5557if (Index < Length) 5559m_current = Value[Index]; 5567return Index < Length ? false : true; 5572Debug.Assert(Index + count <= Length, "__DTString::Advance: Index + count <= len"); 5574if (Index < Length) 5576m_current = Value[Index]; 5586if (Index >= Length) 5598int start = Index; 5605m_current = Value[Index]; 5616if (Index - start > DateTimeParse.MaxDateTimeNumberDigits) 5621else if (Index - start < 3) 5632int save = Index; 5636m_current = Value[Index]; 5659m_current = Value[Index]; 5676indexBeforeSeparator = Index; 5704Index + target.Length <= Length && 5705m_info.Compare(Value.Slice(Index, target.Length), target, CompareOptions.IgnoreCase) == 0; 5709int valueRemaining = Value.Length - Index; 5712if (matchLength > valueRemaining || m_info.Compare(Value.Slice(Index, matchLength), target, CompareOptions.IgnoreCase) != 0) 5716int thisPosition = Index; // Where we are in this string 5786int nextCharIndex = Index + matchLength; 5806if (++Index < Length && Value.Slice(Index).StartsWith(str)) 5824if ((Value[Index] == ch) || 5825(ch == ' ' && IsSpaceReplacingChar(Value[Index]))) 5874char repeatChar = Value[Index]; 5875int pos = Index + 1; 5880int repeatCount = (pos - Index); 5892char.IsAsciiDigit(Value[Index]); 5899Debug.Assert(Index >= 0 && Index < Length, "Index >= 0 && Index < len"); 5900return Value[Index]; 5908Debug.Assert(Index >= 0 && Index < Length, "Index >= 0 && Index < len"); 5909Debug.Assert(char.IsAsciiDigit(Value[Index]), "IsDigit(Value[Index])"); 5910return Value[Index] - '0'; 5922while (Index + 1 < Length) 5924char ch = Value[Index + 1]; 5943if (Index >= Length) 5955m_current = Value[Index]; 6033sub.index = Index; 6035while (Index + sub.length < Length) 6038char ch = Value[Index + sub.length]; 6083Debug.Assert(sub.index == Index); 6086if (Index < Length) 6088m_current = Value[Index];