MCPcopy Create free account
hub / github.com/NeuralNetworkVerification/Marabou / endsWith

Method endsWith

src/common/MString.cpp:212–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210}
211
212bool String::endsWith( const String &suffix )
213{
214 unsigned int l1 = length();
215 unsigned int l2 = suffix.length();
216 return l1 >= l2 && _super.compare( l1 - l2, l2, suffix._super ) == 0;
217}
218
219std::ostream &operator<<( std::ostream &stream, const String &string );
220

Callers 4

loadPropertyFunction · 0.80
createInputQueryFunction · 0.80
runMethod · 0.80
prepareInputQueryMethod · 0.80

Calls 1

lengthMethod · 0.80

Tested by

no test coverage detected