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 the BoolCodingStrategy and .blank for the NilCodingStrategy. This means Bool will be represented the value’s textual name and nil 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.