lines

Iterator to isolate lines.

Converts text into a set of lines, where each line is identified by a \n or \r\n combination. The line terminator is stripped from each resultant array.

foreach (line; lines ("one\ntwo\nthree"))
         ...
LineFruct!(T)
lines
(
T
)
(
T[] src
)

Meta