Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A csv parser written in swift conforming to rfc4180

License

NotificationsYou must be signed in to change notification settings

ulfie22/CSwiftV

 
 

Repository files navigation

A csv parser conforming (and tested as much) torfc4180 i.e the closest thing to a csv spec.

It is currently all in memory so not suitable for very large files.

###TL;DR

letinputString="Year,Make,Model,Description,Price\r\n1997,Ford,E350,descrition,3000.00\r\n1999,Chevy,Venture,another description,4900.00\r\n"letcsv=CSwiftV(String: inputString)letrows= csv.rows // [                    //  ["1997","Ford","E350","descrition","3000.00"],                    //  ["1999","Chevy","Venture","another description","4900.00"]                    // ]letheaders= csv.headers // ["Year","Make","Model","Description","Price"]letkeyedRows= 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"]                              // ]

About

A csv parser written in swift conforming to rfc4180

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift89.3%
  • Objective-C6.1%
  • Ruby4.6%

[8]ページ先頭

©2009-2025 Movatter.jp