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

Method endw

core/src/utils/cefstr.cc:62–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62bool CefStrBase::endw(const char *sub) const
63{
64 if (empty()) return false;
65
66 size_t sub_len = strlen(sub);
67 if (length < sub_len)
68 return false;
69
70 size_t si = length - sub_len;
71 for (size_t i = 0; i < sub_len; ++i) {
72 if (str[si + i] != sub[i])
73 return false;
74 }
75
76 return true;
77}
78
79void CefStrBase::copy(std::u16string &to) const
80{

Calls

no outgoing calls

Tested by

no test coverage detected