Skip to main content

preprocess

Function preprocess 

Source
pub fn preprocess(raw: &[u8], path: &Path) -> Result<String, ParseError>
Expand description

Stage 1: Preprocess raw bytes — decode UTF-8, strip BOM, normalize CRLF to LF.

§Errors

Returns ParseError::IoError if the input is not valid UTF-8.