Commit Graph
58 Commits
Author SHA1 Message Date
Duncan Mak 24f5ef2c44 Add MIT license to System.dll
svn path=/trunk/mcs/; revision=30054
2004-06-21 18:02:11 +00:00
Gert Driesen 118ced56b6 * RegexRunner.cs: fixed case mismatch of methods
svn path=/trunk/mcs/; revision=29218
2004-06-10 18:37:54 +00:00
Gert Driesen 6f3c495f7c * RegexRunner.cs: marked TODO, added missing protected internal
fields, throw NotImplementedException in all methods

svn path=/trunk/mcs/; revision=29214
2004-06-10 18:06:31 +00:00
Gert Driesen 95afd686ee * RegexRunnerFactory.cs: removed comment, no longer throw exception
from ctor
* regex.cs: fixed public API signature by renaming protected
internal fields and adding destructor, added MonoTODO attribute to
fields and method that are not yet implemented, changed not
implemented methods to throw NotImplementedException instead of
Exception, fixed names of field that are serialized

svn path=/trunk/mcs/; revision=29210
2004-06-10 17:53:10 +00:00
Jambunathan K 793a40c310 Fixed issues with Regex.Unescape() identified as part of
debugging bug #58256. The original problem reported was about
inconsistency between the way we treat replacement patterns and the
way microsoft treats the replacement patterns in Regex.Replace(). MS
implementation is buggy and doesn't honour escape sequences in the
replacement patterns, even though the SDK claims otherwise.

svn path=/trunk/mcs/; revision=28912
2004-06-06 15:01:33 +00:00
Gonzalo Paniagua Javier 4d8d5cc311 2004-06-01 Gonzalo Paniagua Javier <[email protected]>
* syntax.cs: re-applied my patch from 2004-05-27 plus a fix which is
	emitting a Category.All if both a category and its negated value are
	present.

svn path=/trunk/mcs/; revision=28609
2004-06-01 05:43:48 +00:00
Gonzalo Paniagua Javier 6e3884f14f 2004-06-01 Gonzalo Paniagua Javier <[email protected]>
* syntax.cs: reverting my previous patch. It causes bigger problems.

svn path=/trunk/mcs/; revision=28604
2004-06-01 01:01:23 +00:00
Gonzalo Paniagua Javier fef90f0a49 2004-05-27 Gonzalo Paniagua Javier <[email protected]>
* category.cs: added LastValue field to mark the end of enum Category.
	* syntax.cs: in CharacterClass, use Category.LastValue to get the size
	of the array needed. Use a BitArray instead of bool[].
	In AddCategory(), don't set the opposite category as false. Fixes
	bug #59150. All tests pass.

svn path=/trunk/mcs/; revision=28218
2004-05-27 03:40:44 +00:00
Jackson Harper 000a582758 * parser.cs: Allow creating a regular expression using {,n} as the
specified. The min bounds is set to -1, I am not completely sure
	if that is what it is supposed to be but MS does not set it to 0
	based on testing. Patch by [email protected]. Fixes bug
	#56761.

svn path=/trunk/mcs/; revision=28061
2004-05-25 17:29:44 +00:00
Dick Porter 27f8a98046 2004-05-12 Dick Porter <[email protected]>
* regex.cs:
	* quicksearch.cs:
	* RegexRunnerFactory.cs:
	* RegexRunner.cs: More public API difference fixes.

svn path=/trunk/mcs/; revision=27184
2004-05-12 19:03:21 +00:00
Dick Porter d500d05763 2004-05-12 Dick Porter <[email protected]>
* 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
2004-05-12 16:10:07 +00:00
Gonzalo Paniagua Javier 3917ace10c 2004-04-19 Gonzalo Paniagua Javier <[email protected]>
* System.Text.RegularExpressions/arch.cs:
	* System.Text.RegularExpressions/compiler.cs:
	* System.Text.RegularExpressions/interpreter.cs:
	* System.Text.RegularExpressions/parser.cs:
	* System.Text.RegularExpressions/syntax.cs:
	* Test/System.Text.RegularExpressions/PerlTrials.cs:
	Patch by Eric Durand Tremblay.
	1) Capture inner group when named.
	2) Resolved parse error caused by not capturing inner group
	3) Resolved incorrect capture group
	4) Now, not capturing anything when unnamed ( correct behavior)

