[Issue 10203] std.string.toUpperInPlace is... not in place
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Sep 21 14:35:52 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10203
w0rp <devw0rp at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |devw0rp at gmail.com
--- Comment #7 from w0rp <devw0rp at gmail.com> 2013-09-21 14:35:51 PDT ---
It may be worth considering presenting only what is possible, so offer
toUpperInPlace or toLowerInPlace only on ASCII data. As you say, Unicode
strings change in byte length dramatically, but the ASCII range stays the same.
So I think it would be worth offering functions with different names, or
perhaps with locale template arguments. (Locale.ascii, or whatever.) Just so
there can be a guarantee of something never allocating when you want to avoid
that, but still let you get at a "almost there" function when you want that.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list