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.
pub fn detect_line_ending(s: &str) -> Option<LineEndingKind>Detects the predominant line ending delimiter in a string.
Returns None if the input contains no recognized line ending characters.