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

Method stripShell

src/utils/stringutil.cc:467–477  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

465
466
467String StringUtil::stripShell(const std::string& str) {
468 String out;
469
470 for (const auto& c : str) {
471 if (isAlphanumeric(c) || c == '_' || c == '-' || c == '.') {
472 out += c;
473 }
474 }
475
476 return out;
477}
478
479} // namespace clip

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected