Function entry_lines

Source
pub fn entry_lines(content: &str) -> impl Iterator<Item = (usize, &str)>
Expand description

M3U entries with their zero-based source line numbers, without trimming paths.

Skip one initial encoding BOM, blank lines and first-column comments. Any following BOM character belongs to the first entry’s filename. Leading whitespace can name a different file, including one beginning with whitespace followed by #; readers must not reinterpret it as formatting. This only separates lines: callers retain their path and URL admission rules.