48 writes to Index
mscorlib (48)
system\globalization\datetimeparse.cs (48)
435str.Index = nextCharIndex; 579str.Index += whitespaceCount; 721str.Index = indexBeforeSeparator; 811str.Index = indexBeforeSeparator; 887str.Index = indexBeforeSeparator; 927str.Index = indexBeforeSeparator; 991str.Index = indexBeforeSeparator; 1108str.Index = originalIndex; 1180str.Index = str.len; 2757str.Index--; 2789str.Index--; 2806str.Index--; 2908str.Index--; 2915str.Index = startingIndex; 2933str.Index--; 2941str.Index--; 3018str.Index--; 3082str.Index += (maxMatchStrLen - 1); 3146str.Index += (maxMatchStrLen - 1); 3178str.Index += maxMatchStrLen - 1; 3211str.Index += maxMatchStrLen - 1; 3233str.Index += (searchStr.Length - 1); 3239str.Index += (searchStr.Length - 1); 3272str.Index += (searchStr.Length - 1); 3281str.Index += (searchStr.Length - 1); 3286str.Index--; // Undo the GetNext call. 3508str.Index--; 3751str.Index++; 3756str.Index--; 3771str.Index--; // Put the character back for the parser 3815format.Index += tokenLen - 1; 3917format.Index += (GMTName.Length - 1); 4372Index = -1; 4403Index++; 4418Index += count; 4448while (++Index < len) 4472Index = start; // To include the first digit. 4487Index = save; 4495while (++Index < len) { 4624if (++Index >= len) { 4636Index += (str.Length - 1); 4643if (++Index >= len) { 4650Index--; 4696Index = pos - 1; 4702if (++Index >= len) { 4740Index++; 4761while (++Index < len) 4875Index = sub.index + sub.length;
74 references to Index
mscorlib (74)
system\globalization\datetimeformatinfo.cs (6)
2706int i = str.Index; 2736str.Advance(i - str.Index); 2774Contract.Assert(str.Index < str.Value.Length, "DateTimeFormatInfo.Tokenize(): start < value.Length"); 2798int remaining = str.len - str.Index; 2813if (String.Compare(str.Value, str.Index, value.tokenString, 0, value.tokenString.Length, this.Culture, CompareOptions.IgnoreCase)==0) { 2817if ((nextCharIndex = str.Index + value.tokenString.Length) < str.len) {
system\globalization\datetimeparse.cs (68)
418if (length > (str.Value.Length - str.Index)) { 422if (str.CompareInfo.Compare(str.Value, str.Index, length, 427int nextCharIndex = str.Index + target.Length; 436if (str.Index < str.len) { 437str.m_current = str.Value[str.Index]; 570if ((str.Index < str.len - 1)) { 571char nextCh = str.Value[str.Index]; 574while (Char.IsWhiteSpace(nextCh) && str.Index + whitespaceCount < str.len - 1) { 576nextCh = str.Value[str.Index + whitespaceCount]; 650if ((str.Index < str.len - 1)) { 651char nextCh = str.Value[str.Index]; 662if ((str.Index < str.len - 1)) { 1084result.SetFailure(ParseFailureKind.FormatWithParameter, "Format_UnknowDateTimeWord", str.Index); 1100Int32 originalIndex = str.Index; 1131Char ch = str.Value[str.Index]; 1173for (int i = str.Index; i < str.len; i++) { 2904int startingIndex = str.Index; 3811if (!TryParseQuoteString(format.Value, format.Index, enquotedString, out tokenLen)) { 3853if (format.Index >= format.Value.Length - 1 || format.Value[format.Index + 1] == '%') { 4077if (str.Index < str.Value.Length - 1) { 4404if (Index < len) { 4405m_current = Value[Index]; 4413return Index < len ? false : true; 4417Contract.Assert(Index + count <= len, "__DTString::Advance: Index + count <= len"); 4419if (Index < len) { 4420m_current = Value[Index]; 4431if (Index >= len) { 4443int start = Index; 4450m_current = Value[Index]; 4458if (Index - start > DateTimeParse.MaxDateTimeNumberDigits) { 4461} else if (Index - start < 3) { 4469int save = Index; 4473m_current = Value[Index]; 4496m_current = Value[Index]; 4510indexBeforeSeparator = Index; 4533return MatchSpecifiedWord(target, target.Length + Index); 4537int count = endIndex - Index; 4543if (Index + count > len) { 4547return (m_info.Compare(Value, Index, count, target, 0, count, CompareOptions.IgnoreCase)==0); 4553int valueRemaining = Value.Length - Index; 4556if (matchLength > valueRemaining || m_info.Compare(Value, Index, matchLength, target, 0, matchLength, CompareOptions.IgnoreCase) !=0) { 4559int thisPosition = Index; // Where we are in this string 4607int nextCharIndex = Index + matchLength; 4628if (str.Length > (Value.Length - Index)) { 4632if (m_info.Compare(Value, Index, str.Length, str, 0, str.Length, CompareOptions.Ordinal)==0) { 4646if (Value[Index] == ch) { 4687char repeatChar = Value[Index]; 4688int pos = Index + 1; 4692int repeatCount = (pos - Index); 4705return (DateTimeParse.IsDigit(Value[Index])); 4712Contract.Assert(Index >= 0 && Index < len, "Index >= 0 && Index < len"); 4713return (Value[Index]); 4720Contract.Assert(Index >= 0 && Index < len, "Index >= 0 && Index < len"); 4721Contract.Assert(DateTimeParse.IsDigit(Value[Index]), "IsDigit(Value[Index])"); 4722return (Value[Index] - '0'); 4734while (Index+1 < len) 4736char ch = Value[Index+1]; 4752if (Index >= len) { 4763m_current = Value[Index]; 4825sub.index = Index; 4827while (Index + sub.length < len) { 4829Char ch = Value[Index + sub.length]; 4873Contract.Assert(sub.index == Index, "sub.index == Index"); 4876if (Index < len) { 4877m_current = Value[Index];