svn path=/trunk/mcs/; revision=25691
2004-04-19 17:07:46 +00:00
Gonzalo Paniagua Javier 2e689c7335 2004-04-19 Gonzalo Paniagua Javier <[email protected]>
* arch.cs:
	* compiler.cs:
	* interpreter.cs:
	* parser.cs:
	* syntax.cs: converted to unix line endings.

svn path=/trunk/mcs/; revision=25688
2004-04-19 16:54:36 +00:00
Lluis Sanchez fa11b56bb1 * collections.cs: In the indexer, return an empty group if the requested
group is not found.
	* match.cs: Added default constructor for Group.

svn path=/trunk/mcs/; revision=24796
2004-03-30 18:54:53 +00:00
Gonzalo Paniagua Javier b55ee14579 2004-03-24 Gonzalo Paniagua Javier <[email protected]>
* parser.cs: fixed group numbering.

svn path=/trunk/mcs/; revision=24551
2004-03-24 23:27:24 +00:00
Jackson Harper edfe1fb025 * parser.cs: Use the group number as the name in mapping. Patch by Gert Driesen.
* regex.cs: Fix off by one error. Patch by Gert Driesen.

svn path=/trunk/mcs/; revision=24418
2004-03-22 16:09:39 +00:00
Gonzalo Paniagua Javier 3015c8a6b3 2004-03-17 Francois Beauchemin <[email protected]>
* syntax.cs, interpreter.cs, quicksearch.cs, regex.cs, compiler.cs :
 		Revised support for RigthToLeft.
 		quicksearch has now an reverse option.
 		This fixes bug #54537

  	* regex.cs, compiler.cs :
 	 	Some code to support CILCompiler.
 	* regex.cs :
 		Added some undocumented of MS.

svn path=/trunk/mcs/; revision=24249
2004-03-17 20:21:43 +00:00
Gonzalo Paniagua Javier 206db19797 2004-03-16 Gonzalo Paniagua Javier <[email protected]>
* parser.cs: allow a @"\0" escape sequence. Fixes bug #54797.

svn path=/trunk/mcs/; revision=24181
2004-03-16 23:04:13 +00:00
Miguel de Icaza fc5d02f8bc 2004-02-01 Miguel de Icaza <[email protected]>
* syntax.cs, interval.cs: Applied patch from Marco Cravairo
	through Francois Beauchemin who reviewed on the mailing list.
	This fixes bug #45976

svn path=/trunk/mcs/; revision=22684
2004-02-02 03:02:08 +00:00
Umadevi S 008455a13a fix for bug 41678 -Uma <[email protected]>
svn path=/trunk/mcs/; revision=22298
2004-01-20 13:25:46 +00:00
Gonzalo Paniagua Javier b0c1b57ccf 2004-01-16 Gonzalo Paniagua Javier <[email protected]>
* System.Text.RegularExpressions/parser.cs: an opening brace without a
	quantifier do not cause a parse error. Fixes bug #52924.
	* Test/System.Text.RegularExpressions/RegexBugs.cs: added test from
	bug #52924.

svn path=/trunk/mcs/; revision=22160
2004-01-16 09:20:09 +00:00
Lluis Sanchez 266c78e7de * regex.cs: In Split(), if the last match is at the end of the string,
an empty string must be added to the array of results.

svn path=/trunk/mcs/; revision=21825
2004-01-07 18:23:37 +00:00
Miguel de Icaza 501ce57b51 Update
svn path=/trunk/mcs/; revision=21602
2004-01-02 19:53:33 +00:00
Sanja Gupta 1c7690522a ChangeLog for bug #52034
svn path=/trunk/mcs/; revision=21135
2003-12-15 05:49:11 +00:00
Sanja Gupta c01aad9a85 Check for null value before Substring method call
svn path=/trunk/mcs/; revision=21132
2003-12-15 05:09:12 +00:00
Miguel de Icaza 3a492194a9 2003-11-21 Juraj Skripsky <[email protected]>
* quicksearch.cs: Create and use hashtable only for "long" search
	strings.

	(Search): Use simple scan for a single-character search strings.

	(GetChar): Simplify case sensitivity handling.

