Modulo the GUID in the assembly and the GUID embedded in some
field initializers that use the assembly GUID for their name, the
assemblies are idential before and after the patch.
* Regex.cs (gap, Gap): New.
(Init, InitNewRegex): Update it.
(GroupNumberFromName): If the 'name' is beyond the gap, it is an
explicit numeric group -- use the name as the group number.
GetGroupIndex): Use a binary search to map a group number to its
index when we know that they don't match.
(GroupNumbers): Use group number, not group index, for explicit
numeric groups.
* Match.cs (.ctor): Use the newly introduce 'Regex.Gap'.
svn path=/trunk/mcs/; revision=140288
* Regex.cs (group_names): Rename from _groupNumbersToNameMap.
(GetGroupNamesArray): Use an IDictionaryEnumerator to walk the
mapping, since both the key and value are used in the loop.
svn path=/trunk/mcs/; revision=140286
* Regex.cs (GetGroupIndex): New.
(GroupNameFromNumber): Use it.
* GroupCollection.cs (.ctor): Introduce 'gap' argument. It is the
index of the first group whose group number differs from its index.
(Item.get): Likewise.
svn path=/trunk/mcs/; revision=140284
* Regex.cs: Remove Compiler-related support for NET_2_1
* RegexOptions.cs: Remove Compile from values available on NET_2_1
svn path=/trunk/mcs/; revision=132491
evaluator are not null, as documented in MSDN (and the variance found
while testing DbLinq).
* Test/System.Text.RegularExpressions/RegexReplace.cs: Add null
argument checks for Regex.Replace().
svn path=/trunk/mcs/; revision=128241
* BaseMachine.cs Regex.cs: Make LTRReplace and RTLReplace instance methods to
avoid creating two machines for each Regex.Replace () call.
svn path=/trunk/mcs/; revision=95389
In b/class/System/System.Text.RegularExpressions:
* BaseMachine.cs (Replace): Use either LTRReplace or RTLReplace
based on regex.
(LTRReplace): Make internal and rename the MatchAppendEvaluator
version of Replace to this.
(RTLReplace): New.
* Regex.cs (Replace): Use LTRReplace and RTLReplace from BaseMachine.
* replace.cs (ReplacementEvaluator.Evaluate): Optimize simple case.
Based on patch by Stephane Delcroix.
In b/class/System/Test/System.Text.RegularExpressions:
* MatchTest.cs (Match_Backref): New.
* RegexReplace.cs (direction, testcase.direction): New.
(testcase..ctor): Allow specifying the direction of the replace.
(ReplaceTests): Test replace in both directions.
(EvaluatorTests): New test based on #321036.
svn path=/trunk/mcs/; revision=89034
- 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
Fix#78007
* interpreter.cs (Interpreter.Eval) [Anchor, Position.StartOfString]:
Don't reset 'ptr' to 0 during forward scan.
In Test/System.Text.RegularExpressions:
* RegexBugs.cs (Bug78007): New test from #78007.
svn path=/trunk/mcs/; revision=59177
* System.dll.sources: Update.
In System.Text.RegularExpressions:
* regex.cs: Remove. Split into ...
* MatchEvaluator.cs, Regex.cs, RegexCompilationInfo.cs,
RegexOptions.cs: ... these. Now every publicly exposed type in
this namespace has its own file.
svn path=/trunk/mcs/; revision=48728