1 |
|
2005-07-21 Florian Gross <flgr@ccan.de> |
2 |
|
|
3 |
|
* Fixed a bug in category.cs that caused ECMAScript \d to fail. |
4 |
|
|
5 |
|
2005-07-13 Raja R Harinath <rharinath@novell.com> |
6 |
|
|
7 |
|
Make even more lazier. |
8 |
|
* MatchCollection.cs (TryToGet): Don't generate match i+1 when |
9 |
|
we're looking for match i. Change post-conditions. |
10 |
|
(FullList): New helper property. Ensures the list is fully populated. |
11 |
|
(Count, CopyTo): Use it. |
12 |
|
(Enumerator.Current): Update to new post-conditions of TryToGet. |
13 |
|
(Enumerator.MoveNext): Likewise. Don't modify index if we're |
14 |
|
beyond the end. |
15 |
|
|
16 |
|
2005-07-08 Raja R Harinath <rharinath@novell.com> |
17 |
|
|
18 |
|
* MatchCollection.cs: Convert to incremental mode. |
19 |
|
* regex.cs (Regex.Matches): Update. Pass responsibility of |
20 |
|
generating all matches to MatchCollection. |
21 |
|
|
22 |
|
2005-06-14 Raja R Harinath <harinath@gmail.com> |
23 |
|
|
24 |
|
* parser.cs (Parser.ConsumeWhitespace): Add bounds check. |
25 |
|
|
26 |
|
Fix #74753. |
27 |
|
* Match.cs (Match) [zero-argument variant]: Make private. |
28 |
|
* GroupCollection (Item) [string variant]: Don't look for the |
29 |
|
group number in an empty match. |
30 |
|
|
31 |
|
2005-06-10 Raja R Harinath <rharinath@novell.com> |
32 |
|
|
33 |
|
* interpreter.cs (Interpreter.GenerateMatch): Avoid allocating two |
34 |
|
intermediate arrays to build the final result. |
35 |
|
(Interpreter.GetGroupInfo, Interpreter.PopulateGroup): New helper |
36 |
|
functions. |
37 |
|
* CaptureCollection.cs (list): Change from ArrayList to list. |
38 |
|
(SetValue): New internal helper, used by Interpreter.PopulateGroup. |
39 |
|
(Enumerator): Remove helper class. |
40 |
|
(IEnumerator.GetEnumerator): Just use list.GetEnumerator. |
41 |
|
* GroupCollection.cs: Likewise. |
42 |
|
* Group.cs (Group): Move responsibility of populating 'Captures' |
43 |
|
to Interpreter.PopulateGroup. |
44 |
|
* Match.cs (Match): Move responsibility of populating 'Groups' to |
45 |
|
Interpreter.GenerateMatch. |
46 |
|
|
47 |
|
2005-05-25 Raja R Harinath <rharinath@novell.com> |
48 |
|
|
49 |
|
* replace.cs (ReplacementEvaluator.Compile): Rewrite to avoid |
50 |
|
creating several intermediate strings. Simplify internal |
51 |
|
intermediate representation. |
52 |
|
(ReplacementEvaluator.EvaluateAppend): New. Version of Evaluate |
53 |
|
that builds the result directly on a passed-in StringBuilder. |
54 |
|
(ReplacementEvaluator.Evaluate): Just a wrapper around |
55 |
|
EvaluateAppend. |
56 |
|
* regex.cs (MatchAppendEvaluator): New internal delegate. |
57 |
|
(Regex.Replace): Use MatchAppendEvaluator. |
58 |
|
(Regex.Adapter): New class used to adapt a MatchEvaluator to a |
59 |
|
MatchAppendEvaluator. |
60 |
|
|
61 |
|
2005-05-24 Raja R Harinath <rharinath@novell.com> |
62 |
|
|
63 |
|
* replace.cs (ReplacementEvaluator.CompileTerm): Fix group |
64 |
|
returned by $+. |
65 |
|
|
66 |
|
2005-05-20 Ben Maurer <bmaurer@ximian.com> |
67 |
|
|
68 |
|
* regex.cs: Some memory allocation optimizations. |
69 |
|
|
70 |
|
2005-05-20 Raja R Harinath <rharinath@novell.com> |
71 |
|
|
72 |
|
Fix #74735. |
73 |
|
* replace.cs (ReplacementEvaluator.Compile): Allow CompileTerm to |
74 |
|
fail and yet have advanced the pointer. Append the scanned-over |
75 |
|
portion to the "literal" being built. |
76 |
|
(ReplacementEvaluator.CompileTerm): Don't throw any exceptions. |
77 |
|
If a term cannot be recognized, just return null. |
78 |
|
|
79 |
|
* compiler.cs (InterpreterFactory.GroupCount): Fix. The 0'th |
80 |
|
index corresponds to Opcode.Info. |
81 |
|
|
82 |
|
* parser.cs (Parser.Unescape): If the string doesn't contain any |
83 |
|
'\' character, don't allocate a new string. |
84 |
|
|
85 |
|
* replace.cs (ReplacementEvalutator.Term.AppendResult): Rename |
86 |
|
from GetResult. Append to a passed-in StringBuilder rather than |
87 |
|
return a string. |
88 |
|
(ReplacementEvaluator.Evaluate): Update. |
89 |
|
|
90 |
|
* Capture.cs, Group.cs, Match.cs: New files split out of ... |
91 |
|
* match.cs: ... this. Remove. |
92 |
|
|
93 |
|
2005-02-27 Gonzalo Paniagua Javier <gonzalo@ximian.com> |
94 |
|
|
95 |
|
* parser.cs: stuff inside {} might not be a quantifier. Fixes |
96 |
|
bug #69193. |
97 |
|
|
98 |
|
2005-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com> |
99 |
|
|
100 |
|
* quicksearch.cs: handle IgnoreCase when getting the shift distance. |
101 |
|
Fixes bug #69065. Patch by mei@work.email.ne.jp. |
102 |
|
|
103 |
|
2005-01-08 Miguel de Icaza <miguel@ximian.com> |
104 |
|
|
105 |
|
* syntax.cs: Applied patch from mei@work.email.ne.jp to fix bug |
106 |
|
#71077. |
107 |
|
|
108 |
|
* parser.cs: Turns out that \digit sequences are octal sequences |
109 |
|
(no leading zero is needed); And the three octal digit rule |
110 |
|
applies to the leading zero as well. |
111 |
|
|
112 |
|
This fixes the Unescape method. |
113 |
|
|
114 |
|
2004-11-29 Gonzalo Paniagua Javier <gonzalo@ximian.com> |
115 |
|
|
116 |
|
* regex.cs: use NextMatch to move on to the next match. Fixes bug |
117 |
|
#57274. |
118 |
|
|
119 |
|
2004-11-09 Atsushi Enomoto <atsushi@ximian.com> |
120 |
|
|
121 |
|
* parser.cs : cast. |
122 |
|
|
123 |
|
2004-11-08 Ben Maurer <bmaurer@ximian.com> |
124 |
|
|
125 |
|
* replace.cs, parser.cs: Use stringbuilder for allocation sanity. |
126 |
|
|
127 |
|
2004-10-21 Joerg Rosenkranz <joergr@voelcker.com> |
128 |
|
|
129 |
|
* regex.cs: Fixed a bug introduced with the last patch which |
130 |
|
prevented any replacements when a postive count is given. |
131 |
|
This also happens in all overloads without count parameter. |
132 |
|
|
133 |
|
2004-10-18 Gonzalo Paniagua Javier <gonzalo@ximian.com> |
134 |
|
|
135 |
|
* regex.cs: in Replace, when count is negative, replacement continues |
136 |
|
to the end of the string. |
137 |
|
|
138 |
|
Fixes bug #68398. Patch by Jon Larimer. |
139 |
|
|
140 |
|
2004-06-10 Gert Driesen <drieseng@users.sourceforge.net> |
141 |
|
|
142 |
|
* RegexRunner.cs: fixed case mismatch of methods |
143 |
|
|
144 |
|
2004-06-10 Gert Driesen <drieseng@users.sourceforge.net> |
145 |
|
|
146 |
|
* RegexRunner.cs: marked TODO, added missing protected internal |
147 |
|
fields, throw NotImplementedException in all methods |
148 |
|
|
149 |
|
2004-06-10 Gert Driesen <drieseng@users.sourceforge.net> |
150 |
|
|
151 |
|
* RegexRunnerFactory.cs: removed comment, no longer throw exception |
152 |
|
from ctor |
153 |
|
* regex.cs: fixed public API signature by renaming protected |
154 |
|
internal fields and adding destructor, added MonoTODO attribute to |
155 |
|
fields and method that are not yet implemented, changed not |
156 |
|
implemented methods to throw NotImplementedException instead of |
157 |
|
Exception, fixed names of field that are serialized |
158 |
|
|
159 |
2004-06-06 Jambunathan K <kjambunathan@novell.com> |
2004-06-06 Jambunathan K <kjambunathan@novell.com> |
160 |
|
|
161 |
* parser.cs: Fixed issues with Regex.Unescape() identified as part of |
* parser.cs: Fixed issues with Regex.Unescape() identified as part of |