This is the fare-csv Reference Manual, version 1.0.4, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Sep 15 05:08:53 2024 GMT+0.
The main system appears first, followed by any subsystem dependency.
fare-csv
Robust CSV parser and printer
Francois-Rene Rideau
MIT
Robust CSV (Comma-separated values) parser and printer, tries to follow the fine print of de facto standards, can be configured to choose which standard exactly.
1.0.4
package.lisp
(file).
csv.lisp
(file).
Files are sorted by type and then listed depth-first from the systems components trees.
fare-csv/csv.lisp
package.lisp
(file).
fare-csv
(system).
*allow-binary*
(special variable).
*eol*
(special variable).
*line-endings*
(special variable).
*loose-quote*
(special variable).
*quote*
(special variable).
*separator*
(special variable).
*skip-whitespace*
(special variable).
*unquoted-quotequote*
(special variable).
+cr+
(special variable).
+crlf+
(special variable).
+lf+
(special variable).
read-csv-file
(function).
read-csv-line
(function).
read-csv-stream
(function).
with-creativyst-csv-syntax
(macro).
with-rfc4180-csv-syntax
(macro).
with-strict-rfc4180-csv-syntax
(macro).
write-csv-line
(function).
write-csv-lines
(function).
*accept-cr*
(special variable).
*accept-crlf*
(special variable).
*accept-lf*
(special variable).
*csv-variables*
(special variable).
accept
(function).
accept-eof
(function).
accept-eol
(function).
accept-p
(function).
accept-quote
(function).
accept-separator
(function).
accept-space
(function).
accept-spaces
(function).
call-with-creativyst-csv-syntax
(function).
call-with-rfc4180-csv-syntax
(function).
call-with-strict-rfc4180-csv-syntax
(function).
char-ascii-text-p
(function).
char-needs-quoting
(function).
char-space-p
(function).
defsubst
(macro).
string-needs-quoting
(function).
valid-eol-p
(function).
validate-csv-parameters
(function).
write-csv-field
(function).
write-csv-string-safely
(function).
write-quoted-string
(function).
Packages are listed by definition order.
fare-csv
common-lisp
.
*allow-binary*
(special variable).
*eol*
(special variable).
*line-endings*
(special variable).
*loose-quote*
(special variable).
*quote*
(special variable).
*separator*
(special variable).
*skip-whitespace*
(special variable).
*unquoted-quotequote*
(special variable).
+cr+
(special variable).
+crlf+
(special variable).
+lf+
(special variable).
read-csv-file
(function).
read-csv-line
(function).
read-csv-stream
(function).
with-creativyst-csv-syntax
(macro).
with-rfc4180-csv-syntax
(macro).
with-strict-rfc4180-csv-syntax
(macro).
write-csv-line
(function).
write-csv-lines
(function).
*accept-cr*
(special variable).
*accept-crlf*
(special variable).
*accept-lf*
(special variable).
*csv-variables*
(special variable).
accept
(function).
accept-eof
(function).
accept-eol
(function).
accept-p
(function).
accept-quote
(function).
accept-separator
(function).
accept-space
(function).
accept-spaces
(function).
call-with-creativyst-csv-syntax
(function).
call-with-rfc4180-csv-syntax
(function).
call-with-strict-rfc4180-csv-syntax
(function).
char-ascii-text-p
(function).
char-needs-quoting
(function).
char-space-p
(function).
defsubst
(macro).
string-needs-quoting
(function).
valid-eol-p
(function).
validate-csv-parameters
(function).
write-csv-field
(function).
write-csv-string-safely
(function).
write-quoted-string
(function).
Definitions are sorted by export status, category, package, and then by lexicographic order.
acceptable line endings when importing CSV
can quotes appear anywhere in a field?
delimiter of string data; pascal-like quoted as double itself in a string.
shall we skip unquoted whitespace around separators?
does a pair of quotes represent a quote outside of quotes? M$, RFC says NIL, csv.3tcl says T
String containing a CR (Carriage Return)
String containing a CRLF line termination
bind CSV syntax parameters to the CREATIVYST standard around evaluation of BODY
bind CSV syntax parameters to the RFC 4180 standard around evaluation of BODY
bind CSV syntax parameters to the strict RFC 4180 standard around evaluation of BODY, forcing CRLF as line ending and disallowing binary data amongst values
Open the file designated by PATHNAME, using the provided keys if any, and call READ-CSV-STREAM on it.
Read one line from STREAM in CSV format, using the current syntax parameters.
Return a list of strings, one for each field in the line.
Entries are read as strings;
it is up to you to interpret the strings as whatever you want.
Read lines from STREAM in CSV format, using the current syntax parameters.
Return a list of list of strings, one entry for each line,
that contains one entry for each field.
Entries are read as strings;
it is up to you to interpret the strings as whatever you want.
Format one line of FIELDS to STREAM in CSV format, using the current syntax parameters.
Given a list of LINES, each of them a list of fields, and a STREAM, format those lines as CSV according to the current syntax parameters.
Is character C some kind of white space?
NB: this only handles a tiny subset of whitespace characters,
even if restricted to ASCII. However, it’s rather portable,
and is what the creativyst document specifies.
Be careful to not skip a separator, as it could be e.g. a tab!
Jump to: | A C D F M R S V W |
---|
Jump to: | A C D F M R S V W |
---|
Jump to: | *
+
S |
---|
Jump to: | *
+
S |
---|
Jump to: | C F P S |
---|
Jump to: | C F P S |
---|