shuffle a character array
Mike Parker via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Jul 20 01:11:24 PDT 2016
On Wednesday, 20 July 2016 at 08:05:20 UTC, Mike Parker wrote:
> On Wednesday, 20 July 2016 at 08:02:07 UTC, Mike Parker wrote:
>> On Wednesday, 20 July 2016 at 07:49:38 UTC, celavek wrote:
>
>> If you are absolutely, 100% certain that you are dealing with
>> ASCII, you can do this:
>>
>
> And I forgot to add:
>
> Otherwise, you'll want to convert to dchar[] (probably via
> std.utf.toUTF32) and pass that along instead.
Actually, std.conv.to might be better, since toUTF32 returns
dstring:
auto dcharArray = to!(dchar[])(charArray);
More information about the Digitalmars-d-learn
mailing list