nextLine

Returns the next line within range.

nextLine
(
bool keepTerminator = false
Range
)
(
ref Range range
)

Examples

1 auto text = "123456\r\n12345\n1234\r\n123\r\n12\r\n1";
2 assert(nextLine!false(text) == "123456");
3 assert(nextLine!false(text) == "12345");
4 assert(nextLine!false(text) == "1234");
5 assert(nextLine!false(text) == "123");
6 assert(nextLine!false(text) == "12");
7 assert(nextLine!false(text) == "1");
8 assert(nextLine!false(text) == "");
9 assert(nextLine!false(text) == "");

Meta