MCPcopy Create free account
hub / github.com/OpenBoard-org/OpenBoard / strIdFrom

Function strIdFrom

src/core/UBForeignObjectsHandler.cpp:59–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57
58
59static QString strIdFrom(const QString &filePath)
60{
61 if ((filePath).isEmpty()) {
62 return QString();
63 }
64
65 static const QRegularExpression rx("\\{.(?!.*\\{).*\\}");
66 QRegularExpressionMatch match = rx.match(filePath);
67 if (!match.hasMatch()) {
68 return QString();
69 }
70
71 return match.captured();
72}
73
74static bool rm_r(const QString &rmPath)
75{

Callers 5

foreachMethod · 0.85
pullActionFromElementMethod · 0.85
mediaToContainerMethod · 0.85

Calls 1

isEmptyMethod · 0.45

Tested by

no test coverage detected