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: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from [email protected] 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: -------

Reply via email to