Re: fromStringz for wide characters

2017-09-05 Thread John Burton via Digitalmars-d-learn
On Tuesday, 5 September 2017 at 08:39:37 UTC, Jonathan M Davis wrote: On Tuesday, September 05, 2017 08:15:04 John Burton via Digitalmars-d-learn wrote: std.string.fromStringz will create me a string from a null terminated array of characters. But I have a zero terminated array of "short"s

Re: fromStringz for wide characters

2017-09-05 Thread Jonathan M Davis via Digitalmars-d-learn
On Tuesday, September 05, 2017 08:15:04 John Burton via Digitalmars-d-learn wrote: > std.string.fromStringz will create me a string from a null > terminated array of characters. But I have a zero terminated > array of "short"s (from a win32 api call) which I'd like to turn > into a wstring. But

fromStringz for wide characters

2017-09-05 Thread John Burton via Digitalmars-d-learn
std.string.fromStringz will create me a string from a null terminated array of characters. But I have a zero terminated array of "short"s (from a win32 api call) which I'd like to turn into a wstring. But there doesn't seem to be a function to do this. Do I need to write my own, or am I