MCPcopy Create free account
hub / github.com/USBGuard/usbguard / stringToNumber

Function stringToNumber

src/Common/Utility.cpp:297–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295
296 template<>
297 uint8_t stringToNumber(const std::string& s, const int base)
298 {
299 const unsigned int num = stringToNumber<unsigned int>(s, base);
300 return (uint8_t)num;
301 }
302
303 bool isNumericString(const std::string& s)
304 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected