6 writes to Text
System.Text.RegularExpressions (6)
System\Text\RegularExpressions\Capture.cs (1)
29Text = text;
System\Text\RegularExpressions\Match.cs (1)
79Text = text;
System\Text\RegularExpressions\Regex.cs (3)
777match.Text = input; 782match.Text = null; 793match.Text = null;
System\Text\RegularExpressions\RegexRunner.cs (1)
226runmatch!.Text = null;
12 references to Text
System.Text.RegularExpressions (12)
System\Text\RegularExpressions\Capture.cs (5)
55public string Value => Text is string text ? text.Substring(Index, Length) : string.Empty; 59public ReadOnlySpan<char> ValueSpan => Text is string text ? text.AsSpan(Index, Length) : []; 72internal ReadOnlyMemory<char> GetLeftSubstring() => Text is string text ? text.AsMemory(0, Index) : ReadOnlyMemory<char>.Empty; 75internal ReadOnlyMemory<char> GetRightSubstring() => Text is string text ? text.AsMemory(Index + Length, Text.Length - Index - Length) : ReadOnlyMemory<char>.Empty;
System\Text\RegularExpressions\CaptureCollection.cs (1)
119_captures[j] = new Capture(_group.Text, _group._caps[j * 2], _group._caps[j * 2 + 1]);
System\Text\RegularExpressions\GroupCollection.cs (1)
164_groups[i] = new Group(_match.Text, _match._matches[i + 1], _match._matchcount[i + 1], groupname);
System\Text\RegularExpressions\Match.cs (3)
164Debug.Assert(Text != null); 166r.RunSingleMatch(RegexRunnerMode.FullMatchRequired, Length, Text, _textbeg, _textend - _textbeg, _textpos)! : 221return Text.AsMemory(matches[(c - 1) * 2], matches[(c * 2) - 1]);
System\Text\RegularExpressions\RegexReplacement.cs (2)
139WholeString => match.Text.AsMemory(), 171WholeString => match.Text.AsMemory(),