Unicode handling comparison
bearophile
bearophileHUGS at lycos.com
Thu Nov 28 01:45:22 PST 2013
Walter Bright:
> This means that all algorithms on strings will be crippled
> as far as performance goes.
If you want to sort an array of chars you need to use a dchar[],
or code like this:
char[] word = "just a test".dup;
auto sword = cast(char[])word.representation.sort().release;
See:
http://d.puremagic.com/issues/show_bug.cgi?id=10162
Bye,
bearophile
More information about the Digitalmars-d
mailing list