6 writes to Text
System.Text.RegularExpressions (6)
System\Text\RegularExpressions\Capture.cs (1)
14Text = text;
System\Text\RegularExpressions\Match.cs (1)
67Text = text;
System\Text\RegularExpressions\Regex.cs (3)
625match.Text = input; 630match.Text = null; 641match.Text = null;
System\Text\RegularExpressions\RegexRunner.cs (1)
224runmatch!.Text = null;
12 references to Text
System.Text.RegularExpressions (12)
System\Text\RegularExpressions\Capture.cs (5)
30public string Value => Text is string text ? text.Substring(Index, Length) : string.Empty; 34public ReadOnlySpan<char> ValueSpan => Text is string text ? text.AsSpan(Index, Length) : []; 40internal ReadOnlyMemory<char> GetLeftSubstring() => Text is string text ? text.AsMemory(0, Index) : ReadOnlyMemory<char>.Empty; 43internal ReadOnlyMemory<char> GetRightSubstring() => Text is string text ? text.AsMemory(Index + Length, Text.Length - Index - Length) : ReadOnlyMemory<char>.Empty;
System\Text\RegularExpressions\CaptureCollection.cs (1)
72_captures[j] = new Capture(_group.Text, _group._caps[j * 2], _group._caps[j * 2 + 1]);
System\Text\RegularExpressions\GroupCollection.cs (1)
83_groups[i] = new Group(_match.Text, _match._matches[i + 1], _match._matchcount[i + 1], groupname);
System\Text\RegularExpressions\Match.cs (3)
101Debug.Assert(Text != null); 103r.RunSingleMatch(RegexRunnerMode.FullMatchRequired, Length, Text, _textbeg, _textend - _textbeg, _textpos)! : 137return Text.AsMemory(matches[(c - 1) * 2], matches[(c * 2) - 1]);
System\Text\RegularExpressions\RegexReplacement.cs (2)
142WholeString => match.Text.AsMemory(), 174WholeString => match.Text.AsMemory(),