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

Method count

src/CppUTest/SimpleString.cpp:355–364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

353}
354
355size_t SimpleString::count(const SimpleString& substr) const
356{
357 size_t num = 0;
358 const char* str = getBuffer();
359 while (*str && (str = StrStr(str, substr.getBuffer()))) {
360 str++;
361 num++;
362 }
363 return num;
364}
365
366void SimpleString::split(const SimpleString& delimiter, SimpleStringCollection& col) const
367{

Callers

nothing calls this directly

Calls 1

getBufferMethod · 0.80

Tested by

no test coverage detected