Function subparse::parse_str[][src]

pub fn parse_str(
    format: SubtitleFormat,
    content: &str,
    fps: f64
) -> Result<SubtitleFile>

Parse text subtitles, invoking the right parser given by format.

Returns an Err(ErrorKind::TextFormatOnly) if attempted on a binary file format.

Mandatory format specific options

See parse_bytes.