rlineSplitter
fn
auto lineSplitter(KeepTerminator keepTerm = No.keepTerminator, Range)(Range r) if (hasSlicing!Range && hasLength!Range && isSomeChar!(ElementType!Range) && !isSomeString!Range)- Split an array or slicable range of characters into a range of lines using
'\r','\n','\v','\f',"\r\n",lineSep,paraSepand'\u0085'(NEL) as delimiters. IfkeepTermis set toYes.keepTerminator, then the delimiter is included in the slices returned.
Does not throw on invalid UTF; such is simply passed unchanged to the output.
Adheres to Unicode 7.0.
Does not allocate memory.
Parameters
r | array of chars, wchars, or dchars or a slicable range |
keepTerm | whether delimiter is included or not in the results |
Returns
range of slices of the input range
See Also
fn
auto lineSplitter(KeepTerminator keepTerm = No.keepTerminator, C)(C[] r) if (isSomeChar!C)Ditto