src/pylib/stringlib/split/splitlinesIter

Search:
Group by:
Source   Edit  

We cannot just use strutils.splitLines for str.splitlines, even nor for bytes.splitlines, as Python uses Univeral NewLine as sep.

See https://docs.python.org/3/glossary.html#term-universal-newlines

For a table of all Universal Newlines, see https://docs.python.org/3/library/stdtypes.html#str.splitlines

Iterators

iterator splitlines[S](self: S; keepends = false): S
mixin IS_CAR_NL, IS_LINEBREAK, [Slice], [int], len Source   Edit