SwiftCSV
SwiftCSV copied to clipboard
CSV parser for Swift
https://github.com/swiftcsv/SwiftCSV/blob/048a1d3c2950b9c151ef9364b36f91baadc2c28c/SwiftCSV/CSV.swift#L111-L117 The current implementation of the enquote helper is still hard-coded to `","`, but we now support different delimiters.
With Swift's structured concurrency being a thing, it might pay off to provide an `async` CSV loader that would load in a background Task. All of my apps support macOS...
Potentially related to #109: Instead of old-school OO import/export commands, we could make the CSV or its tabular representation Codable. Example: https://github.com/Lantua/CommonCoding/blob/master/README.md#csv-codings https://github.com/dehesa/CodableCSV
Guide at: https://blog.swiftpackageindex.com/posts/auto-generating-auto-hosting-and-auto-updating-docc-documentation/ ## Change Package #if swift(>=5.6) // Add the documentation compiler plugin if possible package.dependencies.append( .package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0") ) #endif ## Add manifest `.spi.yml` in project root...
https://www.rfc-editor.org/rfc/rfc4180.html Things to check and if needed add new tests for: - [X] Fixing quotes in cells #111 (See RFC item 2.7) - [ ] Use CRLF as line/row separators...
The current GitHub action only uses `swift build` and `swift test`. That's good enough to catch some errors, but it doesn't catch CocoaPods or Carthage build problems. Adding an `xcodebuild`...
On 2022-08-25, @DivineDominion wrote: The extraction of shared serialization logic makes sense, too. It introduces potential variance between the CSV's data and the serializer, because the serializer can be ab-used...
Example: ``` en,comment,de,en,en-GB,fr,es,it ,,,,,,, Efficiency,,,,,,, %@,,,,,,, ``` In this case, the "Efficiency" row will appear as an empty row when printed because there are two columns named `en`. The fix...
Xcode 14.3 is throwing Ambiguous use of 'enumerateAsArray' with ``` do { // As a string, guessing the delimiter let csv: CSV = try CSV(string: "id,name,age\n1,Alice,18") csv.enumerateAsArray { array in...
#131 revealed that CI doesn't verify the Xcode project is not breaking. To make reviews and maintaining the package easier, we should add a build step for this.