MCPcopy Create free account
hub / github.com/alibaba/MNN / StripPath

Function StripPath

3rd_party/flatbuffers/src/util.cpp:136–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136std::string StripPath(const std::string &filepath) {
137 size_t i = filepath.find_last_of(PathSeparatorSet);
138 return i != std::string::npos ? filepath.substr(i + 1) : filepath;
139}
140
141std::string StripFileName(const std::string &filepath) {
142 size_t i = filepath.find_last_of(PathSeparatorSet);

Callers 13

CompileMethod · 0.85
TextMakeRuleFunction · 0.85
RustMakeRuleFunction · 0.85
CPPMakeRuleFunction · 0.85
BinaryMakeRuleFunction · 0.85
generateReexportsMethod · 0.85
GenPrefixedTypeNameMethod · 0.85
JSTSMakeRuleFunction · 0.85
DartMakeRuleFunction · 0.85

Calls 2

find_last_ofMethod · 0.80
substrMethod · 0.80

Tested by

no test coverage detected