MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / startsWith

Function startsWith

src/Core/Utils/StringUtils.cpp:129–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127 }
128
129 bool startsWith(const std::string& string, const std::string& search)
130 {
131 if (string.size() < search.size())
132 return false;
133 return (std::mismatch(search.begin(), search.end(), string.begin()).first
134 == search.end());
135 }
136
137 bool endsWith(const std::string& string, const std::string& search)
138 {

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected