Liking cljdoc? Tell your friends :D

csv2rdf.metadata.dialect


calculate-dialect-optionsclj

(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
raw docstring

calculate-header-row-countclj

(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
raw docstring

calculate-quote-escape-charsclj

(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.
raw docstring

calculate-trim-modeclj

(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.
raw docstring

default-dialectclj


dialectclj


dialect->optionsclj

(dialect->options dialect)

Creates a CSV parsing options map from a dialect definition.

Creates a CSV parsing options map from a dialect definition.
raw docstring

encodingclj


expand-dialectclj

(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.
raw docstring

get-default-dialectclj

(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.
raw docstring

get-default-optionsclj

(get-default-options)
(get-default-options tabular-file-http-headers)

line-terminatorsclj


resolve-dialectclj

(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.
raw docstring

resolve-optionsclj

(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.
raw docstring

trim-modeclj


trim-mode-mappingclj


trim-modesclj


validate-encodingclj

(validate-encoding context s)

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close