11 writes to FindMode
System.Text.RegularExpressions (11)
System\Text\RegularExpressions\RegexFindOptimizations.cs (11)
34FindMode = (LeadingAnchor, _rightToLeft) switch 60FindMode = TrailingAnchor == RegexNodeKind.End ? 73FindMode = _rightToLeft ? 114FindMode = FindNextStartingPositionMode.LeadingChar_RightToLeft; 124FindMode = FindNextStartingPositionMode.LeadingSet_RightToLeft; 137FindMode = FindNextStartingPositionMode.LeadingString_OrdinalIgnoreCase_LeftToRight; 149FindMode = FindNextStartingPositionMode.LeadingStrings_OrdinalIgnoreCase_LeftToRight; 179FindMode = FindNextStartingPositionMode.FixedDistanceString_LeftToRight; 214FindMode = FindNextStartingPositionMode.FixedDistanceChar_LeftToRight; 228FindMode = (fixedDistanceSets.Count == 1 && fixedDistanceSets[0].Distance == 0) ? 240FindMode = FindNextStartingPositionMode.LiteralAfterLoop_LeftToRight;
12 references to FindMode
System.Text.RegularExpressions (12)
System\Text\RegularExpressions\RegexCompiler.cs (11)
462switch (_regexTree.FindOptimizations.FindMode) 490Debug.Fail($"Unexpected mode: {_regexTree.FindOptimizations.FindMode}"); 507switch (_regexTree.FindOptimizations.FindMode) 623int extraNewlineBump = _regexTree.FindOptimizations.FindMode == FindNextStartingPositionMode.TrailingAnchor_FixedLength_LeftToRight_EndZ ? 1 : 0; 731int extraNewlineBump = _regexTree.FindOptimizations.FindMode == FindNextStartingPositionMode.TrailingAnchor_FixedLength_LeftToRight_EndZ ? 1 : 0; 757Debug.Assert(opts.FindMode is FindNextStartingPositionMode.LeadingString_LeftToRight or 768if (opts.FindMode is FindNextStartingPositionMode.FixedDistanceString_LeftToRight && 777if (opts.FindMode is FindNextStartingPositionMode.LeadingStrings_LeftToRight or FindNextStartingPositionMode.LeadingStrings_OrdinalIgnoreCase_LeftToRight) 779LoadSearchValues(opts.LeadingPrefixes, opts.FindMode is FindNextStartingPositionMode.LeadingStrings_OrdinalIgnoreCase_LeftToRight ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal); 784string literalString = opts.FindMode is FindNextStartingPositionMode.LeadingString_LeftToRight or FindNextStartingPositionMode.LeadingString_OrdinalIgnoreCase_LeftToRight ? 787LoadSearchValues([literalString], opts.FindMode is FindNextStartingPositionMode.LeadingString_OrdinalIgnoreCase_LeftToRight ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal);
System\Text\RegularExpressions\RegexFindOptimizations.cs (1)
249FindMode != FindNextStartingPositionMode.NoSearch || // there's a searching scheme available