(calculate-dialect-options dialect)
Calculates the options used to configure reading for the source CSV data from the given dialect definition
Calculates the options used to configure reading for the source CSV data from the given dialect definition
(calculate-header-row-count {:keys [header headerRowCount] :as dialect})
Calculate the number of expected header rows in the input CSV file
Calculate the number of expected header rows in the input CSV file
(calculate-quote-escape-chars {:keys [quoteChar doubleQuote] :as dialect})
Calculates the quote and escape characters to use when reading the source CSV file. These are set by the quoteChar and doubleQuote dialect settings. The default quote and escape characters are both ". The specification is unclear on the expected behaviour if quote-char is null and double-quote is specified - this function will raise an exception.
Calculates the quote and escape characters to use when reading the source CSV file. These are set by the quoteChar and doubleQuote dialect settings. The default quote and escape characters are both ". The specification is unclear on the expected behaviour if quote-char is null and double-quote is specified - this function will raise an exception.
(calculate-trim-mode {:keys [trim skipInitialSpace] :as dialect})
Calculates how whitespace should be trimmed around cell values based on the 'trim' and 'skipInitialSpace' configuration values. The specification states skipInitialSpace should only be used if trim is not set, but specifies a default value of true for trim. A default value of false is also specified for skipInitialSpace. We use nil for the default values of both trim and skip-initial-space and only apply the defaults if neither is specified.
Calculates how whitespace should be trimmed around cell values based on the 'trim' and 'skipInitialSpace' configuration values. The specification states skipInitialSpace should only be used if trim is not set, but specifies a default value of true for trim. A default value of false is also specified for skipInitialSpace. We use nil for the default values of both trim and skip-initial-space and only apply the defaults if neither is specified.
(dialect->options dialect)
Creates a CSV parsing options map from a dialect definition.
Creates a CSV parsing options map from a dialect definition.
(expand-dialect dialect)
Expands a possibly partial dialect definition into a complete definition where all configuration values are explicitly specified.
Expands a possibly partial dialect definition into a complete definition where all configuration values are explicitly specified.
(get-default-dialect tabular-file-http-headers)
Get the default dialect updated according to the HTTP response headers returned along with the tabular file response.
Get the default dialect updated according to the HTTP response headers returned along with the tabular file response.
(get-default-options)
(get-default-options tabular-file-http-headers)
(resolve-dialect dialect tabular-file-headers)
Calculates the dialect for a tabular file - uses dialect if it is non-nil, otherwise calculates the default dialect based on the headers associated with accessing the tabular data source.
Calculates the dialect for a tabular file - uses dialect if it is non-nil, otherwise calculates the default dialect based on the headers associated with accessing the tabular data source.
(resolve-options dialect tabular-file-headers)
Calculates the options for a tabular file based on the provided dialect and any headers associated with the tabular data source.
Calculates the options for a tabular file based on the provided dialect and any headers associated with the tabular data source.
(validate-encoding context s)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close