1 instantiation of RegexFindOptimizations
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\RegexTree.cs (1)
80FindOptimizations = new RegexFindOptimizations(root, options);
27 references to RegexFindOptimizations
System.Text.RegularExpressions (27)
System\Text\RegularExpressions\RegexCompiler.cs (4)
756RegexFindOptimizations opts = _regexTree.FindOptimizations; 846List<RegexFindOptimizations.FixedDistanceSet>? sets = _regexTree.FindOptimizations.FixedDistanceSets; 847RegexFindOptimizations.FixedDistanceSet primarySet = sets![0]; 1177RegexFindOptimizations.FixedDistanceSet set = _regexTree.FindOptimizations.FixedDistanceSets![0];
System\Text\RegularExpressions\RegexInterpreterCode.cs (2)
10internal sealed class RegexInterpreterCode(RegexFindOptimizations findOptimizations, RegexOptions options, int[] codes, string[] strings, int trackcount) 13public readonly RegexFindOptimizations FindOptimizations = findOptimizations;
System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (14)
511public static List<RegexFindOptimizations.FixedDistanceSet>? FindFixedDistanceSets(RegexNode root, bool thorough) 517var results = new List<RegexFindOptimizations.FixedDistanceSet>(); 548results.Add(new RegexFindOptimizations.FixedDistanceSet(null, charClass, 0)); 556RegexFindOptimizations.FixedDistanceSet result = results[i]; 586static bool TryFindRawFixedSets(RegexNode node, List<RegexFindOptimizations.FixedDistanceSet> results, ref int distance, bool thorough) 604results.Add(new RegexFindOptimizations.FixedDistanceSet(null, setString, distance++)); 616results.Add(new RegexFindOptimizations.FixedDistanceSet(null, setString, distance++)); 628results.Add(new RegexFindOptimizations.FixedDistanceSet(null, setString, distance++)); 636results.Add(new RegexFindOptimizations.FixedDistanceSet(null, node.Str!, distance++)); 647results.Add(new RegexFindOptimizations.FixedDistanceSet(null, node.Str!, distance++)); 716var localResults = new List<RegexFindOptimizations.FixedDistanceSet>(); 740foreach (RegexFindOptimizations.FixedDistanceSet fixedSet in localResults) 767results.Add(new RegexFindOptimizations.FixedDistanceSet(null, pair.Value.Set.ToStringClass(), pair.Key + distance)); 788public static void SortFixedDistanceSetsByQuality(List<RegexFindOptimizations.FixedDistanceSet> results) =>
System\Text\RegularExpressions\RegexTree.cs (1)
21public readonly RegexFindOptimizations FindOptimizations;
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.cs (6)
82private readonly RegexFindOptimizations? _findOpts; 149int captureCount, RegexFindOptimizations findOptimizations, 169private 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>