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

Function StripExtension

native/thirdpart/flatbuffers/util.cpp:135–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133static const char *PathSeparatorSet = "\\/"; // Intentionally no ':'
134
135std::string StripExtension(const std::string &filepath) {
136 size_t i = filepath.find_last_of('.');
137 return i != std::string::npos ? filepath.substr(0, i) : filepath;
138}
139
140std::string GetExtension(const std::string &filepath) {
141 size_t i = filepath.find_last_of('.');

Callers 3

CompileMethod · 0.85
BinaryMakeRuleFunction · 0.85
GenerateFBSFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected