55 references to SetStartIndex
System.Text.RegularExpressions (55)
System\Text\RegularExpressions\RegexCharClass.cs (54)
579int strLength = SetStartIndex + set.Length + category.Length; 600state.set.AsSpan(2).CopyTo(span.Slice(SetStartIndex)); 601index = SetStartIndex + state.set.Length - 2; 608state.set.AsSpan().CopyTo(span.Slice(SetStartIndex)); 609index = SetStartIndex + state.set.Length; 622return set[SetStartIndex]; 648(set[SetStartIndex] == LastChar || set[SetStartIndex] + 1 == set[SetStartIndex + 1]); 655(set[SetStartIndex] == LastChar || set[SetStartIndex] + 1 == set[SetStartIndex + 1]); 680int categoryEnd = SetStartIndex + set[CategoryLengthIndex]; 681for (int pos = SetStartIndex; pos < categoryEnd; pos++) 784set.Length == SetStartIndex + set[SetLengthIndex]) // and no subtraction 789lowInclusive = set[SetStartIndex]; 794lowInclusive = set[SetStartIndex]; 795highInclusive = (char)(set[SetStartIndex + 1] - 1); 815set.Length == SetStartIndex + set[SetLengthIndex]) // and no subtraction 820range0 = (set[SetStartIndex], (char)(set[SetStartIndex + 1] - 1)); 821range1 = (set[SetStartIndex + 2], setLength == 3 ? LastChar : (char)(set[SetStartIndex + 3] - 1)); 867for (int i = SetStartIndex; i < SetStartIndex + setLength; i += 2) 1013for (int i = SetStartIndex; i < SetStartIndex + set2[SetLengthIndex]; i += 2) 1152set.Length > SetStartIndex && 1205char firstValueInclusive = set[SetStartIndex]; 1206char lastValueExclusive = set[SetStartIndex + set[SetLengthIndex] - 1]; 1220ContainsNoAscii = firstValueInclusive == 0 && set[SetStartIndex + 1] >= 128, 1233AllAsciiContained = firstValueInclusive == 0 && set[SetStartIndex + 1] >= 128 && !hasSubtraction, 1242charClass.Length > SetStartIndex + 1325for (int i = SetStartIndex; i < SetStartIndex + set[SetLengthIndex]; i += 2) 1446int endPosition = start + SetStartIndex + setLength + categoryLength; 1472int min = start + SetStartIndex; 1494Debug.Assert((SetStartIndex & 0x1) == 1, "If SetStartIndex is not odd, the calculation below this will be reversed"); 1505return CharInCategory(ch, set.AsSpan(SetStartIndex + start + setLength, categoryLength)); 1604int endPosition = start + SetStartIndex + setLength + categoryLength; 1606int i = start + SetStartIndex; 1630int i = SetStartIndex; 1713return string.Create(SetStartIndex + count, tmpChars, static (span, chars) => 1717span[SetLengthIndex] = (char)(span.Length - SetStartIndex); 1719int i = SetStartIndex; 1772Span<char> headerSpan = vsb.AppendSpan(SetStartIndex); 1794vsb[initialLength + SetLengthIndex] = (char)(vsb.Length - initialLength - SetStartIndex); 2008int endPosition = SetStartIndex + setLength + categoryLength; 2017set[SetStartIndex] + 1 == set[SetStartIndex + 1]) 2019return DescribeChar(set[SetStartIndex]); 2022int index = SetStartIndex; 2029int rangesEnd = SetStartIndex + set[SetLengthIndex]; 2084while (index < SetStartIndex + set[SetLengthIndex] + set[CategoryLengthIndex])
System\Text\RegularExpressions\Symbolic\RegexNodeConverter.cs (1)
383int catStart = setLength + RegexCharClass.SetStartIndex;