This is the csv-parser Reference Manual, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Sep 15 04:55:09 2024 GMT+0.
The main system appears first, followed by any subsystem dependency.
csv-parser
CSV parsing/writing utilities, a la Microsoft Excel
Alain Picard <alain.picard@memetrics.com>
LLGPL
csv-parser.lisp
(file).
Files are sorted by type and then listed depth-first from the systems components trees.
csv-parser/csv-parser.lisp
csv-parser
(system).
*field-separator*
(special variable).
*quote-character*
(special variable).
do-csv-file
(macro).
map-csv-file
(function).
read-csv-line
(function).
write-csv-line
(function).
*current-field*
(special variable).
*fields*
(special variable).
*num-fields*
(special variable).
*spaces-gobbled*
(special variable).
*state*
(special variable).
add-char
(function).
change-state
(function).
csv-test-blank
(function).
csv-test-blanks
(function).
csv-test-double-quotes
(function).
csv-test-embedded-commas
(function).
csv-test-embedded-lines
(function).
csv-test-empty
(function).
csv-test-empty-1
(function).
csv-test-other-delimiters
(function).
csv-test-quoted
(function).
csv-test-round-trip1
(function).
csv-test-round-trips
(function).
csv-test-simple
(function).
csv-test-space-handling
(function).
csv-tests
(function).
emit-field
(function).
end-of-field-char-p
(function).
end-of-line-char-p
(function).
got-first-quote
(function).
got-second-quote
(function).
make-empty-field
(function).
quote-char-p
(function).
regular-field
(function).
remove-last-n-chars
(function).
skip-white-space
(function).
special-char-p
(function).
white-space-char-p
(function).
write-csv-field
(function).
write-csv-line-on-array
(function).
write-csv-line-on-cons
(function).
write-csv-string-safely
(function).
write-protected-copy
(function).
Packages are listed by definition order.
csv-parser
common-lisp
.
*field-separator*
(special variable).
*quote-character*
(special variable).
do-csv-file
(macro).
map-csv-file
(function).
read-csv-line
(function).
write-csv-line
(function).
*current-field*
(special variable).
*fields*
(special variable).
*num-fields*
(special variable).
*spaces-gobbled*
(special variable).
*state*
(special variable).
add-char
(function).
change-state
(function).
csv-test-blank
(function).
csv-test-blanks
(function).
csv-test-double-quotes
(function).
csv-test-embedded-commas
(function).
csv-test-embedded-lines
(function).
csv-test-empty
(function).
csv-test-empty-1
(function).
csv-test-other-delimiters
(function).
csv-test-quoted
(function).
csv-test-round-trip1
(function).
csv-test-round-trips
(function).
csv-test-simple
(function).
csv-test-space-handling
(function).
csv-tests
(function).
emit-field
(function).
end-of-field-char-p
(function).
end-of-line-char-p
(function).
got-first-quote
(function).
got-second-quote
(function).
make-empty-field
(function).
quote-char-p
(function).
regular-field
(function).
remove-last-n-chars
(function).
skip-white-space
(function).
special-char-p
(function).
white-space-char-p
(function).
write-csv-field
(function).
write-csv-line-on-array
(function).
write-csv-line-on-cons
(function).
write-csv-string-safely
(function).
write-protected-copy
(function).
Definitions are sorted by export status, category, package, and then by lexicographic order.
The character used to indicate the end of a field in a CSV file.
The character used to protect embedded field separators
(usually commas) and whitespace within a field.
To import the *quote-character* itself, you must have it printed twice in the input stream.
Repeatedly call BODY on CSV file FILE, binding
FIELDS and NUM-FIELDS to a list containing the parsed fields,
and the number of fields.
Code runs inside a block with tagname NIL, so you
may call (RETURN).
*FIELD-SEPARATOR* and *QUOTE-CHARACTER* can be bound to modify what separates fields and delimits fields.
Call FN (up to LIMIT times, if specified) with
a list containing the fields parsed from the CSV
file FILE.
SKIP-LINES, if provided, is the number of lines to skip
before starting to call FN.
*FIELD-SEPARATOR* and *QUOTE-CHARACTER* can be bound to modify what separates fields and delimits fields.
Read one line form a stream containing CSV data. Returns two values; a list of strings parsed, and the number of parsed values.
Write one CSV line to STREAM, containing fields.
FIELDS is any (1d) sequence containing strings, symbols or numbers.
Try to write it as esthetically pleasing as possible,
i.e. don’t output the *quote-character* unless necessary
to protect the integrity of the data.
Holds the field we are currently working on.
Holds the fields we have collected/parsed so far.
Keeps track of how many blanks have been skipped. When emitting
a field, we can trim extra right spaces, if appropriate, using this.
Holds a function which knows how to handle chars based on what we’ve seen so far.
Jump to: | A C D E F G M Q R S W |
---|
Jump to: | A C D E F G M Q R S W |
---|
Jump to: | *
S |
---|
Jump to: | *
S |
---|
Jump to: | C F P S |
---|
Jump to: | C F P S |
---|