pub(crate) fn first_line_ends_with(s: &str, c: char) -> bool