MCPcopy Create free account
hub / github.com/VCVRack/Rack / endsWith

Function endsWith

src/string.cpp:151–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149
150
151bool endsWith(const std::string& str, const std::string& suffix) {
152 if (str.size() < suffix.size())
153 return false;
154 return std::equal(suffix.begin(), suffix.end(), str.end() - suffix.size());
155}
156
157
158Location positionToLocation(const std::string& s, size_t pos) {

Callers 1

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected