[Issue 10379] New: std.string.translate (and others) for a Range of characters
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jun 16 06:53:54 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10379
Summary: std.string.translate (and others) for a Range of
characters
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at eml.cc 2013-06-16 06:53:53 PDT ---
In Phobos I'd like a function like std.string.translate (or an overload of the
same function) that works on a lazy Range of characters, instead of a string.
This is useful to reduce the memory used when I have to process lot of data, to
avoid the creation of many large intermediate strings.
(One current workaround is to use chunks, and process each piece with the
string functions).
Probably it's useful for other similar string functions to accept a lazy Range
of characters, like std.string.removechars, std.string.tr, std.array.replace,
etc. (This also makes a function as std.string.tr even more similar to the
Posix tr).
--
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