| 128 | } |
| 129 | |
| 130 | quint32 parseClientHandle(QString text) |
| 131 | { |
| 132 | text = text.trimmed(); |
| 133 | if (text.startsWith(QStringLiteral("0x"), Qt::CaseInsensitive)) |
| 134 | text = text.mid(2); |
| 135 | |
| 136 | bool ok = false; |
| 137 | const quint32 handle = text.toUInt(&ok, 16); |
| 138 | return ok ? handle : 0; |
| 139 | } |
| 140 | |
| 141 | // parseStreamToken — identical to parseStatusHandle; use the shared version. |
| 142 | inline quint32 parseStreamToken(QString text) { return parseStatusHandle(std::move(text)); } |
no outgoing calls
no test coverage detected