factor/basis/csv/csv-docs.factor

29 lines
786 B
Factor
Raw Normal View History

2008-04-17 16:29:04 -04:00
USING: help.syntax help.markup kernel prettyprint sequences ;
IN: csv
HELP: csv
2008-07-25 17:02:07 -04:00
{ $values { "stream" "an input stream" }
2008-04-17 16:29:04 -04:00
{ "rows" "an array of arrays of fields" } }
{ $description "parses a csv stream into an array of row arrays"
} ;
HELP: csv-row
2008-07-25 17:02:07 -04:00
{ $values { "stream" "an input stream" }
2008-04-17 16:29:04 -04:00
{ "row" "an array of fields" } }
{ $description "parses a row from a csv stream"
} ;
2008-07-25 17:02:07 -04:00
HELP: write-csv
{ $values { "rows" "an sequence of sequences of strings" }
{ "stream" "an output stream" } }
{ $description "writes csv to the output stream, escaping where necessary"
} ;
HELP: with-delimiter
{ $values { "char" "field delimiter (e.g. CHAR: \t)" }
{ "quot" "a quotation" } }
{ $description "Sets the field delimiter for csv or csv-row words "
} ;
2008-07-25 17:02:07 -04:00