49 writes to Index
System.Private.CoreLib (49)
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (49)
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; 2960str.Index--; 2999str.Index--; 3014str.Index--; 3024str.Index--; 3141str.Index--; 3150str.Index = startingIndex; 3171str.Index--; 3181str.Index--; 3273str.Index--; 3434str.Index += (maxMatchStrLen - 1); 3535str.Index += (maxMatchStrLen - 1); 3601str.Index += maxMatchStrLen - 1; 3666str.Index += maxMatchStrLen - 1; 3707str.Index += (searchStr.Length - 1); 3714str.Index += (searchStr.Length - 1); 3753str.Index += (searchStr.Length - 1); 3764str.Index += (searchStr.Length - 1); 3769str.Index--; // Undo the GetNext call. 4017str.Index--; 4319str.Index++; 4325str.Index--; 4343str.Index--; // Put the character back for the parser 4392format.Index += tokenLen - 1; 4482format.Index += (GMTName.Length - 1); 5411Index = -1; 5432Index++; 5449Index += count; 5479while (++Index < Length) 5511Index = start; // To include the first digit. 5525Index = save; 5533while (++Index < Length) 5682if (++Index < Length && Value.Slice(Index).StartsWith(str)) 5687Index += (str.Length - 1); 5696if (++Index >= Length) 5706Index--; 5760Index = pos - 1; 5767++Index < Length && 5805Index++; 5829while (++Index < Length) 5961Index = sub.index + sub.length;
78 references to Index
System.Private.CoreLib (78)
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\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (71)
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]; 628Trace($"Lex({Hex(str.Value)})\tpos:{str.Index}({Hex(str.m_current)}), {tokenType}, DS.{dps}"); 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')) 3135int startingIndex = str.Index; 3356ReadOnlySpan<char> span = str.Value.Slice(str.Index); 3457ReadOnlySpan<char> span = str.Value.Slice(str.Index); 3558ReadOnlySpan<char> span = str.Value.Slice(str.Index); 3625ReadOnlySpan<char> span = str.Value.Slice(str.Index); 4386if (!TryParseQuoteString(format.Value, format.Index, ref enquotedString, out tokenLen)) 4434if (format.Index >= format.Value.Length - 1 || format.Value[format.Index + 1] == '%') 4669if (str.Index < str.Value.Length - 1) 5433if (Index < Length) 5435m_current = Value[Index]; 5443return Index < Length ? false : true; 5448Debug.Assert(Index + count <= Length, "__DTString::Advance: Index + count <= len"); 5450if (Index < Length) 5452m_current = Value[Index]; 5462if (Index >= Length) 5474int start = Index; 5481m_current = Value[Index]; 5492if (Index - start > DateTimeParse.MaxDateTimeNumberDigits) 5497else if (Index - start < 3) 5508int save = Index; 5512m_current = Value[Index]; 5535m_current = Value[Index]; 5552indexBeforeSeparator = Index; 5580Index + target.Length <= Length && 5581m_info.Compare(Value.Slice(Index, target.Length), target, CompareOptions.IgnoreCase) == 0; 5585int valueRemaining = Value.Length - Index; 5588if (matchLength > valueRemaining || m_info.Compare(Value.Slice(Index, matchLength), target, CompareOptions.IgnoreCase) != 0) 5592int thisPosition = Index; // Where we are in this string 5662int nextCharIndex = Index + matchLength; 5682if (++Index < Length && Value.Slice(Index).StartsWith(str)) 5700if ((Value[Index] == ch) || 5701(ch == ' ' && IsSpaceReplacingChar(Value[Index]))) 5750char repeatChar = Value[Index]; 5751int pos = Index + 1; 5756int repeatCount = (pos - Index); 5768char.IsAsciiDigit(Value[Index]); 5775Debug.Assert(Index >= 0 && Index < Length, "Index >= 0 && Index < len"); 5776return Value[Index]; 5784Debug.Assert(Index >= 0 && Index < Length, "Index >= 0 && Index < len"); 5785Debug.Assert(char.IsAsciiDigit(Value[Index]), "IsDigit(Value[Index])"); 5786return Value[Index] - '0'; 5798while (Index + 1 < Length) 5800char ch = Value[Index + 1]; 5819if (Index >= Length) 5831m_current = Value[Index]; 5909sub.index = Index; 5911while (Index + sub.length < Length) 5914char ch = Value[Index + sub.length]; 5959Debug.Assert(sub.index == Index); 5962if (Index < Length) 5964m_current = Value[Index];