50 writes to Index
System.Private.CoreLib (50)
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); 5512Index = -1; 5533Index++; 5550Index += count; 5580while (++Index < Length) 5612Index = start; // To include the first digit. 5626Index = save; 5634while (++Index < Length) 5783if (++Index < Length && Value.Slice(Index).StartsWith(str)) 5788Index += (str.Length - 1); 5797if (++Index >= Length) 5807Index--; 5861Index = pos - 1; 5868++Index < Length && 5906Index++; 5930while (++Index < Length) 6062Index = 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')) 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) 5534if (Index < Length) 5536m_current = Value[Index]; 5544return Index < Length ? false : true; 5549Debug.Assert(Index + count <= Length, "__DTString::Advance: Index + count <= len"); 5551if (Index < Length) 5553m_current = Value[Index]; 5563if (Index >= Length) 5575int start = Index; 5582m_current = Value[Index]; 5593if (Index - start > DateTimeParse.MaxDateTimeNumberDigits) 5598else if (Index - start < 3) 5609int save = Index; 5613m_current = Value[Index]; 5636m_current = Value[Index]; 5653indexBeforeSeparator = Index; 5681Index + target.Length <= Length && 5682m_info.Compare(Value.Slice(Index, target.Length), target, CompareOptions.IgnoreCase) == 0; 5686int valueRemaining = Value.Length - Index; 5689if (matchLength > valueRemaining || m_info.Compare(Value.Slice(Index, matchLength), target, CompareOptions.IgnoreCase) != 0) 5693int thisPosition = Index; // Where we are in this string 5763int nextCharIndex = Index + matchLength; 5783if (++Index < Length && Value.Slice(Index).StartsWith(str)) 5801if ((Value[Index] == ch) || 5802(ch == ' ' && IsSpaceReplacingChar(Value[Index]))) 5851char repeatChar = Value[Index]; 5852int pos = Index + 1; 5857int repeatCount = (pos - Index); 5869char.IsAsciiDigit(Value[Index]); 5876Debug.Assert(Index >= 0 && Index < Length, "Index >= 0 && Index < len"); 5877return Value[Index]; 5885Debug.Assert(Index >= 0 && Index < Length, "Index >= 0 && Index < len"); 5886Debug.Assert(char.IsAsciiDigit(Value[Index]), "IsDigit(Value[Index])"); 5887return Value[Index] - '0'; 5899while (Index + 1 < Length) 5901char ch = Value[Index + 1]; 5920if (Index >= Length) 5932m_current = Value[Index]; 6010sub.index = Index; 6012while (Index + sub.length < Length) 6015char ch = Value[Index + sub.length]; 6060Debug.Assert(sub.index == Index); 6063if (Index < Length) 6065m_current = Value[Index];