89 references to FindNextStartingPositionMode
System.Text.RegularExpressions (89)
System\Text\RegularExpressions\RegexCompiler.cs (41)
461case FindNextStartingPositionMode.LeadingString_LeftToRight: 462case FindNextStartingPositionMode.LeadingString_OrdinalIgnoreCase_LeftToRight: 463case FindNextStartingPositionMode.LeadingStrings_LeftToRight: 464case FindNextStartingPositionMode.LeadingStrings_OrdinalIgnoreCase_LeftToRight: 465case FindNextStartingPositionMode.FixedDistanceString_LeftToRight: 469case FindNextStartingPositionMode.LeadingString_RightToLeft: 473case FindNextStartingPositionMode.LeadingSet_LeftToRight: 474case FindNextStartingPositionMode.FixedDistanceSets_LeftToRight: 478case FindNextStartingPositionMode.LeadingSet_RightToLeft: 482case FindNextStartingPositionMode.LiteralAfterLoop_LeftToRight: 488goto case FindNextStartingPositionMode.NoSearch; 490case FindNextStartingPositionMode.NoSearch: 506case FindNextStartingPositionMode.LeadingAnchor_LeftToRight_Beginning: 516case FindNextStartingPositionMode.LeadingAnchor_LeftToRight_Start: 517case FindNextStartingPositionMode.LeadingAnchor_RightToLeft_Start: 527case FindNextStartingPositionMode.LeadingAnchor_LeftToRight_EndZ: 548case FindNextStartingPositionMode.LeadingAnchor_LeftToRight_End: 565case FindNextStartingPositionMode.LeadingAnchor_RightToLeft_Beginning: 580case FindNextStartingPositionMode.LeadingAnchor_RightToLeft_EndZ: 605case FindNextStartingPositionMode.LeadingAnchor_RightToLeft_End: 616case FindNextStartingPositionMode.TrailingAnchor_FixedLength_LeftToRight_End: 617case FindNextStartingPositionMode.TrailingAnchor_FixedLength_LeftToRight_EndZ: 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 755FindNextStartingPositionMode.LeadingString_OrdinalIgnoreCase_LeftToRight or 756FindNextStartingPositionMode.FixedDistanceString_LeftToRight or 757FindNextStartingPositionMode.LeadingStrings_LeftToRight or 758FindNextStartingPositionMode.LeadingStrings_OrdinalIgnoreCase_LeftToRight); 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); 2689if (_regexTree!.FindOptimizations.FindMode == FindNextStartingPositionMode.LiteralAfterLoop_LeftToRight && 5388FindNextStartingPositionMode.LeadingAnchor_LeftToRight_Beginning or 5389FindNextStartingPositionMode.LeadingAnchor_LeftToRight_Start or 5390FindNextStartingPositionMode.LeadingAnchor_RightToLeft_Start or 5391FindNextStartingPositionMode.LeadingAnchor_RightToLeft_End)
System\Text\RegularExpressions\RegexFindOptimizations.cs (48)
36(RegexNodeKind.Beginning, false) => FindNextStartingPositionMode.LeadingAnchor_LeftToRight_Beginning, 37(RegexNodeKind.Beginning, true) => FindNextStartingPositionMode.LeadingAnchor_RightToLeft_Beginning, 38(RegexNodeKind.Start, false) => FindNextStartingPositionMode.LeadingAnchor_LeftToRight_Start, 39(RegexNodeKind.Start, true) => FindNextStartingPositionMode.LeadingAnchor_RightToLeft_Start, 40(RegexNodeKind.End, false) => FindNextStartingPositionMode.LeadingAnchor_LeftToRight_End, 41(RegexNodeKind.End, true) => FindNextStartingPositionMode.LeadingAnchor_RightToLeft_End, 42(_, false) => FindNextStartingPositionMode.LeadingAnchor_LeftToRight_EndZ, 43(_, true) => FindNextStartingPositionMode.LeadingAnchor_RightToLeft_EndZ, 61FindNextStartingPositionMode.TrailingAnchor_FixedLength_LeftToRight_End : 62FindNextStartingPositionMode.TrailingAnchor_FixedLength_LeftToRight_EndZ; 74FindNextStartingPositionMode.LeadingString_RightToLeft : 75FindNextStartingPositionMode.LeadingString_LeftToRight; 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; 229FindNextStartingPositionMode.LeadingSet_LeftToRight : 230FindNextStartingPositionMode.FixedDistanceSets_LeftToRight; 240FindMode = FindNextStartingPositionMode.LiteralAfterLoop_LeftToRight; 249FindMode != FindNextStartingPositionMode.NoSearch || // there's a searching scheme available 253public FindNextStartingPositionMode FindMode { get; } = FindNextStartingPositionMode.NoSearch; 386case FindNextStartingPositionMode.LeadingAnchor_RightToLeft_Beginning: 396case FindNextStartingPositionMode.LeadingAnchor_RightToLeft_Start: 408case FindNextStartingPositionMode.LeadingAnchor_RightToLeft_EndZ: 418case FindNextStartingPositionMode.LeadingAnchor_RightToLeft_End: 430case FindNextStartingPositionMode.LeadingString_RightToLeft: 445case FindNextStartingPositionMode.LeadingChar_RightToLeft: 460case FindNextStartingPositionMode.LeadingSet_RightToLeft: 482Debug.Assert(FindMode == FindNextStartingPositionMode.NoSearch); 535case FindNextStartingPositionMode.LeadingAnchor_LeftToRight_Beginning: 544case FindNextStartingPositionMode.LeadingAnchor_LeftToRight_Start: 553case FindNextStartingPositionMode.LeadingAnchor_LeftToRight_EndZ: 562case FindNextStartingPositionMode.LeadingAnchor_LeftToRight_End: 571case FindNextStartingPositionMode.TrailingAnchor_FixedLength_LeftToRight_EndZ: 578case FindNextStartingPositionMode.TrailingAnchor_FixedLength_LeftToRight_End: 587case FindNextStartingPositionMode.LeadingString_LeftToRight: 602case FindNextStartingPositionMode.LeadingString_OrdinalIgnoreCase_LeftToRight: 617case FindNextStartingPositionMode.LeadingSet_LeftToRight: 661case FindNextStartingPositionMode.FixedDistanceChar_LeftToRight: 676case FindNextStartingPositionMode.FixedDistanceString_LeftToRight: 692case FindNextStartingPositionMode.LeadingStrings_LeftToRight: 693case FindNextStartingPositionMode.LeadingStrings_OrdinalIgnoreCase_LeftToRight: 710case FindNextStartingPositionMode.FixedDistanceSets_LeftToRight: 787case FindNextStartingPositionMode.LiteralAfterLoop_LeftToRight: 835Debug.Assert(FindMode == FindNextStartingPositionMode.NoSearch, $"Unexpected FindMode {FindMode}");