MCPcopy Create free account
hub / github.com/csmith-project/csmith / end_with

Method end_with

src/StringUtils.cpp:268–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

266}
267
268bool
269StringUtils::end_with(string s, string tail)
270{
271 if (tail.length() < s.length()) {
272 s = s.substr(s.length() - tail.length());
273 }
274 return s == tail;
275}
276
277//////////////////////////////////////////////////////////////////////////////
278StringUtils::StringUtils()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected