MCPcopy Create free account
hub / github.com/aethersdr/AetherSDR / parseProfileLoadCommand

Function parseProfileLoadCommand

src/models/ProfileLoadCommand.h:30–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30inline ProfileLoadCommand parseProfileLoadCommand(const QString& command)
31{
32 static const QRegularExpression re(
33 QStringLiteral("^\\s*profile\\s+(global|tx|mic)\\s+load\\s+\"([^\"]*)\"\\s*$"),
34 QRegularExpression::CaseInsensitiveOption);
35 const QRegularExpressionMatch match = re.match(command);
36 if (!match.hasMatch()) {
37 return {};
38 }
39
40 return {
41 true,
42 match.captured(1).toLower(),
43 match.captured(2),
44 };
45}
46
47} // namespace AetherSDR

Callers 3

sendCmdMethod · 0.85
checkProfileLoadFunction · 0.85
mainFunction · 0.85

Calls 1

capturedMethod · 0.80

Tested by 2

checkProfileLoadFunction · 0.68
mainFunction · 0.68