Compliant simple CSV writter.
This library is designed to deal with proper CSV (no quotes allowed in the middle of the fields...). It is fast and flexible: by splitting most writing functions in two parts one that gives the length of the string to write and another that writes the result in a subpart of another string we avoid unnecessary string creations.
Prints a valid csv file to a given channel (note that line are ended "\r\n")
Convert one CSV line to a string.
Escape the a CSV field if need be.
Escape a CSV (even if doesn't have any characters that require escaping).
Get the escaped length of one quoted field (without the quotes). Returns None if the field doesn't need to be escaped.
Copy and escapes the content of a field over from one string to another. This does not put the quotes in.