Commit Graph
6 Commits
Author SHA1 Message Date
Raja R Harinath 1dc4bea327 Revert "processed with astyle" (SVN r159583)
svn path=/trunk/mcs/; revision=159587
2010-06-28 06:39:43 +00:00
C.J. Adams-Collier 56886b8c11 processed with astyle
svn path=/trunk/mcs/; revision=159583
2010-06-27 20:11:26 +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
Gert Driesen 083af1ff31 * GroupTest.cs: Improved test for null argument check.
* 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
2007-11-01 21:17:50 +00:00
Gert Driesen 159ff004eb * RegexBugs.cs: No longer derive from deprecated Assertion class.
Added test for bug #313642.
* MatchTest.cs: Code formatting.
* RegexTest.cs: Fixed compiler warnings. Code formatting. Spaces to
tabs.

svn path=/trunk/mcs/; revision=87864
2007-10-21 09:46:50 +00:00
Sebastien Pouliot 34cc16225f 2005-11-21 Sebastien Pouliot <[email protected]>
* CaptureCas.cs: New. CAS tests.
	* CaptureCollectionCas.cs: New. CAS tests.
	* GroupCas.cs: New. CAS tests.
	* GroupCollectionCas.cs: New. CAS tests.
	* GroupTest.cs: New. Unit tests.
	* MatchCas.cs: New. CAS tests.
	* MatchCollectionCas.cs: New. CAS tests.
	* MatchTest.cs: New. Unit tests.
	* RegexCas.cs: New. CAS tests.
	* RegexCompilationInfoCas.cs: New. CAS tests.
	* RegexCompilationInfoTest.cs: New. Unit tests.
	* RegexRunnerCas.cs: New. CAS tests.
	* RegexRunnerFactoryCas.cs: New. CAS tests.
	* RegexTest.cs: Added test cases for new (2.0) CacheSize property.


svn path=/trunk/mcs/; revision=53313
2005-11-21 18:37:01 +00:00