[Issue 10379] std.string.translate (and others) for a Range of characters
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Feb 10 22:55:13 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=10379
Seb <greensunny12 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |greensunny12 at gmail.com
Resolution|--- |FIXED
--- Comment #3 from Seb <greensunny12 at gmail.com> ---
2.079 will ship with substitute:
https://dlang.org/changelog/pending.html#std-algorithm-iteration-substitute
It doesn't use an internal table and is fully lazy and @nogc.
Its generic and works with any kind of range (+strings) and single chars.
Moreover, there's tr and translate in std.string:
https://dlang.org/phobos/std_string.html#.tr
https://dlang.org/phobos/std_string.html#.translate
--
More information about the Digitalmars-d-bugs
mailing list