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