[Issue 10162] Opposite of std.string.representation
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Nov 13 02:01:16 PST 2013
https://d.puremagic.com/issues/show_bug.cgi?id=10162
--- Comment #5 from bearophile_hugs at eml.cc 2013-11-13 02:00:59 PST ---
(In reply to comment #3)
> Most of my use cases are to sort a char[]. It's a common operation.
So instead of unrepresentation an alternative solution is to introduce a little
std.ascii.asciiSort (it could also be named just std.ascii.sort, or
std.algorithm.asciiSort):
char[] s1 = ['t', 'e', 's', 't'];
string t1 = s1.asciiSort;
string s2 = "test";
string t2 = s2.dup.asciiSort.assumeUnique;
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list