[Mono-bugs] [Bug 74872][Nor] Changed - System.Uri construction from pre-escaped strings inconsistent

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Jul 1 13:56:24 EDT 2005

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by dsd at gentoo.org.


--- shadow/74872	2005-07-01 13:50:40.000000000 -0400
+++ shadow/74872.tmp.20441	2005-07-01 13:56:24.000000000 -0400
@@ -96,6 +96,15 @@
 ------- Additional Comments From atsushi at ximian.com  2005-07-01 13:50 -------
 The patch works fine :-) but one thing am afraid is that it seems to
 create  too many string objects for every HexUnescapeMultiByte() call.
 So it might be even better not to return string for one character but
 to return resulting char (adding one more ref or out argument).
+------- Additional Comments From dsd at gentoo.org  2005-07-01 13:56 -------
+The reason we return a string is because of the surrogate stuff -
+sometimes we might have to return two characters. Are you suggesting
+that we return the first character in the return value, and the second
+through a ref/out parameter?
+Another option is to return a char[] array, but I'm not sure how that
+rates in terms of efficiency against strings.

More information about the mono-bugs mailing list