1 instantiation of RegexFindOptimizations
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\RegexTree.cs (1)
80
FindOptimizations = new
RegexFindOptimizations
(root, options);
27 references to RegexFindOptimizations
System.Text.RegularExpressions (27)
System\Text\RegularExpressions\RegexCompiler.cs (4)
756
RegexFindOptimizations
opts = _regexTree.FindOptimizations;
846
List<
RegexFindOptimizations
.FixedDistanceSet>? sets = _regexTree.FindOptimizations.FixedDistanceSets;
847
RegexFindOptimizations
.FixedDistanceSet primarySet = sets![0];
1177
RegexFindOptimizations
.FixedDistanceSet set = _regexTree.FindOptimizations.FixedDistanceSets![0];
System\Text\RegularExpressions\RegexInterpreterCode.cs (2)
10
internal sealed class RegexInterpreterCode(
RegexFindOptimizations
findOptimizations, RegexOptions options, int[] codes, string[] strings, int trackcount)
13
public readonly
RegexFindOptimizations
FindOptimizations = findOptimizations;
System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (14)
511
public static List<
RegexFindOptimizations
.FixedDistanceSet>? FindFixedDistanceSets(RegexNode root, bool thorough)
517
var results = new List<
RegexFindOptimizations
.FixedDistanceSet>();
548
results.Add(new
RegexFindOptimizations
.FixedDistanceSet(null, charClass, 0));
556
RegexFindOptimizations
.FixedDistanceSet result = results[i];
586
static bool TryFindRawFixedSets(RegexNode node, List<
RegexFindOptimizations
.FixedDistanceSet> results, ref int distance, bool thorough)
604
results.Add(new
RegexFindOptimizations
.FixedDistanceSet(null, setString, distance++));
616
results.Add(new
RegexFindOptimizations
.FixedDistanceSet(null, setString, distance++));
628
results.Add(new
RegexFindOptimizations
.FixedDistanceSet(null, setString, distance++));
636
results.Add(new
RegexFindOptimizations
.FixedDistanceSet(null, node.Str!, distance++));
647
results.Add(new
RegexFindOptimizations
.FixedDistanceSet(null, node.Str!, distance++));
716
var localResults = new List<
RegexFindOptimizations
.FixedDistanceSet>();
740
foreach (
RegexFindOptimizations
.FixedDistanceSet fixedSet in localResults)
767
results.Add(new
RegexFindOptimizations
.FixedDistanceSet(null, pair.Value.Set.ToStringClass(), pair.Key + distance));
788
public static void SortFixedDistanceSetsByQuality(List<
RegexFindOptimizations
.FixedDistanceSet> results) =>
System\Text\RegularExpressions\RegexTree.cs (1)
21
public readonly
RegexFindOptimizations
FindOptimizations;
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.cs (6)
82
private readonly
RegexFindOptimizations
? _findOpts;
149
int captureCount,
RegexFindOptimizations
findOptimizations,
169
private SymbolicRegexMatcher(SymbolicRegexBuilder<TSet> builder, SymbolicRegexNode<TSet> rootNode, int captureCount,
RegexFindOptimizations
findOptimizations, TimeSpan matchTimeout)
1534
/// <summary>Provides a handler that uses the matcher's <see cref="
RegexFindOptimizations
"/> to optimize searching for the next viable starting state.</summary>
1564
/// <summary>Provides a handler that uses the matcher's <see cref="
RegexFindOptimizations
"/> to optimize searching for the next viable starting state.</summary>
1595
/// <summary>Provides a handler that uses the matcher's <see cref="
RegexFindOptimizations
"/> to optimize searching for the next viable starting state.</summary>