[Issue 4764] Lazy versions of std.string.split and std.string.splitlines

2015-02-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4764

Nick Treleaven ntrel-...@mybtinternet.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #5 from Nick Treleaven ntrel-...@mybtinternet.com ---
Closing - a pull has been merged adding splitterLines:
https://github.com/D-Programming-Language/phobos/pull/2987

--


[Issue 4764] Lazy versions of std.string.split and std.string.splitlines

2014-03-13 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=4764


Nick Treleaven ntrel-pub...@yahoo.co.uk changed:

   What|Removed |Added

 CC||ntrel-pub...@yahoo.co.uk


--- Comment #2 from Nick Treleaven ntrel-pub...@yahoo.co.uk 2014-03-13 
06:03:59 PDT ---
I think std.regex.splitter could be used here. Possibly lineSplitter could be
added if necessary, and/or a std.regex.lineTerminator pattern regex. The latter
might be more flexible.

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


[Issue 4764] Lazy versions of std.string.split and std.string.splitlines

2014-03-13 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=4764


monarchdo...@gmail.com changed:

   What|Removed |Added

 CC||monarchdo...@gmail.com


--- Comment #3 from monarchdo...@gmail.com 2014-03-13 06:40:37 PDT ---
For what it's worth, there is now `splitter(string)` in algorithm/string that
does what you want, with the correct semantics.

For the lazy version of splitlines, something like byLines should be useable?

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


[Issue 4764] Lazy versions of std.string.split and std.string.splitlines

2014-03-13 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=4764



--- Comment #4 from bearophile_h...@eml.cc 2014-03-13 07:23:33 PDT ---
(In reply to comment #3)

 For the lazy version of splitlines, something like byLines should be 
 useable?

A lazy string.byLines seems good.

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