MCPcopy Create free account
hub / github.com/beefytech/Beef / StrStartsWith

Method StrStartsWith

BeefySysLib/Common.cpp:137–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135}
136
137bool Beefy::StrStartsWith(const StringImpl& str, const StringImpl& subStr)
138{
139 if (subStr.length() < str.length())
140 return false;
141
142 return strncmp(str.c_str(), subStr.c_str(), subStr.length()) == 0;
143}
144
145bool Beefy::StrEndsWith(const StringImpl& str, const StringImpl& subStr)
146{

Callers

nothing calls this directly

Calls 2

lengthMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected