CSVCodingOptions
public final class CSVCodingOptions
The options used for encoding/decoding certin types in the CSVEncoder
and CSVDecoder
.
-
The default coding options.
This option set uses
.string
for theBoolCodingStrategy
and.blank
for theNilCodingStrategy
. This meansBool
will be represented the value’s textual name andnil
will be an empty cell.Declaration
Swift
public static let `default` = CSVCodingOptions(boolCodingStrategy: .string, nilCodingStrategy: .blank)
-
The bool encoding/decoding strategy used for the encoder/decoder the option set is passed to.
Declaration
Swift
public var boolCodingStrategy: BoolCodingStrategy
-
The nil encoding/decoding strategy used for the encoder/decoder the option set is passed to.
Declaration
Swift
public var nilCodingStrategy: NilCodingStrategy
-
Creates a new
CSVCodingOptions
instance.Declaration
Swift
public init(boolCodingStrategy: BoolCodingStrategy, nilCodingStrategy: NilCodingStrategy)
Parameters
boolCodingStrategy
The bool encoding/decoding strategy used for the encoder/decoder the option set is passed to.
nilCodingStrategy
The nil encoding/decoding strategy used for the encoder/decoder the option set is passed to.