MCPcopy Create free account
hub / github.com/PABannier/sam3.cpp / strip_extension

Function strip_extension

examples/benchmark.cpp:99–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99static std::string strip_extension(const std::string & filename) {
100 auto pos = filename.rfind('.');
101 return (pos != std::string::npos) ? filename.substr(0, pos) : filename;
102}
103
104// Sort key: family → size → precision
105static int model_sort_key(const std::string & name) {

Callers 1

discover_modelsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected