MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / candidate_stem_or_filename

Function candidate_stem_or_filename

src/framework/runtime/model.cpp:16–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14 return std::filesystem::path(relative_candidate).generic_string();
15}
16
17std::string candidate_stem_or_filename(const std::string & relative_candidate) {
18 const auto path = std::filesystem::path(relative_candidate);
19 if (!path.stem().empty()) {
20 return path.stem().string();
21 }
22 return path.filename().string();
23}
24
25}

Callers 1

discover_named_assetsFunction · 0.85

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected