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