MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / beginsWith

Function beginsWith

lib/core/utils.cc:59–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59bool beginsWith(const std::string& value, const std::string& ending)
60{
61 if (ending.size() > value.size())
62 return false;
63 return std::equal(ending.begin(), ending.end(), value.begin());
64}
65
66// Case-insensitive for endings within ASCII.
67bool endsWith(const std::string& value, const std::string& ending)

Callers 1

Calls 3

sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected