You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.target(name: /* Your target name here */, dependencies: ["CodableCSV"])
@@ -48,7 +48,7 @@ You can choose to add the library through SPM or Cocoapods:
48
48
- [Cocoapods](https://cocoapods.org).
49
49
50
50
```
51
-
pod 'CodableCSV', '~>0.5.0'
51
+
pod 'CodableCSV', '~>0.5.1'
52
52
```
53
53
54
54
</p></details>
@@ -175,17 +175,17 @@ let reader = CSVReader(input: ...) {
175
175
176
176
A `CSVWriter` encodes CSV information into a specified target (i.e. a `String`, or `Data`, or a file). It can be used at a _high-level_, by encoding completely a prepared set of information; or at a _low-level_, in which case rows or fields can be writen individually.
177
177
178
-
- Complete CSV rows serialization.
178
+
- Complete CSV rows encoding.
179
179
180
180
```swift
181
181
let input = [
182
182
["numA", "numB", "name" ],
183
183
["1" , "2" , "Marcos" ],
184
184
["4" , "5" , "Marine-Anaïs"]
185
185
]
186
-
let data = try CSVWriter.serialize(rows: input)
187
-
let string = try CSVWriter.serialize(rows: input, into: String.self)
@@ -254,7 +254,7 @@ A `CSVWriter` encodes CSV information into a specified target (i.e. a `String`,
254
254
255
255
-`bomStrategy` (default: `.convention`) indicates whether a Byte Order Marker will be included at the beginning of the CSV representation.
256
256
257
-
The OS convention is that BOMs are never writen, except when `.utf16`, `.utf32`, or `.unicode` string encodings are specified. You could however indicate that you always want the BOM writen (`.always`) or that is never writer (`.never`).
257
+
The OS convention is that BOMs are never writen, except when `.utf16`, `.utf32`, or `.unicode` string encodings are specified. You could however indicate that you always want the BOM writen (`.always`) or that is never writen (`.never`).
258
258
259
259
The configuration values are set during initialization and can be passed to the `CSWriter` instance through a structure or with a convenience closure syntax:
Copy file name to clipboardExpand all lines: docs/SUPPORT.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
Here is a helpful list of "where to get help" depending on the topic:
4
4
5
-
-**How to use [CodableCSV](https://www.github.com/dehesa/CodableCSV)?**
5
+
-**How to use CodableCSV?**
6
6
7
7
The first place to look is the [README file](https://github.com/dehesa/CodableCSV/blob/master/README.md). It is kept updated and there is a wealth of information under each right-pointing [caret](https://en.wikipedia.org/wiki/Caret). Information spans from basic usage to tips on how to squeeze the best performance.
8
8
@@ -20,11 +20,11 @@ Here is a helpful list of "where to get help" depending on the topic:
20
20
21
21
For complex queries, go to the [Swift forums](https://forums.swift.org), specifically the [_Using Swift_](https://forums.swift.org/c/swift-users/15) category, setting the search tag to [_codable_](https://forums.swift.org/tags/c/swift-users/15/codable).
22
22
23
-
-**How to contribute to [CodableCSV](https://www.github.com/dehesa/CodableCSV)?**
23
+
-**How to contribute to CodableCSV?**
24
24
25
-
This project uses the standard [CONTRIBUTING.md](docs/CONTRIBUTING.md) file explaining the contribution guidelines. This same file also has a section on "where to start contributing", in case you want to contribute but you are unsure where to start.
25
+
This project uses the standard [CONTRIBUTING.md](CONTRIBUTING.md) file explaining the contribution guidelines. This same file also has a section on "where to start contributing", in case you want to contribute but you are unsure where to start.
26
26
27
-
Also take a look at the Github's [projects page](https://github.com/dehesa/CodableCSV/projects) where you can see the project's Kanban board, or at a higher level, take a look at the [Roadmap graph](docs/Assets/Roadmap.svg).
27
+
Also take a look at the Github's [projects page](https://github.com/dehesa/CodableCSV/projects) where you can see the project's Kanban board, or at a higher level, take a look at the [Roadmap graph](Assets/Roadmap.svg).
/// - parameter append: In case an existing file is under the given URL, this Boolean indicates that the information will be appended to the file (`true`), or the file will be overwritten (`false`).
94
94
/// - parameter configuration: Configuration values specifying how the CSV output should look like.
95
95
/// - throws: `CSVError<CSVWriter>` exclusively.
96
-
@inlinablepublicstaticfuncserialize<S:Sequence,C:Collection>(rows:S, into fileURL:URL, append:Bool, configuration:Configuration=.init())throwswhere S.Element==C, C.Element==String{
96
+
@inlinablepublicstaticfuncencode<S:Sequence,C:Collection>(rows:S, into fileURL:URL, append:Bool, configuration:Configuration=.init())throwswhere S.Element==C, C.Element==String{
0 commit comments