This tiny module has just three primary functions:
csv_parseparses a CSV string into an array of any given type.csv_escapeescapes a value (if needed) so that it can be safely written in to a CSV column.append_csv_escapedis similar tocsv_escapebut directly appends the (potentially escaped) value to aString_Builder.
Currently, csv_parse can only parse into string, float, and integer members.
See module.jai for details.
You’re responsible for freeing everything (including strings) in the result array returned by csv_parse.
Using a Pool allocator around your csv_parse calls might be a good idea.