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

Function isNumericString

src/Common/Utility.cpp:303–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301 }
302
303 bool isNumericString(const std::string& s)
304 {
305 for (int c : s) {
306 if (!isdigit(c)) {
307 return false;
308 }
309 }
310
311 return true;
312 }
313
314 int loadFiles(const std::string& directory,
315 std::function<std::string(const std::string&, const struct dirent*)> filter,

Callers 2

addIPCAllowedUserMethod · 0.85
addIPCAllowedGroupMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected