Skip to main content

parse_po_borrowed

Function parse_po_borrowed 

Source
pub fn parse_po_borrowed(input: &str) -> Result<BorrowedPoFile<'_>, ParseError>
Expand description

Parses PO content into a borrowed representation.

This parser keeps references into input for fields that do not need unescaping, which reduces allocations compared with crate::parse_po.

ยงErrors

Returns ParseError when the input is not valid PO syntax.