svn path=/trunk/mcs/; revision=20680
2003-12-02 03:51:03 +00:00
Gonzalo Paniagua Javier 1b248b38fb 2003-11-27 Gonzalo Paniagua Javier <[email protected]>
* System.Text.RegularExpressions/interpreter.cs: when evaluating a
	degenerate match, restore the RepeatContext if fail. Fixes bug #42529.

	* Test/System.Text.RegularExpressions/RegexBugs.cs: added tests from
	bug #42529.

svn path=/trunk/mcs/; revision=20536
2003-11-27 15:31:59 +00:00
Jackson Harper 81ca226d75 * regex.cs: Add CultureInvariant flag to RegexOptions.
svn path=/trunk/mcs/; revision=20351
2003-11-23 05:14:53 +00:00
Miguel de Icaza c53593a6e2 Add new tests from Juraj
svn path=/trunk/mcs/; revision=20280
2003-11-20 21:17:58 +00:00
Miguel de Icaza 2fe3660204 2003-11-20 Juraj Skripsky <[email protected]>
* quicksearch.cs: Use a hashtable instead of an array for the
	shift table to improve the memory usage.

svn path=/trunk/mcs/; revision=20279
2003-11-20 21:14:28 +00:00
Gonzalo Paniagua Javier c2f8202972 2003-11-19 Gonzalo Paniagua Javier <[email protected]>
* System_test.dll.sources: added new RegexBugs test.

	* System.Text.RegularExpressions/regex.cs:
	(Split): include capture groups in the results, if any. Fixes bug
	#51146.

	* Test/system_linux_test.args: removed. Not needed any more.

svn path=/trunk/mcs/; revision=20219
2003-11-19 12:01:19 +00:00
Miguel de Icaza 392a1522ce Patch from Dan Lewisi
Carlos' bug seems to stem from my failure to interpolate
the "$$" substitution pattern properly.

This fixes bug #48666

svn path=/trunk/mcs/; revision=18492
2003-10-01 21:51:20 +00:00
Gonzalo Paniagua Javier f06cdb496a 2003-07-09 Gonzalo Paniagua Javier <[email protected]>
* regex.cs: patch from Eric Lindvall <[email protected]> that fixes bug
	#44830.

svn path=/trunk/mcs/; revision=16053
2003-07-09 12:44:17 +00:00
Miguel de Icaza b585e440d2 2003-03-05 Miguel de Icaza <[email protected]>
* category.cs (CategoryUtils.CategoryFromName): Use StartsWith
	("Is") instead of a substring for (0,2) which was throwing an
	exception causing Category.None to be returned

svn path=/trunk/mcs/; revision=12228
2003-03-05 20:28:45 +00:00
Gonzalo Paniagua Javier bdde5eb6c0 2003-01-17 Gonzalo Paniagua Javier <[email protected]>
* collections.cs: fixed bug #30091.

