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