MCPcopy Create free account
hub / github.com/VCVRack/Rack / normalizeSlug

Function normalizeSlug

src/plugin.cpp:504–512  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

502
503
504std::string normalizeSlug(const std::string& slug) {
505 std::string s;
506 for (char c : slug) {
507 if (!(std::isalnum(c) || c == '-' || c == '_'))
508 continue;
509 s += c;
510 }
511 return s;
512}
513
514
515std::string pluginsPath;

Callers 1

modelFromJsonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected