[Issue 7515] The new std.string.translate is slow for ASCII text

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Mar 11 13:53:21 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=7515



--- Comment #6 from bearophile_hugs at eml.cc 2012-03-11 13:53:26 PDT ---
I have thought some more about this and I have changed my mind: there is no
point to artificially restrict the usefulness of this function. So I suggest:

1) To not use a opaque struct, but leave the simple translation array.
2) To use a translation array of 256 items. So translate is usable for an
ubyte[] array input too (with a cast of the ubyte[] to char[] in the function
call if necessary).

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list