I used to be able to use a bffer for toUTF operation, what happened ?

John Colvin john.loughran.colvin at gmail.com
Wed Apr 11 12:12:03 UTC 2018


On Wednesday, 11 April 2018 at 12:04:24 UTC, deadalnix wrote:
> This used to be an option:
>
> dchar val = ...;
> char[4] buf;
> toUTF8(buf, val);
>
> Now I'm getting an error. Looking at the doc, it seems that 
> there are only option returning a string, which I assume is 
> allocated on the GC. Has the function moved somewhere else ? If 
> not, what's going on ?

std.utf.encode ?


More information about the Digitalmars-d mailing list