[][src]Function alass_util::parse_sub_file

pub fn parse_sub_file(
    data: &[u8],
    format: SubtitleFormat,
    sub_encoding: Option<String>
) -> SubparseResult<SubtitleFile>

Parses raw subtitle content with either user-specified or auto-detected encoding. If parsing fails with the user-specified encoding, will detect and try again.