Skip to main content

py_splitlines

Function py_splitlines 

Source
pub fn py_splitlines(s: &str) -> Vec<&str>
Expand description

Python str.splitlines() (keepends=False): splits on the exact Python boundary set (\n \r \v \f \x1c \x1d \x1e \x85 U+2028 U+2029), with a \r\n pair consumed as a single boundary; no trailing empty element.