Skip to main content

parse_fulltext

Function parse_fulltext 

Source
pub fn parse_fulltext(lines: &[&[u8]]) -> Result<Vec<AnnotatedLine>, KnitError>
Expand description

Parse an annotated fulltext — a sequence of origin text\n byte lines — into a list of (origin, text) pairs. The text slice keeps its trailing newline just as the Python implementation does.