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

Function startsWith

src/string.cpp:144–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142
143
144bool startsWith(const std::string& str, const std::string& prefix) {
145 if (str.size() < prefix.size())
146 return false;
147 return std::equal(prefix.begin(), prefix.end(), str.begin());
148}
149
150
151bool endsWith(const std::string& str, const std::string& suffix) {

Callers 6

fromJsonFunction · 0.85
json_object_foreachFunction · 0.85
fromJsonMethod · 0.85
appendContextMenuMethod · 0.85
fromJsonMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected