MCPcopy Create free account
hub / github.com/PenguLoader/PenguLoader / startw

Method startw

core/src/utils/cefstr.cc:47–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47bool CefStrBase::startw(const char *sub) const
48{
49 if (empty()) return false;
50
51 size_t i = 0;
52 while (sub[i] != '\0') {
53 if (str[i] == '\0')
54 return false;
55 if (str[i] != sub[i])
56 return false;
57 i++;
58 }
59 return true;
60}
61
62bool CefStrBase::endw(const char *sub) const
63{

Calls

no outgoing calls

Tested by

no test coverage detected