* MatchCollection.cs (TryToGet): Don't generate match i+1 when
we're looking for match i. Change post-conditions.
(FullList): New helper property. Ensures the list is fully populated.
(Count, CopyTo): Use it.
(Enumerator.Current): Update to new post-conditions of TryToGet.
(Enumerator.MoveNext): Likewise. Don't modify index if we're
beyond the end.
svn path=/trunk/mcs/; revision=47264
* MatchCollection.cs: Convert to incremental mode.
* regex.cs (Regex.Matches): Update. Pass responsibility of
generating all matches to MatchCollection.
In Test/System.Text.RegularExpressions:
* RegexTest.cs (Matches1, Matches2, ..., Matches10): Combine into ...
(Matches): ... this. Convert to use a data-driven approach. Use ...
(trials): ... this. New variable that lists the regexp, input
text and expected results.
(runTrial): New. Run a suite of MatchCollection tests on each trial.
Tests both incremental and non-incremental modes.
svn path=/trunk/mcs/; revision=47079
* GroupCollection.cs:
* MatchCollection.cs:
* CaptureCollection.cs: Moved GroupCollection, MatchCollection and
CaptureCollection so that they no longer inherit from the
non-standard RegexCollectionBase class. Fixes the API difference.
svn path=/trunk/mcs/; revision=27175