MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / StartsWith

Function StartsWith

Bcore/src/main/cpp/android-base/strings.cpp:90–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88template std::string Join(const std::vector<const char*>&, const std::string&);
89
90bool StartsWith(const std::string& s, const char* prefix) {
91 return strncmp(s.c_str(), prefix, strlen(prefix)) == 0;
92}
93
94bool StartsWith(const std::string& s, const std::string& prefix) {
95 return strncmp(s.c_str(), prefix.c_str(), prefix.size()) == 0;

Callers 1

InitLoggingFunction · 0.70

Calls 2

c_strMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected