Function rustpython_ast::source_code::find_newline
source ยท pub fn find_newline(text: &str) -> Option<(usize, LineEnding)>
Expand description
Finds the next newline character. Returns its position and the LineEnding
.
pub fn find_newline(text: &str) -> Option<(usize, LineEnding)>
Finds the next newline character. Returns its position and the LineEnding
.