3 writes to FixedDistanceLiteral
System.Text.RegularExpressions (3)
System\Text\RegularExpressions\RegexFindOptimizations.cs (3)
143FixedDistanceLiteral = (chars[0], null, 0); 210FixedDistanceLiteral = ('\0', bestFixedDistanceString.String, bestFixedDistanceString.Distance); 243FixedDistanceLiteral = (fixedDistanceSets[0].Chars![0], null, fixedDistanceSets[0].Distance);
9 references to FixedDistanceLiteral
System.Text.RegularExpressions (9)
System\Text\RegularExpressions\RegexCompiler.cs (2)
769opts.FixedDistanceLiteral is { Distance: > 0 } literal) 786opts.FixedDistanceLiteral.String!;
System\Text\RegularExpressions\RegexFindOptimizations.cs (7)
477int i = textSpan.Slice(0, pos).LastIndexOf(FixedDistanceLiteral.Char); 693Debug.Assert(FixedDistanceLiteral.Distance <= MinRequiredLength); 695int i = textSpan.Slice(pos + FixedDistanceLiteral.Distance).IndexOf(FixedDistanceLiteral.Char); 708Debug.Assert(FixedDistanceLiteral.Distance <= MinRequiredLength); 710int i = textSpan.Slice(pos + FixedDistanceLiteral.Distance).IndexOf(FixedDistanceLiteral.String.AsSpan());