[Issue 10203] std.string.toUpperInPlace is... not in place
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu May 30 02:19:54 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10203
monarchdodra at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
See Also| |http://d.puremagic.com/issu
| |es/show_bug.cgi?id=9629
AssignedTo|monarchdodra at gmail.com |nobody at puremagic.com
--- Comment #3 from monarchdodra at gmail.com 2013-05-30 02:19:53 PDT ---
(In reply to comment #2)> So when I take the string "İa":
> auto a = "\xC4\xB0\x61";
> auto b = a;
> toLowerInPlace(a);
>
> //Now:
> //a == "\x69\xB0"
> //b == "\x69\xB0\x61" Oops: Trailing code unit :/
Wait, this example is wrong, corrected as:
take the string "aİ"
auto a = "\x61\xC4\xB0";
auto b = a;
toLowerInPlace(a);
//Now:
//a == "\x61\x69"
//b == "\x61\x69\xB0" Oops: Trailing code unit :/
Sorry.
--
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