Skip to content

Conversation

@dzyr
Copy link
Contributor

@dzyr dzyr commented Dec 10, 2018

Escape field if needed, otherwise write non-escaped field.
The field will be escaped if it contains the field-separator-char,
line breaks and double quotes.

Usage:

  1. write_field(SeparatorChar, String, !IO).
  2. Write a list of strings as csv-record:
    io.write_list(List, SeparatorString, write_field(SeparatorChar), !IO)

Escape field if needed, otherwise write non-escaped field.
The field will be escaped if it contains the field-separator-char,
line breaks and double quotes.

Usage:
1. write_field(SeparatorChar, String, !IO).
2. Write a list of strings as csv-record:
   io.write_list(List, SeparatorString, write_field(SeparatorChar), !IO)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant