comparison data/fileio/CSVFileWriter.cpp @ 1833:21c792334c2e sensible-delimited-data-strings

Rewrite all the DelimitedDataString stuff so as to return vectors of individual cell strings rather than having the classes add the delimiters themselves. Rename accordingly to names based on StringExport. Take advantage of this in the CSV writer code so as to properly quote cells that contain delimiter characters.
author Chris Cannam
date Fri, 03 Apr 2020 17:11:05 +0100
parents fd5a87f3c5b4
children
comparison
equal deleted inserted replaced
1832:7c92c644db20 1833:21c792334c2e
84 } 84 }
85 85
86 QTextStream out(&file); 86 QTextStream out(&file);
87 87
88 if (m_options & DataExportIncludeHeader) { 88 if (m_options & DataExportIncludeHeader) {
89 out << m_model->getDelimitedDataHeaderLine(m_delimiter, m_options) 89 out << StringBits::joinDelimited
90 (m_model->getStringExportHeaders(m_options),
91 m_delimiter)
90 << endl; 92 << endl;
91 } 93 }
92 94
93 sv_frame_t blockSize = 65536; 95 sv_frame_t blockSize = 65536;
94 96