Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetMatch()

Match System.Text.RegularExpressions.MatchCollection.GetMatch ( int i)
inlineprivate

Definition at line 153 of file MatchCollection.cs.

154 {
155 if (_matches.Count > i)
156 {
157 return _matches[i];
158 }
159 if (_done)
160 {
161 return null;
162 }
163 Match match;
164 do
165 {
167 if (!match.Success)
168 {
169 _done = true;
170 return null;
171 }
173 _prevlen = match.Length;
174 _startat = match._textpos;
175 }
176 while (_matches.Count <= i);
177 return match;
178 }
void Add(TKey key, TValue value)
Match Run(bool quick, int prevlen, string input, int beginning, int length, int startat)
Definition Regex.cs:337

References System.Text.RegularExpressions.MatchCollection._done, System.Text.RegularExpressions.MatchCollection._input, System.Text.RegularExpressions.MatchCollection._matches, System.Text.RegularExpressions.MatchCollection._prevlen, System.Text.RegularExpressions.MatchCollection._regex, System.Text.RegularExpressions.MatchCollection._startat, System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Text.RegularExpressions.i, System.match, and System.Text.RegularExpressions.Regex.Run().

Referenced by System.Text.RegularExpressions.MatchCollection.EnsureInitialized(), and System.Text.RegularExpressions.MatchCollection.Enumerator.MoveNext().