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

Function GetExtension

native/thirdpart/flatbuffers/util.cpp:140–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138}
139
140std::string GetExtension(const std::string &filepath) {
141 size_t i = filepath.find_last_of('.');
142 return i != std::string::npos ? filepath.substr(i + 1) : "";
143}
144
145std::string StripPath(const std::string &filepath) {
146 size_t i = filepath.find_last_of(PathSeparatorSet);

Callers 1

CompileMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected