| 198 | } |
| 199 | |
| 200 | bool DlgCopy::uintStringToU32(const std::string_view str, u32& output) |
| 201 | { |
| 202 | if (!isUnsignedIntegerString(str) || str.empty() || str.length() > 10) |
| 203 | return false; |
| 204 | |
| 205 | const auto u{static_cast<u64>(std::stoll(std::string{str}))}; |
| 206 | |
| 207 | if (u > ULONG_MAX) |
| 208 | return false; |
| 209 | |
| 210 | output = static_cast<u32>(u); |
| 211 | return true; |
| 212 | } |
| 213 | |
| 214 | std::string DlgCopy::charToHexString(const char* const input, const size_t count, |
| 215 | const DlgCopy::ByteStringFormats format) |
nothing calls this directly
no outgoing calls
no test coverage detected