Commit Graph
12 Commits
Author SHA1 Message Date
Miguel de Icaza 3cfcca3926 2007-11-12 Atsushi Enomoto <[email protected]>
* System.dll.sources : added S.R.InteropSvcs.ComTypes types.

svn path=/trunk/mcs/; revision=89684
2007-11-15 16:50:05 +00:00
Raja R Harinath b35097bc0b Support RegexOptions.RightToLeft in Replace().
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
2007-11-06 22:03:35 +00:00
Arina Itkes 232e79acdf Moving creation of Regex machine to ctor.
svn path=/trunk/mcs/; revision=88375
2007-10-29 12:20:38 +00:00
Juraj Skripsky e1559f84d7 2007-10-24 Juraj Skripsky <[email protected]>
* Regex.cs: Store and re-use IMachine, no need to re-instantiate
	it every time we're matching.


svn path=/trunk/mcs/; revision=88076
2007-10-24 15:33:49 +00:00
Arina Itkes 61d27ad7fc - Refactoring of Interpreter with extracting of base abstract class that executes some methods that were moved from Regex and Match classes.
- 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
2007-10-24 14:18:57 +00:00
Raja R Harinath 1b0f319466 * Regex.cs (~Regex): Don't define in NET_2_0 profile.
svn path=/trunk/mcs/; revision=75338
2007-04-03 11:43:49 +00:00
Konstantin Triger a83c9ab209 TARGET_JVM: ifdef unsupported stuff
svn path=/trunk/mcs/; revision=71593
2007-01-24 14:32:12 +00:00
Andrew Skiba 7f0db39bd5 TARGET_JVM
svn path=/trunk/mcs/; revision=66033
2006-09-28 13:45:23 +00:00
Raja R Harinath d96a4c42b2 In System.Text.RegularExpressions:
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
2006-04-07 13:44:55 +00:00
Kornél Pál d993e00c33 * Regex.cs: Added support for regular expressions compiled to assemblies by compiling the pattern. This solution ignores existing CIL code but provides full support for regular expression classes compiled by MS.NET.
svn path=/trunk/mcs/; revision=54917
2005-12-29 19:34:27 +00:00
Sebastien Pouliot 1a7ff3d408 2005-11-21 Sebastien Pouliot <[email protected]>
* CaptureCollection.cs: Fixed length check.
	* Group.cs: Added missing validation for Synchronized method.
	* Match.cs: Added missing validation for Synchronized and Result 
	methods.
	* MatchEvaluator.cs: Added [Serializable] for 2.0 profile.
	* RegexCompilationInfo.cs: Added missing property validation.
	* Regex.cs: Implemented UseOptionC and UseOptionR protected methods
	(now documented). Fixed API for 2.0 profile.
	* RegexRunner.cs: Stubbed CharInClass for 2.0 profile.


svn path=/trunk/mcs/; revision=53312
2005-11-21 18:33:35 +00:00
Raja R Harinath 38bf36b081 In .:
* 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
2005-08-23 14:15:25 +00:00