49 writes to Index
System.Private.CoreLib (49)
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (49)
431str.Index = nextCharIndex; 583str.Index += whitespaceCount; 725str.Index = indexBeforeSeparator; 817str.Index = indexBeforeSeparator; 900str.Index = indexBeforeSeparator; 946str.Index = indexBeforeSeparator; 1014str.Index = indexBeforeSeparator; 1152str.Index = originalIndex; 1239str.Index = str.Length; 2958str.Index--; 2997str.Index--; 3012str.Index--; 3022str.Index--; 3139str.Index--; 3148str.Index = startingIndex; 3169str.Index--; 3179str.Index--; 3271str.Index--; 3432str.Index += (maxMatchStrLen - 1); 3533str.Index += (maxMatchStrLen - 1); 3599str.Index += maxMatchStrLen - 1; 3664str.Index += maxMatchStrLen - 1; 3705str.Index += (searchStr.Length - 1); 3712str.Index += (searchStr.Length - 1); 3751str.Index += (searchStr.Length - 1); 3762str.Index += (searchStr.Length - 1); 3767str.Index--; // Undo the GetNext call. 4015str.Index--; 4317str.Index++; 4323str.Index--; 4341str.Index--; // Put the character back for the parser 4390format.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)
2233int i = str.Index; 2267str.Advance(i - str.Index); 2306Debug.Assert(str.Index < str.Value.Length, "DateTimeFormatInfo.Tokenize(): start < value.Length"); 2332int remaining = str.Length - str.Index; 2352int nextCharIndex = str.Index + value.tokenString.Length; 2366((value.tokenString.Length == 1 && str.Value[str.Index] == value.tokenString[0]) || 2367Culture.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)
411if (target.Length > (str.Value.Length - str.Index)) 416if (str.CompareInfo.Compare(str.Value.Slice(str.Index, target.Length), target, CompareOptions.IgnoreCase) != 0) 421int nextCharIndex = str.Index + target.Length; 432if (str.Index < str.Length) 434str.m_current = str.Value[str.Index]; 571if (str.Index < str.Length - 1) 573char nextCh = str.Value[str.Index]; 576while (char.IsWhiteSpace(nextCh) && str.Index + whitespaceCount < str.Length - 1) 579nextCh = str.Value[str.Index + whitespaceCount]; 618Trace($"Lex({Hex(str.Value)})\tpos:{str.Index}({Hex(str.m_current)}), {tokenType}, DS.{dps}"); 646if (str.Index < str.Length - 1) 648char nextCh = str.Value[str.Index]; 662if (str.Index < str.Length - 1) 1135result.SetFailure(ParseFailureKind.Format_UnknownDateTimeWord, str.Index); 1142int originalIndex = str.Index; 1177char ch = str.Value[str.Index]; 1233if (str.Value.Slice(str.Index + 1).ContainsAnyExcept('\0')) 3133int startingIndex = str.Index; 3354ReadOnlySpan<char> span = str.Value.Slice(str.Index); 3455ReadOnlySpan<char> span = str.Value.Slice(str.Index); 3556ReadOnlySpan<char> span = str.Value.Slice(str.Index); 3623ReadOnlySpan<char> span = str.Value.Slice(str.Index); 4384if (!TryParseQuoteString(format.Value, format.Index, ref enquotedString, out tokenLen)) 4432if (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];