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

Function isValidUID

src/Common/Utility.cpp:546–559  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

544 }
545
546 static bool isValidUID(const std::string& uid)
547 {
548 if (uid.empty()) {
549 return false;
550 }
551
552 for (char c : uid) {
553 if (!std::isdigit(c)) {
554 return false;
555 }
556 }
557
558 return true;
559 }
560
561 static bool isValidName(const std::string& name)
562 {

Callers 1

isValidNameOrUIDFunction · 0.85

Calls 1

emptyMethod · 0.80

Tested by

no test coverage detected