50 references to RegexRunnerMode
System.Text.RegularExpressions (50)
System\Text\RegularExpressions\Match.cs (4)
103r.RunSingleMatch(RegexRunnerMode.FullMatchRequired, Length, Text, _textbeg, _textend - _textbeg, _textpos)! : 265internal void Tidy(int textpos, int beginningOfSpanSlice, RegexRunnerMode mode) 267Debug.Assert(mode != RegexRunnerMode.ExistenceRequired); 290if (mode == RegexRunnerMode.FullMatchRequired)
System\Text\RegularExpressions\MatchCollection.cs (1)
92match = _regex.RunSingleMatch(RegexRunnerMode.FullMatchRequired, _prevlen, _input, 0, _input.Length, _startat)!;
System\Text\RegularExpressions\Regex.Count.cs (2)
27}, RegexRunnerMode.BoundsRequired, reuseMatchObject: true); 54}, RegexRunnerMode.BoundsRequired, reuseMatchObject: true);
System\Text\RegularExpressions\Regex.cs (9)
413internal Match? RunSingleMatch(RegexRunnerMode mode, int prevlen, string input, int beginning, int length, int startat) 451return ScanInternal(mode, reuseMatchObject: mode == RegexRunnerMode.ExistenceRequired, input, beginning, runner, span, returnNullIfReuseMatchObject: true); 461internal (bool Success, int Index, int Length, int TextPosition) RunSingleMatch(RegexRunnerMode mode, int prevlen, ReadOnlySpan<char> input, int startat) 463Debug.Assert(mode <= RegexRunnerMode.BoundsRequired); 503if (mode == RegexRunnerMode.ExistenceRequired) 521internal void RunAllMatchesWithCallback<TState>(string? input, int startat, ref TState state, MatchCallback<TState> callback, RegexRunnerMode mode, bool reuseMatchObject) => 524internal void RunAllMatchesWithCallback<TState>(ReadOnlySpan<char> input, int startat, ref TState state, MatchCallback<TState> callback, RegexRunnerMode mode, bool reuseMatchObject) => 527private void RunAllMatchesWithCallback<TState>(string? inputString, ReadOnlySpan<char> inputSpan, int startat, ref TState state, MatchCallback<TState> callback, RegexRunnerMode mode, bool reuseMatchObject) 607private static Match? ScanInternal(RegexRunnerMode mode, bool reuseMatchObject, string? input, int beginning, RegexRunner runner, ReadOnlySpan<char> span, bool returnNullIfReuseMatchObject)
System\Text\RegularExpressions\Regex.EnumerateMatches.cs (1)
143(bool Success, int Index, int Length, int TextPosition) match = _regex.RunSingleMatch(RegexRunnerMode.BoundsRequired, _prevLen, _input, _startAt);
System\Text\RegularExpressions\Regex.EnumerateSplits.cs (1)
227(bool Success, int Index, int Length, int TextPosition) match = _regex.RunSingleMatch(RegexRunnerMode.BoundsRequired, _lastMatch.Length, _input, _startAt);
System\Text\RegularExpressions\Regex.Match.cs (6)
80return RunSingleMatch(RegexRunnerMode.ExistenceRequired, -1, input, 0, input.Length, RightToLeft ? input.Length : 0) is null; 94return RunSingleMatch(RegexRunnerMode.ExistenceRequired, -1, input, 0, input.Length, startat) is null; 114RunSingleMatch(RegexRunnerMode.ExistenceRequired, -1, input, startat).Success; 145return RunSingleMatch(RegexRunnerMode.FullMatchRequired, -1, input, 0, input.Length, RightToLeft ? input.Length : 0)!; 159return RunSingleMatch(RegexRunnerMode.FullMatchRequired, -1, input, 0, input.Length, startat)!; 172return RunSingleMatch(RegexRunnerMode.FullMatchRequired, -1, input, beginning, length, RightToLeft ? beginning + length : beginning)!;
System\Text\RegularExpressions\Regex.Replace.cs (2)
185}, RegexRunnerMode.FullMatchRequired, reuseMatchObject: false); 204}, RegexRunnerMode.FullMatchRequired, reuseMatchObject: false);
System\Text\RegularExpressions\Regex.Split.cs (2)
108}, RegexRunnerMode.FullMatchRequired, reuseMatchObject: true); 136}, RegexRunnerMode.FullMatchRequired, reuseMatchObject: true);
System\Text\RegularExpressions\RegexReplacement.cs (5)
246}, RegexRunnerMode.BoundsRequired, reuseMatchObject: true); 308}, _hasBackreferences ? RegexRunnerMode.FullMatchRequired : RegexRunnerMode.BoundsRequired, reuseMatchObject: true); 328}, _hasBackreferences ? RegexRunnerMode.FullMatchRequired : RegexRunnerMode.BoundsRequired, reuseMatchObject: true);
System\Text\RegularExpressions\RegexRunner.cs (5)
105private protected RegexRunnerMode _mode; 175RegexRunnerMode mode = quick ? RegexRunnerMode.ExistenceRequired : RegexRunnerMode.FullMatchRequired; 276internal void InitializeForScan(Regex regex, ReadOnlySpan<char> text, int textstart, RegexRunnerMode mode)
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.cs (11)
354public SymbolicMatch FindMatch(RegexRunnerMode mode, ReadOnlySpan<char> input, int startat, PerThreadData perThreadData) 404if (mode == RegexRunnerMode.ExistenceRequired) 471if (!HasSubcaptures || mode < RegexRunnerMode.FullMatchRequired) 488ReadOnlySpan<char> input, int pos, long timeoutOccursAt, RegexRunnerMode mode, PerThreadData perThreadData) 557private int FindEndPositionFallback<TInitialStateHandler, TNullabilityHandler>(ReadOnlySpan<char> input, int pos, long timeoutOccursAt, RegexRunnerMode mode, PerThreadData perThreadData) 628ReadOnlySpan<char> input, int lengthMinus1, RegexRunnerMode mode, 682if (mode == RegexRunnerMode.ExistenceRequired) 734private bool FindEndPositionDeltasDFA<TInitialStateHandler, TNullabilityHandler>(ReadOnlySpan<char> input, int length, RegexRunnerMode mode, 764if (mode == RegexRunnerMode.ExistenceRequired) 801ReadOnlySpan<char> input, int length, RegexRunnerMode mode, 820if (mode == RegexRunnerMode.ExistenceRequired)
System\Text\RegularExpressions\Symbolic\SymbolicRegexRunnerFactory.cs (1)
84if (_mode == RegexRunnerMode.FullMatchRequired && pos.CaptureStarts != null)