MCPcopy Create free account
hub / github.com/KDE/labplot / findMatrixByName

Method findMatrixByName

src/backend/datasources/projects/OriginProjectParser.cpp:158–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156 return 0;
157}
158unsigned int OriginProjectParser::findMatrixByName(const QString& name) {
159 for (unsigned int i = 0; i < m_originFile->matrixCount(); i++) {
160 const auto& originMatrix = m_originFile->matrix(i);
161 if (originMatrix.name == name.toStdString()) {
162 m_matrixNameList << name;
163 m_matrixNameList.removeDuplicates();
164 return i;
165 }
166 }
167 return 0;
168}
169unsigned int OriginProjectParser::findWorkbookByName(const QString& name) {
170 // QDEBUG("WORKBOOK LIST: " << m_workbookNameList << ", name = " << name)
171 for (unsigned int i = 0; i < m_originFile->excelCount(); i++) {

Callers

nothing calls this directly

Calls 2

matrixCountMethod · 0.80
toStdStringMethod · 0.80

Tested by

no test coverage detected