Author: miguel
Date: 2006-04-18 10:35:54 -0400 (Tue, 18 Apr 2006)
New Revision: 59594
Modified:
trunk/mcs/class/Microsoft.JScript/Microsoft.JScript/ChangeLog
trunk/mcs/class/Microsoft.JScript/Microsoft.JScript/TokenStream.cs
Log:
2006-04-18 Miguel de Icaza <[EMAIL PROTECTED]>
* TokenStream.cs: kill to_string method, it was one inneficient
way of turning char [] into strings. Use the proper String
constructor for that.
Modified: trunk/mcs/class/Microsoft.JScript/Microsoft.JScript/ChangeLog
===================================================================
--- trunk/mcs/class/Microsoft.JScript/Microsoft.JScript/ChangeLog
2006-04-18 14:32:46 UTC (rev 59593)
+++ trunk/mcs/class/Microsoft.JScript/Microsoft.JScript/ChangeLog
2006-04-18 14:35:54 UTC (rev 59594)
@@ -1,3 +1,9 @@
+2006-04-18 Miguel de Icaza <[EMAIL PROTECTED]>
+
+ * TokenStream.cs: kill to_string method, it was one inneficient
+ way of turning char [] into strings. Use the proper String
+ constructor for that.
+
2006-01-25 Cesar Lopez Nataren <[EMAIL PROTECTED]>
* FunctionExpression.cs: Set the prefix at resolve time not at
Modified: trunk/mcs/class/Microsoft.JScript/Microsoft.JScript/TokenStream.cs
===================================================================
--- trunk/mcs/class/Microsoft.JScript/Microsoft.JScript/TokenStream.cs
2006-04-18 14:32:46 UTC (rev 59593)
+++ trunk/mcs/class/Microsoft.JScript/Microsoft.JScript/TokenStream.cs
2006-04-18 14:35:54 UTC (rev 59594)
@@ -1047,9 +1047,9 @@
ReportCurrentLineError
("msg.invalid.re.flag");
return Token.ERROR;
}
-
- _string = to_string
(string_buffer).Substring (0, re_end);
- reg_exp_flags = to_string
(string_buffer).Substring (re_end, string_buffer_top - re_end);
+
+ _string = new String
(string_buffer, 0, re_end);
+ reg_exp_flags = new String
(string_buffer, re_end, string_buffer_top - re_end);
return Token.REGEXP;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches