MCPcopy Create free account
hub / github.com/MiniZinc/MiniZincIDE / foreach

Function foreach

MiniZincIDE/mainwindow.cpp:1826–1834  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1824 QVector<QStringList> locs;
1825 QStringList blocks = path.split(major_sep);
1826 foreach(QString block, blocks) {
1827 QStringList elements = block.split(minor_sep);
1828 if(elements.size() >= 5) {
1829 bool ok = false;
1830 if(elements.size() > 5) elements[5].toInt(&ok);
1831 elements.erase(elements.begin()+(ok ? 6 : 5), elements.end());
1832 locs.append(elements);
1833 }
1834 }
1835 return locs;
1836}
1837

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected