| 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 | { |
no test coverage detected