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

Method subString

src/CppUTest/SimpleString.cpp:509–519  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

507}
508
509SimpleString SimpleString::subString(size_t beginPos, size_t amount) const
510{
511 if (beginPos > size()-1) return "";
512
513 SimpleString newString = getBuffer() + beginPos;
514
515 if (newString.size() > amount)
516 newString.buffer_[amount] = '\0';
517
518 return newString;
519}
520
521SimpleString SimpleString::subString(size_t beginPos) const
522{

Callers 9

splitMethod · 0.80
HexStringFromFunction · 0.80
StringFromBinaryFunction · 0.80
addGroupDotNameFilterMethod · 0.80
listTestGroupNamesMethod · 0.80
TESTFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by 4

listTestGroupNamesMethod · 0.64
TESTFunction · 0.64