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
sourceraw 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
sourceraw 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.
sourceraw 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.
sourceraw docstring

default-dialectclj

source

dialectclj

source

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.
sourceraw docstring

encodingclj

source

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.
sourceraw 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.
sourceraw docstring

get-default-optionsclj

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

line-terminatorsclj

source

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.
sourceraw 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.
sourceraw docstring

trim-modeclj

source

trim-mode-mappingclj

source

trim-modesclj

source

validate-encodingclj

(validate-encoding context s)
source

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

× close