svn path=/trunk/mcs/; revision=10607
2003-01-17 08:19:36 +00:00
Gonzalo Paniagua Javier fd59368b78 2002-12-20 Gonzalo Paniagua Javier <[email protected]>
* regex.cs: fixed little mistake (closes #35860).

svn path=/trunk/mcs/; revision=9793
2002-12-20 08:22:50 +00:00
Jackson Harper 93be82ffbb Updated changelog
svn path=/trunk/mcs/; revision=8951
2002-11-12 15:54:54 +00:00
Jackson Harper f574be044c Added mapping attribute to MachineFactories
svn path=/trunk/mcs/; revision=8950
2002-11-12 15:54:11 +00:00
Gonzalo Paniagua Javier 99ed672e31 2002-11-06 Gonzalo Paniagua Javier <[email protected]>
* parser.cs: detect illegal \ at end of pattern. Fixes 31334.

svn path=/trunk/mcs/; revision=8854
2002-11-06 14:34:18 +00:00
Duncan Mak d653d553dd Adding .cvsignores
svn path=/trunk/mcs/; revision=8778
2002-11-02 21:26:16 +00:00
Gonzalo Paniagua Javier 7bc8829800 2002-10-25 Gonzalo Paniagua Javier <[email protected]>
* parser.cs: applied fix from Tim Haynes ([email protected]) to
	solve bug #32807. Also modified GetMapping to return the same as MS.

svn path=/trunk/mcs/; revision=8549
2002-10-25 15:09:02 +00:00
Juli Mallett e4cff48d9a 2002-08-28 Juli Mallett <[email protected]>
* arch.cs, compiler.cs: Give the interpreter machine a property
	for the retrieval of the group count.

	* regex.cs: Use the new GroupCount property of the factory to
	initialise the current group count, and restructure code to compile
	the pattern only the first time it is needed (essentially backing
	out the previous revision of regex.cs, to use the new code.)

svn path=/trunk/mcs/; revision=7132
2002-08-28 18:46:54 +00:00
Miguel de Icaza 1d8e204102 It works just as fine
svn path=/trunk/mcs/; revision=6963
2002-08-23 17:53:38 +00:00
Duncan Mak 0e72616dce Various serialization patches from Cesar.
2002-08-14  Cesar Octavio Lopez Nataren <[email protected]>

	* regex.cs: Added the ctr for ISerializable implementation and
	implemented the GetObjectData function.

2002-08-14  Cesar Octavio Lopez Nataren <[email protected]>

	* SoapFault.cs: Added the ctr for ISerializable implementation and
	implemented GetObjectData.

2002-08-14  Cesar Octavio Lopez Nataren <[email protected]>

	* WeakReference.cs: Changed the constructor and GetObjectData
	method needed for ISerializable implementation in order to be
	compatible with SOAP generated by MS.

svn path=/trunk/mcs/; revision=6676
2002-08-16 14:39:31 +00:00
Duncan Mak bdbbb0be53 Committing fix for Juli.
2002-07-30  Juli Mallett  <[email protected]>

	* regex.cs: Fixed bug where the expression would not be
	re-evaluated for grouping purposes when factory caches were
	used, resulting in no groups being recognised after one call
	with a given pattern and no change in options.

svn path=/trunk/mcs/; revision=6299
2002-07-31 16:41:39 +00:00
Dan Lewis b55a75bfa7 2002-05-13 Dan Lewis <[email protected]>
* regex.cs: Fixed bug in split.

svn path=/trunk/mcs/; revision=4552
2002-05-12 08:35:05 +00:00
Dan Lewis 7a7c18e47c 2002-05-08 Dan Lewis <[email protected]>
* interpreter.cs: Moved to an array-based stack representation
	for faster captures.

	* match.cs, collections.cs: Decoupled capture representation from
	interpreter internals.

	* cache.cs: Changed Key type from struct to class for speed.

svn path=/trunk/mcs/; revision=4415
2002-05-08 12:42:49 +00:00
Adam Treat 4e70b38a95 * Replace with the replacement string not the pattern ;-)
svn path=/trunk/mcs/; revision=3792
2002-04-12 20:45:53 +00:00
Dan Lewis fd9e0a786d 2002-04-06 Dan Lewis <[email protected]>
* cache.cs: Object methods should be overridden with "override".

svn path=/trunk/mcs/; revision=3655
2002-04-06 13:29:01 +00:00
Dan Lewis 621f470057 2002-04-04 Dan Lewis <[email protected]>
* RegexRunner.cs, RegexRunnerFactory.cs: MS support classes. Stubs
	added for completeness.

	* regex.cs, match.cs, collections.cs: Serializable attribute.

svn path=/trunk/mcs/; revision=3610
2002-04-04 07:49:51 +00:00