Skip to main content

quote

Function quote 

Source
pub fn quote(sample: &[u8]) -> Option<u8>
Expand description

Whether the file uses a quote character at all, and which one.

Only the double quote is looked for, which is what sniff_csv reports and what every writer emits. A field is quoted when the first byte after a delimiter or a line start is the quote, so a double quote sitting in the middle of a field does not make the file a quoted one.