9 references to RegexPrefixAnalyzer
System.Text.RegularExpressions (9)
System\Text\RegularExpressions\RegexFindOptimizations.cs (9)
26LeadingAnchor = RegexPrefixAnalyzer.FindLeadingAnchor(root); 52TrailingAnchor = RegexPrefixAnalyzer.FindTrailingAnchor(root); 69string? prefix = RegexPrefixAnalyzer.FindPrefix(root); 95if (RegexPrefixAnalyzer.FindFirstCharClass(root) is string charClass) 133prefix = RegexPrefixAnalyzer.FindPrefixOrdinalCaseInsensitive(root); 146if (RegexPrefixAnalyzer.FindPrefixes(root, ignoreCase: true) is { Length: > 1 } caseInsensitivePrefixes) 171List<FixedDistanceSet>? fixedDistanceSets = RegexPrefixAnalyzer.FindFixedDistanceSets(root, thorough: !interpreter); 187(RegexNode LoopNode, (char Char, string? String, StringComparison StringComparison, char[]? Chars) Literal)? literalAfterLoop = RegexPrefixAnalyzer.FindLiteralFollowingLeadingLoop(root); 198RegexPrefixAnalyzer.SortFixedDistanceSetsByQuality(fixedDistanceSets);