6 writes to Text
System.Text.RegularExpressions (6)
System\Text\RegularExpressions\Capture.cs (1)
14
Text
= text;
System\Text\RegularExpressions\Match.cs (1)
67
Text
= text;
System\Text\RegularExpressions\Regex.cs (3)
625
match.
Text
= input;
630
match.
Text
= null;
641
match.
Text
= null;
System\Text\RegularExpressions\RegexRunner.cs (1)
224
runmatch!.
Text
= null;
12 references to Text
System.Text.RegularExpressions (12)
System\Text\RegularExpressions\Capture.cs (5)
30
public string Value =>
Text
is string text ? text.Substring(Index, Length) : string.Empty;
34
public ReadOnlySpan<char> ValueSpan =>
Text
is string text ? text.AsSpan(Index, Length) : [];
40
internal ReadOnlyMemory<char> GetLeftSubstring() =>
Text
is string text ? text.AsMemory(0, Index) : ReadOnlyMemory<char>.Empty;
43
internal 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)
101
Debug.Assert(
Text
!= null);
103
r.RunSingleMatch(RegexRunnerMode.FullMatchRequired, Length,
Text
, _textbeg, _textend - _textbeg, _textpos)! :
137
return
Text
.AsMemory(matches[(c - 1) * 2], matches[(c * 2) - 1]);
System\Text\RegularExpressions\RegexReplacement.cs (2)
139
WholeString => match.
Text
.AsMemory(),
171
WholeString => match.
Text
.AsMemory(),