Move the global public variable to be a member of the class
This commit is contained in:
parent
e268fa3f3a
commit
4c4a5202fa
|
@ -15,11 +15,6 @@ internal let DQUOTE: UnicodeScalar = "\""
|
|||
internal let DQUOTE_STR: String = "\""
|
||||
internal let DQUOTE2_STR: String = "\"\""
|
||||
|
||||
public let defaultHasHeaderRow = false
|
||||
public let defaultTrimFields = false
|
||||
public let defaultDelimiter: UnicodeScalar = ","
|
||||
public let defaultWhitespaces = CharacterSet.whitespaces
|
||||
|
||||
/// No overview available.
|
||||
public class CSVReader {
|
||||
|
||||
|
@ -89,6 +84,11 @@ public class CSVReader {
|
|||
|
||||
extension CSVReader {
|
||||
|
||||
public static let defaultHasHeaderRow: Bool = false
|
||||
public static let defaultTrimFields: Bool = false
|
||||
public static let defaultDelimiter: UnicodeScalar = ","
|
||||
public static let defaultWhitespaces: CharacterSet = .whitespaces
|
||||
|
||||
/// Create an instance with `InputStream`.
|
||||
///
|
||||
/// - parameter stream: An `InputStream` object. If the stream is not open,
|
||||
|
|
|
@ -69,6 +69,8 @@ public class CSVWriter {
|
|||
|
||||
extension CSVWriter {
|
||||
|
||||
public static let defaultDelimiter: UnicodeScalar = ","
|
||||
|
||||
public convenience init(
|
||||
stream: OutputStream,
|
||||
delimiter: String = String(defaultDelimiter),
|
||||
|
|
Loading…
Reference in New Issue