MCPcopy Create free account
hub / github.com/Audio4Linux/JDSP4Linux / readToList

Method readToList

3rdparty/qtcsv/sources/reader.cpp:480–489  ·  view source on GitHub ↗

Read csv-file and save it's data as strings to QList > @input: - filePath - string with absolute path to csv-file - separator - string or character that separate elements in a row - textDelimiter - string or character that enclose each element in a row - codec - pointer to codec object that would be used for file reading @output: - QList > - list of values (as strings)

Source from the content-addressed store, hash-verified

478// - QList<QList<QString>> - list of values (as strings) from csv-file. In case of
479// error will return empty QList<QList<QString>>.
480QList<QList<QString>> Reader::readToList(
481 const QString& filePath,
482 const QString& separator,
483 const QString& textDelimiter,
484 const QStringConverter::Encoding codec)
485{
486 QFile file;
487 return openFile(filePath, file) ?
488 readToList(file, separator, textDelimiter, codec) : QList<QList<QString>>();
489}
490
491// Read csv-formatted data from IO Device and save it
492// as strings to QList<QList<QString>>

Callers

nothing calls this directly

Calls 1

openFileFunction · 0.70

Tested by

no test coverage detected