pub fn parse_header(
header: &[u8],
spec: &HeaderSpec,
mode: ValidationMode,
at: HeaderPosition<'_>,
stats: &mut HeaderStats,
) -> Result<Vec<String>>Expand description
Parses one header (the bytes after >) into the cleaned values of the stratified fields.
Returns the fill value for every stratified field when the field count does not match (recording the mismatch); the caller turns recorded mismatches into an error in strict mode once all headers have been read.
ยงErrors
DimaError::InputData for invalid UTF-8 in strict mode.