* RegexTest.cs: Add some simple tests for debugging/zen
[mono.git] / mcs / class / System / System.Text.RegularExpressions / ChangeLog
1 2004-06-10  Gert Driesen <drieseng@users.sourceforge.net>
2
3         * RegexRunner.cs: fixed case mismatch of methods
4
5 2004-06-10  Gert Driesen <drieseng@users.sourceforge.net>
6
7         * RegexRunner.cs: marked TODO, added missing protected internal
8         fields, throw NotImplementedException in all methods
9
10 2004-06-10  Gert Driesen <drieseng@users.sourceforge.net>
11
12         * RegexRunnerFactory.cs: removed comment, no longer throw exception
13         from ctor
14         * regex.cs: fixed public API signature by renaming protected 
15         internal fields and adding destructor, added MonoTODO attribute to
16         fields and method that are not yet implemented, changed not 
17         implemented methods to throw NotImplementedException instead of
18         Exception, fixed names of field that are serialized
19
20 2004-06-06  Jambunathan K <kjambunathan@novell.com>
21         
22         * parser.cs: Fixed issues with Regex.Unescape() identified as part of
23         debugging bug #58256. The original problem reported was about
24         inconsistency between the way we treat replacement patterns and the 
25         way microsoft treats the replacement patterns in Regex.Replace(). MS
26         implementation is buggy and doesn't honour escape sequences in the
27         replacement patterns, even though the SDK claims otherwise.
28
29         
30 2004-06-01  Gonzalo Paniagua Javier <gonzalo@ximian.com>
31
32         * syntax.cs: re-applied my patch from 2004-05-27 plus a fix which is
33         emitting a Category.All if both a category and its negated value are
34         present.
35
36 2004-06-01  Gonzalo Paniagua Javier <gonzalo@ximian.com>
37
38         * syntax.cs: reverting my previous patch. It causes bigger problems.
39
40 2004-05-27  Gonzalo Paniagua Javier <gonzalo@ximian.com>
41
42         * category.cs: added LastValue field to mark the end of enum Category.
43         * syntax.cs: in CharacterClass, use Category.LastValue to get the size
44         of the array needed. Use a BitArray instead of bool[].
45         In AddCategory(), don't set the opposite category as false. Fixes
46         bug #59150. All tests pass.
47
48 2004-05-25  Jackson Harper  <jackson@ximian.com>
49
50         * parser.cs: Allow creating a regular expression using {,n} as the
51         specified. The min bounds is set to -1, I am not completely sure
52         if that is what it is supposed to be but MS does not set it to 0
53         based on testing. Patch by dave-gnome-bugs@earth.li. Fixes bug #56761.
54
55 2004-05-12  Dick Porter  <dick@ximian.com>
56
57         * regex.cs: 
58         * quicksearch.cs: 
59         * RegexRunnerFactory.cs: 
60         * RegexRunner.cs: More public API difference fixes.
61
62         * GroupCollection.cs: 
63         * MatchCollection.cs: 
64         * CaptureCollection.cs: Moved GroupCollection, MatchCollection and
65         CaptureCollection so that they no longer inherit from the
66         non-standard RegexCollectionBase class.  Fixes the API difference.
67
68 2004-04-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
69
70         * arch.cs:
71         * compiler.cs:
72         * interpreter.cs:
73         * parser.cs:
74         * syntax.cs:
75         Patch by Eric Durand Tremblay.
76         1) Capture inner group when named.
77         2) Resolved parse error caused by not capturing inner group
78         3) Resolved incorrect capture group
79         4) Now, not capturing anything when unnamed ( correct behavior)
80
81
82 2004-04-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
83
84         * arch.cs:
85         * compiler.cs:
86         * interpreter.cs:
87         * parser.cs:
88         * syntax.cs: converted to unix line endings.
89
90 2004-03-30  Lluis Sanchez Gual <lluis@ximian.com>
91
92         * collections.cs: In the indexer, return an empty group if the requested
93         group is not found.
94         * match.cs: Added default constructor for Group.
95         
96 2004-03-24  Gonzalo Paniagua Javier <gonzalo@ximian.com>
97
98         * parser.cs: fixed group numbering.
99
100 2004-03-22  Jackson Harper  <jackson@ximian.com>
101
102         * parser.cs: Use the group number as the name in mapping. Patch by
103         Gert Driesen.
104         * regex.cs: Fix off by one error. Patch by Gert Driesen.
105
106 2004-03-17  Francois Beauchemin <beauche@softhome.net>
107         * syntax.cs, interpreter.cs, quicksearch.cs, regex.cs, compiler.cs : 
108                 Revised support for RigthToLeft. 
109                 quicksearch has now an reverse option.          
110                 This fixes bug #54537 
111  
112         * regex.cs, compiler.cs :
113                 Some code to support CILCompiler.               
114         * regex.cs : 
115                 Added some undocumented of MS.
116  
117 2004-03-16  Gonzalo Paniagua Javier <gonzalo@ximian.com>
118
119         * parser.cs: allow a @"\0" escape sequence. Fixes bug #54797.
120
121 2004-02-01  Miguel de Icaza  <miguel@ximian.com>
122
123         * syntax.cs, interval.cs: Applied patch from Marco Cravairo
124         through Francois Beauchemin who reviewed on the mailing list.
125         This fixes bug #45976
126
127 2004-01-16  Gonzalo Paniagua Javier <gonzalo@ximian.com>
128
129         * parser.cs: an opening brace without a
130         quantifier do not cause a parse error. Fixes bug #52924.
131
132 2004-01-07  Lluis Sanchez Gual <lluis@ximian.com>
133
134         * regex.cs: In Split(), if the last match is at the end of the string, 
135         an empty string must be added to the array of results.
136
137 2003-12-15  Sanjay Gupta <gsanjay@novell.com>
138         * match.cs: Check for null value before Substring method call.  
139         Fixes bug #52034.
140
141 2003-11-21  Juraj Skripsky <js@hotfeet.ch>
142
143         * quicksearch.cs: Create and use hashtable only for "long" search 
144         strings. 
145
146         (Search): Use simple scan for a single-character search strings.
147         
148         (GetChar): Simplify case sensitivity handling.
149
150 2003-11-27  Gonzalo Paniagua Javier <gonzalo@ximian.com>
151
152         * interpreter.cs: when evaluating a degenerate match, restore the
153         RepeatContext if fail. Fixes bug #42529.
154
155 2003-11-22  Jackson Harper <jackson@ximian.com>
156
157         * regex.cs: Add CultureInvariant flag to RegexOptions.
158         
159 2003-11-20  Juraj Skripsky <js@hotfeet.ch>
160
161         * quicksearch.cs: Use a hashtable instead of an array for the
162         shift table to improve the memory usage.  
163
164 2003-11-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
165
166         * regex.cs:
167         (Split): include capture groups in the results, if any. Fixes bug
168         #51146.
169
170 2003-07-09  Gonzalo Paniagua Javier <gonzalo@ximian.com>
171
172         * regex.cs: patch from Eric Lindvall <eric@5stops.com> that fixes bug
173         #44830.
174
175 2003-03-05  Miguel de Icaza  <miguel@ximian.com>
176
177         * category.cs (CategoryUtils.CategoryFromName): Use StartsWith
178         ("Is") instead of a substring for (0,2) which was throwing an
179         exception causing Category.None to be returned
180
181 2003-01-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
182
183         * collections.cs: fixed bug #30091.
184
185 2002-12-20  Gonzalo Paniagua Javier <gonzalo@ximian.com>
186
187         * regex.cs: fixed little mistake (closes #35860).
188
189 2002-11-12 Jackson Harper <jackson@latitudegeo.com>
190
191         * arch.cs compiler.cs regex.cs: Added mapping attribute to MachineFactories
192
193 2002-11-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
194
195         * parser.cs: detect illegal \ at end of pattern. Fixes 31334.
196
197 2002-10-25  Gonzalo Paniagua Javier <gonzalo@ximian.com>
198
199         * parser.cs: applied fix from Tim Haynes (thaynes@openlinksw.com) to
200         solve bug #32807. Also modified GetMapping to return the same as MS.
201
202 2002-08-28  Juli Mallett  <jmallett@FreeBSD.org>
203
204         * arch.cs, compiler.cs: Give the interpreter machine a property
205         for the retrieval of the group count.
206
207         * regex.cs: Use the new GroupCount property of the factory to
208         initialise the current group count, and restructure code to compile
209         the pattern only the first time it is needed (essentially backing
210         out the previous revision of regex.cs, to use the new code.)
211
212 2002-08-14  Cesar Octavio Lopez Nataren <cesar@ciencias.unam.mx>
213
214         * regex.cs: Added the ctr for ISerializable implementation and
215         implemented the GetObjectData function.
216
217 2002-07-30  Juli Mallett  <jmallett@FreeBSD.org>
218
219         * regex.cs: Fixed bug where the expression would not be
220         re-evaluated for grouping purposes when factory caches were
221         used, resulting in no groups being recognised after one call
222         with a given pattern and no change in options.
223
224 2002-05-13  Dan Lewis  <dihlewis@yahoo.co.uk>
225
226         * regex.cs: Fixed bug in split.
227
228 2002-05-08  Dan Lewis  <dihlewis@yahoo.co.uk>
229
230         * interpreter.cs: Moved to an array-based stack representation
231         for faster captures.
232
233         * match.cs, collections.cs: Decoupled capture representation from
234         interpreter internals.
235
236         * cache.cs: Changed Key type from struct to class for speed.
237
238 2002-04-06  Dan Lewis  <dihlewis@yahoo.co.uk>
239
240         * cache.cs: Object methods should be overridden with "override".
241
242 2002-04-04  Dan Lewis  <dihlewis@yahoo.co.uk>
243
244         * RegexRunner.cs, RegexRunnerFactory.cs: MS support classes. Stubs
245         added for completeness.
246
247         * regex.cs, match.cs, collections.cs: Serializable attribute.
248
249 2002-04-04  Dan Lewis  <dihlewis@yahoo.co.uk>
250
251         * regex.cs: Added static Matches and IsMatch methods.
252
253 2002-04-03  Dan Lewis  <dihlewis@yahoo.co.uk>
254
255         * ChangeLog: Added changelog.
256
257         * cache.cs: Fixed bug in MRUList.Evict.