2005-01-31 Zoltan Varga <vargaz@freemail.hu>
[mono.git] / mcs / class / System / System.Text.RegularExpressions / ChangeLog
index 70ca1faee38c18a163b67c4ac324257becb879b8..bb47e9f7650b3cb24a05dff6869439b256c4f73e 100644 (file)
@@ -1,3 +1,293 @@
+2005-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * quicksearch.cs: handle IgnoreCase when getting the shift distance.
+       Fixes bug #69065. Patch by mei@work.email.ne.jp.
+
+2005-01-08  Miguel de Icaza  <miguel@ximian.com>
+
+       * syntax.cs: Applied patch from mei@work.email.ne.jp to fix bug
+       #71077.
+
+       * parser.cs: Turns out that \digit sequences are octal sequences
+       (no leading zero is needed);  And the three octal digit rule
+       applies to the leading zero as well.
+
+       This fixes the Unescape method.
+
+2004-11-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * regex.cs: use NextMatch to move on to the next match. Fixes bug
+       #57274.
+
+2004-11-09  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * parser.cs : cast.
+
+2004-11-08  Ben Maurer  <bmaurer@ximian.com>
+
+       * replace.cs, parser.cs: Use stringbuilder for allocation sanity.
+
+2004-10-21 Joerg Rosenkranz <joergr@voelcker.com>\r
+\r
+    * regex.cs: Fixed a bug introduced with the last patch which\r
+      prevented any replacements when a postive count is given.\r
+      This also happens in all overloads without count parameter.
+\r
+2004-10-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * regex.cs: in Replace, when count is negative, replacement continues
+       to the end of the string.
+
+       Fixes bug #68398. Patch by Jon Larimer.
+
+2004-06-10  Gert Driesen <drieseng@users.sourceforge.net>
+
+       * RegexRunner.cs: fixed case mismatch of methods
+
+2004-06-10  Gert Driesen <drieseng@users.sourceforge.net>
+
+       * RegexRunner.cs: marked TODO, added missing protected internal
+       fields, throw NotImplementedException in all methods
+
+2004-06-10  Gert Driesen <drieseng@users.sourceforge.net>
+
+       * 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
+
+2004-06-06  Jambunathan K <kjambunathan@novell.com>
+       
+       * parser.cs: 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.
+
+       
+2004-06-01  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * 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.
+
+2004-06-01  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * syntax.cs: reverting my previous patch. It causes bigger problems.
+
+2004-05-27  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * 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.
+
+2004-05-25  Jackson Harper  <jackson@ximian.com>
+
+       * 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 dave-gnome-bugs@earth.li. Fixes bug #56761.
+
+2004-05-12  Dick Porter  <dick@ximian.com>
+
+       * regex.cs: 
+       * quicksearch.cs: 
+       * RegexRunnerFactory.cs: 
+       * RegexRunner.cs: More public API difference fixes.
+
+       * 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.
+
+2004-04-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * arch.cs:
+       * compiler.cs:
+       * interpreter.cs:
+       * parser.cs:
+       * syntax.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)
+
+
+2004-04-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * arch.cs:
+       * compiler.cs:
+       * interpreter.cs:
+       * parser.cs:
+       * syntax.cs: converted to unix line endings.
+
+2004-03-30  Lluis Sanchez Gual <lluis@ximian.com>
+
+       * collections.cs: In the indexer, return an empty group if the requested
+       group is not found.
+       * match.cs: Added default constructor for Group.
+       
+2004-03-24  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * parser.cs: fixed group numbering.
+
+2004-03-22  Jackson Harper  <jackson@ximian.com>
+
+       * 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.
+
+2004-03-17  Francois Beauchemin <beauche@softhome.net>
+       * 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.
+2004-03-16  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * parser.cs: allow a @"\0" escape sequence. Fixes bug #54797.
+
+2004-02-01  Miguel de Icaza  <miguel@ximian.com>
+
+       * syntax.cs, interval.cs: Applied patch from Marco Cravairo
+       through Francois Beauchemin who reviewed on the mailing list.
+       This fixes bug #45976
+
+2004-01-16  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * parser.cs: an opening brace without a
+       quantifier do not cause a parse error. Fixes bug #52924.
+
+2004-01-07  Lluis Sanchez Gual <lluis@ximian.com>
+
+       * 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.
+
+2003-12-15  Sanjay Gupta <gsanjay@novell.com>
+       * match.cs: Check for null value before Substring method call.  
+       Fixes bug #52034.
+
+2003-11-21  Juraj Skripsky <js@hotfeet.ch>
+
+       * 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.
+
+2003-11-27  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * interpreter.cs: when evaluating a degenerate match, restore the
+       RepeatContext if fail. Fixes bug #42529.
+
+2003-11-22  Jackson Harper <jackson@ximian.com>
+
+       * regex.cs: Add CultureInvariant flag to RegexOptions.
+       
+2003-11-20  Juraj Skripsky <js@hotfeet.ch>
+
+       * quicksearch.cs: Use a hashtable instead of an array for the
+       shift table to improve the memory usage.  
+
+2003-11-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * regex.cs:
+       (Split): include capture groups in the results, if any. Fixes bug
+       #51146.
+
+2003-07-09  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * regex.cs: patch from Eric Lindvall <eric@5stops.com> that fixes bug
+       #44830.
+
+2003-03-05  Miguel de Icaza  <miguel@ximian.com>
+
+       * 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
+
+2003-01-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * collections.cs: fixed bug #30091.
+
+2002-12-20  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * regex.cs: fixed little mistake (closes #35860).
+
+2002-11-12 Jackson Harper <jackson@latitudegeo.com>
+
+       * arch.cs compiler.cs regex.cs: Added mapping attribute to MachineFactories
+
+2002-11-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * parser.cs: detect illegal \ at end of pattern. Fixes 31334.
+
+2002-10-25  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * parser.cs: applied fix from Tim Haynes (thaynes@openlinksw.com) to
+       solve bug #32807. Also modified GetMapping to return the same as MS.
+
+2002-08-28  Juli Mallett  <jmallett@FreeBSD.org>
+
+       * 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.)
+
+2002-08-14  Cesar Octavio Lopez Nataren <cesar@ciencias.unam.mx>
+
+       * regex.cs: Added the ctr for ISerializable implementation and
+       implemented the GetObjectData function.
+
+2002-07-30  Juli Mallett  <jmallett@FreeBSD.org>
+
+       * 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.
+
+2002-05-13  Dan Lewis  <dihlewis@yahoo.co.uk>
+
+       * regex.cs: Fixed bug in split.
+
+2002-05-08  Dan Lewis  <dihlewis@yahoo.co.uk>
+
+       * 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.
+
+2002-04-06  Dan Lewis  <dihlewis@yahoo.co.uk>
+
+       * cache.cs: Object methods should be overridden with "override".
+
+2002-04-04  Dan Lewis  <dihlewis@yahoo.co.uk>
+
+       * RegexRunner.cs, RegexRunnerFactory.cs: MS support classes. Stubs
+       added for completeness.
+
+       * regex.cs, match.cs, collections.cs: Serializable attribute.
+
 2002-04-04  Dan Lewis  <dihlewis@yahoo.co.uk>
 
        * regex.cs: Added static Matches and IsMatch methods.