MCPcopy Index your code
hub / github.com/Audio4Linux/JDSP4Linux / getDescription

Method getDescription

src/data/EelParser.cpp:202–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200}
201
202QString EELParser::getDescription()
203{
204 QRegularExpression descRe(R"((?:^|(?<=\n))(?:desc:)([\s\S][^\n]*))");
205
206 for (const auto &line : container.code.split("\n"))
207 {
208 auto matchIterator = descRe.globalMatch(line);
209
210 if (matchIterator.hasNext())
211 {
212 auto match = matchIterator.next();
213 return match.captured(1).trimmed();
214 }
215 }
216
217 return QFileInfo(container.path).fileName();
218}
219
220EELProperties EELParser::getProperties()
221{

Callers 1

loadPropertiesMethod · 0.45

Calls 2

splitMethod · 0.45
hasNextMethod · 0.45

Tested by

no test coverage detected