MCPcopy Create free account
hub / github.com/QNapi/qnapi / foreach

Function foreach

libqnapi/src/subconvert/formats/mpl2.cpp:18–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16
17bool MPL2SubtitleFormat::detect(const QStringList &lines) const {
18 foreach (QString line, lines) {
19 if (!line.trimmed().isEmpty()) {
20 QRegExp r("^\\[(\\d+)\\]\\[(\\d+)\\](.*)");
21 r.setPatternSyntax(QRegExp::RegExp2);
22 return r.exactMatch(line);
23 }
24 }
25
26 return false;
27}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected