String conversion functions in Phobos

simendsjo simendsjo at gmail.com
Tue Aug 2 04:46:54 PDT 2011


On 02.08.2011 12:27, Jonathan M Davis wrote:
> On Tuesday 02 August 2011 12:15:00 simendsjo wrote:
>> On 02.08.2011 12:07, Jonathan M Davis wrote:
>>> The github version has std.utf.toUTFz
>>
>> Thanks, I'll try that.
>> What about the other way around? * to []?
>
> I believe that it'll work with char* to string with std.conv.to, but I think
> that's it at the moment. Ideally, std.conv.to would do the conversions in both
> directions for all string types, but it doesn't do that yet.
>
> - Jonathan M Davis

toUTFz worked great. It's good to see how phobos are just 
doing-the-right-thing most of the time.
Are * to [] planned for the next release?


More information about the Digitalmars-d-learn mailing list