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

Method startsWith

src/CppUTest/SimpleString.cpp:336–341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

334}
335
336bool SimpleString::startsWith(const SimpleString& other) const
337{
338 if (other.size() == 0) return true;
339 else if (size() == 0) return false;
340 else return StrStr(getBuffer(), other.getBuffer()) == getBuffer();
341}
342
343bool SimpleString::endsWith(const SimpleString& other) const
344{

Callers 3

parseMethod · 0.80
createUserTextMethod · 0.80
TESTFunction · 0.80

Calls 2

getBufferMethod · 0.80
sizeMethod · 0.45

Tested by 2

createUserTextMethod · 0.64
TESTFunction · 0.64