Module newlines

Source

Structs§

Line
NewlineWithTrailingNewline
Like UniversalNewlineIterator, but includes a trailing newline as an empty line.
UniversalNewlineIterator
Like str, but accommodates LF, CRLF, and CR line endings, the latter of which are not supported by str.

Enums§

LineEnding
The line ending style used in Python source code. See https://docs.python.org/3/reference/lexical_analysis.html#physical-lines

Traits§

StrExt
Extension trait for str that provides a UniversalNewlineIterator.

Functions§

find_newline
Finds the next newline character. Returns its position and the LineEnding.