std.range.byLine

"Nordlöw" via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Sep 10 14:06:28 PDT 2014


I'm missing a range variant of byLine that can operate on strings 
instead of just File.

This is such a common feature so I believe it should have its 
place in std.range.

My suggestion is to define this using

splitter!(std.uni.isNewline)

but I'm missing std.uni.isNewline.

I'm guessing the problem here is that newline separators can be 1 
or 2 bytes long. that is it Separator must be of the same time as 
Range.

Should I add an overload in PR?

Destroy.


More information about the Digitalmars-d-learn mailing list