unescape

Function unescape 

Source
pub fn unescape(cell: &[u8], quote: u8) -> Cow<'_, [u8]>
Expand description

Unescape a potentially escaped but unquoted (no leading/trailing quotes) CSV cell.

Returns a Cow::Borrowed if nothing needed unescaping, and a Cow::Owned if something was actually unescaped.

This function will therefore not allocate if this is not actually required.