Changeset 34888 in project
- Timestamp:
- 11/11/17 23:11:09 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
wiki/eggref/4/csv-xml
r34224 r34888 30 30 ==== reader-spec 31 31 32 <procedure>(reader-spec [( newline-type 'lax) (separator-chars '(#\,)) (quote-char #\") (quote-doubling-escapes? #t) (comment-chars '()) (whitespace-chars '(#\space)) (strip-leading-whitespace? #f) (strip-trailing-whitespace? #f) (newlines-in-quotes? #t)]) => csv-reader-spec</procedure>32 <procedure>(reader-spec [(NEWLINE-TYPE 'lax) (SEPARATOR-CHARS '(#\,)) (QUOTE-CHAR #\") (COMMENT-CHARS '()) (QUOTE-DOUBLING-ESCAPES? #t) (WHITESPACE-CHARS '(#\space)) (STRIP-LEADING-WHITESPACE? #f) (STRIP-TRAILING-WHITESPACE? #f) (NEWLINES-IN-QUOTES? #t)]) => csv-reader-spec</procedure> 33 33 34 34 ==== csv-reader-spec? … … 89 89 ==== writer-spec 90 90 91 <procedure>(writer-spec [( newline-char #t) (separator-char #\,) (quote-char #\") (comment-char #\#) (quote-doubling-escapes? #t) (quote-controls? #t)]) => csv-writer-spec</procedure>91 <procedure>(writer-spec [(NEWLINE-CHAR #t) (SEPARATOR-CHAR #\,) (QUOTE-CHAR #\") (COMMENT-CHAR #\#) (QUOTE-DOUBLING-ESCAPES? #t) (QUOTE-CONTROLS? #t) (ALWAYS-QUOTE? #t)]) => csv-writer-spec</procedure> 92 92 93 93 {{NEWLINE-CHAR}} is {{#t}}, {{cr}}, {{lf}}, or {{crlf}}. {{#t}} is the platform default. … … 96 96 {{#\#}} is the default. 97 97 98 {{quote-doubling-escapes?}} and {{quote-controls?}} are currently ignored. 98 {{QUOTE-DOUBLING-ESCAPES?}} is a {{boolean}}, default is {{#t}}. 99 100 {{QUOTE-CONTROLS?}} is a {{boolean}}, default is {{#t}}, quoting strings with iso-control characters? 101 102 {{ALWAYS-QUOTE?}} is a {{boolean}}, default is {{#t}}. 99 103 100 104 ==== csv-writer-spec? … … 149 153 == Bugs & Limitations 150 154 151 * The {{quote-doubling-escapes?}} and {{quote-controls?}} are currently ignored. 155 * The {{quote-doubling-escapes?}} and {{quote-controls?}} are currently 156 ignored by {{csv-writer}}. 152 157 153 158 154 159 == Version history 155 160 161 ; 0.12.0 : Use {{quote-doubling-escapes?}} and {{quote-controls?}}. Add {{always-quote?}}. 156 162 ; 0.11.1 : Fix {{writer-spec}} defaults. 157 163 ; 0.11.0 : Add {{reader-spec}}, ''csv-out'' stuff.
Note: See TracChangeset
for help on using the changeset viewer.