Include quotes as part of the cells This may have been a misinturpretation on my part of whether to include quotes or not. See this issue: https://github.com/Daniel1of1/CSwiftV/issues/36
Include quotes as part of the cells
This may have been a misinturpretation on my part of whether to include quotes or not. See this issue: https://github.com/Daniel1of1/CSwiftV/issues/36
A csv parser conforming (and tested as much) to rfc4180 i.e the closest thing to a csv spec.
It is currently all in memory so not suitable for very large files.
let inputString = "Year,Make,Model,Description,Price\r\n1997,Ford,E350,descrition,3000.00\r\n1999,Chevy,Venture,another description,4900.00\r\n" let csv = CSwiftV(with: inputString) let rows = csv.rows // [ // ["1997","Ford","E350","descrition","3000.00"], // ["1999","Chevy","Venture","another description","4900.00"] // ] let headers = csv.headers // ["Year","Make","Model","Description","Price"] let keyedRows = csv.keyedRows // [ // ["Year":"1997","Make":"Ford","Model":"E350","Description":"descrition","Price":"3000.00"], // ["Year":"1999","Make":"Chevy","Model":"Venture","Description":"another, description","Price":"4900.00"] // ]
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
CSwiftV
A csv parser conforming (and tested as much) to rfc4180 i.e the closest thing to a csv spec.
It is currently all in memory so not suitable for very large files.
TL;DR