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