detect_line_ending

Function detect_line_ending 

Source
pub fn detect_line_ending(s: &str) -> Option<LineEndingKind>
Expand description

Detects the predominant line ending delimiter in a string.

Returns None if the input contains no recognized line ending characters.