| 57 | |
| 58 | |
| 59 | static 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 | |
| 74 | static bool rm_r(const QString &rmPath) |
| 75 | { |
no test coverage detected