[][src]Function gen_epub_book::ops::find_title

pub fn find_title<R: Read>(i: &mut R) -> Option<String>

Find an ePub title line in the specified input stream.

The title line contains <!-- ePub title: "TOC_NAME" -->, where TOC_NAME is any string not containing the " character.

Examples

assert_eq!(find_title(&mut &br#"L1\nL <!-- ePub title: "TTL" -->2\nL3"#[..]),
           Some("TTL".to_string()));