MCPcopy Create free account
hub / github.com/bytedance/Fastbot_Android / StripPath

Function StripPath

native/thirdpart/flatbuffers/util.cpp:145–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145std::string StripPath(const std::string &filepath) {
146 size_t i = filepath.find_last_of(PathSeparatorSet);
147 return i != std::string::npos ? filepath.substr(i + 1) : filepath;
148}
149
150std::string StripFileName(const std::string &filepath) {
151 size_t i = filepath.find_last_of(PathSeparatorSet);

Callers 4

HashFileFunction · 0.85
CompileMethod · 0.85
BinaryMakeRuleFunction · 0.85
GenerateFBSFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected