Summary: Lazy versions of std.string.split and
--- Comment #0 from bearophile_h...@eml.cc 2010-08-29 19:01:29 PDT ---
If you have a very large string that you need to split into its lines or parts
lazily, you waste some memory if you use std.string.split or
So I suggest to add to std.string two ranges that work like std.string.split or
std.string.splitlines but are lazy like std.algorithm.splitter().
std.algorithm.splitter() can't be used directly for this purpose because the
semantic of std.string.split and std.string.splitlines is string-specific, they
use three different kinds of newlines, and several different kinds of newspace
(but the two new string functions may call std.algorithm.splitter() internally
to reduce code duplication).
The two new functions may be named for example std.string.lazySplit and
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------