6 writes to Text
System.Text.RegularExpressions (6)
System\Text\RegularExpressions\Capture.cs (1)
29
Text
= text;
System\Text\RegularExpressions\Match.cs (1)
79
Text
= text;
System\Text\RegularExpressions\Regex.cs (3)
777
match.
Text
= input;
782
match.
Text
= null;
793
match.
Text
= null;
System\Text\RegularExpressions\RegexRunner.cs (1)
226
runmatch!.
Text
= null;
12 references to Text
System.Text.RegularExpressions (12)
System\Text\RegularExpressions\Capture.cs (5)
55
public string Value =>
Text
is string text ? text.Substring(Index, Length) : string.Empty;
59
public ReadOnlySpan<char> ValueSpan =>
Text
is string text ? text.AsSpan(Index, Length) : [];
72
internal ReadOnlyMemory<char> GetLeftSubstring() =>
Text
is string text ? text.AsMemory(0, Index) : ReadOnlyMemory<char>.Empty;
75
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)
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)
164
Debug.Assert(
Text
!= null);
166
r.RunSingleMatch(RegexRunnerMode.FullMatchRequired, Length,
Text
, _textbeg, _textend - _textbeg, _textpos)! :
221
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(),