| 246 | |
| 247 | |
| 248 | bool StringUtil::isHexString(const std::string& str) { |
| 249 | for (const auto& c : str) { |
| 250 | if ((c >= '0' && c <= '9') || |
| 251 | (c >= 'a' && c <= 'f') || |
| 252 | (c >= 'A' && c <= 'F')) { |
| 253 | continue; |
| 254 | } |
| 255 | |
| 256 | return false; |
| 257 | } |
| 258 | |
| 259 | return true; |
| 260 | } |
| 261 | |
| 262 | bool StringUtil::isAlphanumeric(const std::string& str) { |
| 263 | for (const auto& c : str) { |
nothing calls this directly
no outgoing calls
no test coverage detected