| 16 | |
| 17 | bool 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected