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

Method readToList

3rdparty/qtcsv-qt5/sources/reader.cpp:545–555  ·  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) from c

Source from the content-addressed store, hash-verified

543// - QList<QStringList> - list of values (as strings) from csv-file. In case of
544// error will return empty QList<QStringList>.
545QList<QStringList> Reader::readToList(
546 const QString& filePath,
547 const QString& separator,
548 const QString& textDelimiter,
549 QTextCodec* codec)
550{
551 QFile file;
552 if (false == openFile(filePath, file)) { return QList<QStringList>(); }
553
554 return readToList(file, separator, textDelimiter, codec);
555}
556
557// Read csv-formatted data from IO Device and save it
558// as strings to QList<QStringList>

Callers

nothing calls this directly

Calls 1

openFileFunction · 0.70

Tested by

no test coverage detected