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)
462
switch (_regexTree.FindOptimizations.
FindMode
)
490
Debug.Fail($"Unexpected mode: {_regexTree.FindOptimizations.
FindMode
}");
507
switch (_regexTree.FindOptimizations.
FindMode
)
623
int extraNewlineBump = _regexTree.FindOptimizations.
FindMode
== FindNextStartingPositionMode.TrailingAnchor_FixedLength_LeftToRight_EndZ ? 1 : 0;
731
int extraNewlineBump = _regexTree.FindOptimizations.
FindMode
== FindNextStartingPositionMode.TrailingAnchor_FixedLength_LeftToRight_EndZ ? 1 : 0;
757
Debug.Assert(opts.
FindMode
is FindNextStartingPositionMode.LeadingString_LeftToRight or
768
if (opts.
FindMode
is FindNextStartingPositionMode.FixedDistanceString_LeftToRight &&
777
if (opts.
FindMode
is FindNextStartingPositionMode.LeadingStrings_LeftToRight or FindNextStartingPositionMode.LeadingStrings_OrdinalIgnoreCase_LeftToRight)
779
LoadSearchValues(opts.LeadingPrefixes, opts.
FindMode
is FindNextStartingPositionMode.LeadingStrings_OrdinalIgnoreCase_LeftToRight ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal);
784
string literalString = opts.
FindMode
is FindNextStartingPositionMode.LeadingString_LeftToRight or FindNextStartingPositionMode.LeadingString_OrdinalIgnoreCase_LeftToRight ?
787
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