MCPcopy Create free account
hub / github.com/asmuth/clip / isShellSafe

Method isShellSafe

src/utils/stringutil.cc:281–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279}
280
281bool StringUtil::isShellSafe(const std::string& str) {
282 for (const auto& c : str) {
283 if (!isShellSafe(c)) {
284 return false;
285 }
286 }
287
288 return true;
289}
290
291bool StringUtil::isShellSafe(char chr) {
292 bool is_safe =

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected