| 174 | } |
| 175 | |
| 176 | bool DlgCopy::hexStringToU32(const std::string_view str, u32& output) |
| 177 | { |
| 178 | // if (str.empty() || str.length() % 2 == 1) |
| 179 | if (str.empty()) |
| 180 | return false; |
| 181 | |
| 182 | if (!isHexString(str)) |
| 183 | return false; |
| 184 | |
| 185 | std::stringstream ss; |
| 186 | ss << str; |
| 187 | |
| 188 | ss >> std::hex; |
| 189 | ss >> output; |
| 190 | |
| 191 | return true; |
| 192 | } |
| 193 | |
| 194 | bool DlgCopy::isUnsignedIntegerString(const std::string_view str) |
| 195 | { |
nothing calls this directly
no outgoing calls
no test coverage detected