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)
459switch (_regexTree.FindOptimizations.FindMode) 487Debug.Fail($"Unexpected mode: {_regexTree.FindOptimizations.FindMode}"); 504switch (_regexTree.FindOptimizations.FindMode) 620int extraNewlineBump = _regexTree.FindOptimizations.FindMode == FindNextStartingPositionMode.TrailingAnchor_FixedLength_LeftToRight_EndZ ? 1 : 0; 728int extraNewlineBump = _regexTree.FindOptimizations.FindMode == FindNextStartingPositionMode.TrailingAnchor_FixedLength_LeftToRight_EndZ ? 1 : 0; 754Debug.Assert(opts.FindMode is FindNextStartingPositionMode.LeadingString_LeftToRight or 765if (opts.FindMode is FindNextStartingPositionMode.FixedDistanceString_LeftToRight && 774if (opts.FindMode is FindNextStartingPositionMode.LeadingStrings_LeftToRight or FindNextStartingPositionMode.LeadingStrings_OrdinalIgnoreCase_LeftToRight) 776LoadSearchValues(opts.LeadingPrefixes, opts.FindMode is FindNextStartingPositionMode.LeadingStrings_OrdinalIgnoreCase_LeftToRight ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal); 781string literalString = opts.FindMode is FindNextStartingPositionMode.LeadingString_LeftToRight or FindNextStartingPositionMode.LeadingString_OrdinalIgnoreCase_LeftToRight ? 784LoadSearchValues([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