shuffle a character array

pineapple via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jul 21 04:26:24 PDT 2016


On Wednesday, 20 July 2016 at 18:32:15 UTC, Jesse Phillips wrote:
> I think you mean that your range library treats them as arrays 
> of code units, meaning your library will break (some) unicode 
> strings.

Right - I disagree with the assessment that all (or even most) 
char[] types are intended to represent unicode strings, rather 
than arrays containing chars.

If you want your array to be interpreted as a unicode string, 
then you should use std.utc's byGrapheme or similar functions.


More information about the Digitalmars-d-learn mailing list