MCPcopy Create free account
hub / github.com/aldelaro5/dolphin-memory-engine / hexStringToU32

Method hexStringToU32

Source/GUI/MemCopy/DlgCopy.cpp:176–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176bool 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
194bool DlgCopy::isUnsignedIntegerString(const std::string_view str)
195{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected