Skip to main content

py_splitlines_keepends

Function py_splitlines_keepends 

Source
pub fn py_splitlines_keepends(text: &str) -> Vec<&str>
Expand description

_split_lines(keepends=True): split on \r\n, \n and \r, and nothing else.

Deliberately not str::lines and deliberately not str.splitlines. Task 3 narrowed the specification to these three boundaries in both languages; a vertical tab is content, and joining across one deleted it.