]> gitweb.factorcode.org Git - factor.git/blob - extra/csv/csv-docs.factor
Merge branch 'master' of git://factorcode.org/git/factor
[factor.git] / extra / csv / csv-docs.factor
1 USING: help.syntax help.markup kernel prettyprint sequences ;
2 IN: csv
3
4 HELP: csv
5 { $values { "stream" "an input stream" }
6           { "rows" "an array of arrays of fields" } } 
7 { $description "parses a csv stream into an array of row arrays"
8 } ;
9
10 HELP: csv-row
11 { $values { "stream" "an input stream" }
12           { "row" "an array of fields" } } 
13 { $description "parses a row from a csv stream"
14 } ;
15
16 HELP: write-csv
17 { $values { "rows" "an sequence of sequences of strings" }
18           { "stream" "an output stream" } } 
19 { $description "writes csv to the output stream, escaping where necessary"
20 } ;
21
22
23 HELP: with-delimiter
24 { $values { "char" "field delimiter (e.g. CHAR: \t)" }
25           { "quot" "a quotation" } }
26 { $description "Sets the field delimiter for csv or csv-row words "
27 } ;
28