* MatchTest.cs: Improved tests for null argument checks. Added and
fixed replacement tests.
* RegexMatchTest.cs: Marked tests that do not pass on MS as NotDotNet.
Fixed expected result for trial 5.
* RegexResultTests.cs: Fixed Assert.
* Match.cs: Do not throw NotSupportedException on zero-length
replacement argument.
svn path=/trunk/mcs/; revision=88685
- Added a field that maps group numbers to group names in Regex for improvement of performance of GroupNameFromNumber method.
svn path=/trunk/mcs/; revision=88065
* Match.cs: Removed the ": base ()" on the private ctor as it is
unrequired and cause an extra public ctor to added (bug #76736).
svn path=/trunk/mcs/; revision=53207
Fix#74753.
* Match.cs (Match) [zero-argument variant]: Make private.
* GroupCollection (Item) [string variant]: Don't look for the
group number in an empty match.
In Test/System.Text.RegularExpressions:
* RegexBugs.cs (NameLookupInEmptyMatch): New test from #74753.
svn path=/trunk/mcs/; revision=45958
intermediate arrays to build the final result.
(Interpreter.GetGroupInfo, Interpreter.PopulateGroup): New helper
functions.
* CaptureCollection.cs (list): Change from ArrayList to list.
(SetValue): New internal helper, used by Interpreter.PopulateGroup.
(Enumerator): Remove helper class.
(IEnumerator.GetEnumerator): Just use list.GetEnumerator.
* GroupCollection.cs: Likewise.
* Group.cs (Group): Move responsibility of populating 'Captures'
to Interpreter.PopulateGroup.
* Match.cs (Match): Move responsibility of populating 'Groups' to
Interpreter.GenerateMatch.
This reduced the time for 100000 iterations of the 'regex'[1] benchmark
from 63s to 53s.
svn path=/trunk/mcs/; revision=45757
* Capture.cs, Group.cs, Match.cs: New files split out of ...
* match.cs: ... this. Remove.
In .:
* System.dll.sources: Update to reflect split-up of
System.Text.RegularExpressions/match.cs.
svn path=/trunk/mcs/; revision=44793