Attention

This functionality is only available in the C++ toolkits. For other languages, we recommend using language-specific functionality instead.

OEStringCSVJoin

std::string OEStringCSVJoin(const std::vector<std::string> &fields,
                            char delim=',',
                            char quote='"')

Returns a string containing all the values of fields in the comma-separated-value, CSV, format specified by RFC 4180. The fields will only be quoted and escaped if necessary to avoid excess file size. The delimiter and quoting character can be changed to alternative characters, e.g., a tab delimiter for tab separated files.