MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / basename

Method basename

smallthinker/tools/run/run.cpp:821–828  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

819 }
820
821 std::string basename(const std::string & path) {
822 const size_t pos = path.find_last_of("/\\");
823 if (pos == std::string::npos) {
824 return path;
825 }
826
827 return path.substr(pos + 1);
828 }
829
830 int rm_until_substring(std::string & model_, const std::string & substring) {
831 const std::string::size_type pos = model_.find(substring);

Calls 1

substrMethod · 0.80

Tested by

no test coverage detected