Function nix_compat::aterm::parser::parse_string_field

source ·
pub(crate) fn parse_string_field(i: &[u8]) -> IResult<&[u8], String>
Expand description

Parse a field in double quotes, undo any escaping, and return the unquoted and decoded String, if it’s valid UTF-8. Or fail parsing if the bytes are no valid UTF-8.