JuliaLang/julia — pull request #5856 by tanmaykm (2014-02-19 09:02:19+00:00)
Title: readdlm quoted column support

This adds ability to read quoted columns to `readdlm` and `readcsv`.
````
julia> csv = readcsv(IOBuffer("first field,\"second \"\"quoted\"\" field\",\"\"\"begin with quote\"\nfirst field,\"this comma, is escaped\",\"new\nline\""))
2x3 Array{Any,2}:
"first field" "second \"quoted\" field" "\"begin with quote"
"first field" "this comma, is escaped" "new\nline"
````

Columns containing new lines, column delimiters, or beginning with a double-quote are automatically quoted by `writedlm`.
````
julia> iob = IOBuffer(); writecsv(iob, csv); takebuf_string(iob)
"first field,second \"quoted\" field,\"\"\"begin with quote\"\nfirst field,\"this comma, is escaped\",\"new\nline\"\n"
````

A new keyword argument `quotes` allows this to be switched on or off (on by default).

(Ref: #5838. Should fix: #5375)