MCPcopy Create free account
hub / github.com/SpartanJ/eepp / endsWith

Method endsWith

src/eepp/core/string.cpp:1370–1373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1368}
1369
1370bool String::endsWith( const std::string& haystack, const std::string& needle ) {
1371 return needle.length() <= haystack.length() &&
1372 haystack.compare( haystack.size() - needle.size(), needle.size(), needle ) == 0;
1373}
1374
1375bool String::endsWith( const String& haystack, const String& needle ) {
1376 return needle.length() <= haystack.length() &&

Callers

nothing calls this directly

Calls 3

lengthMethod · 0.45
compareMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected