MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / substr

Method substr

source/util/bstring.cpp:565–567  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

563}
564
565BString BString::substr(int beginIndex) const {
566 return substr(beginIndex, length() - beginIndex);
567}
568
569BString BString::substr(int beginIndex, int len) const {
570 // :TODO in the future maybe don't make a copy, just a ref and use offsets into the data

Callers 15

splitMethod · 0.95
common.jsFile · 0.80
commentMethod · 0.80
runMethod · 0.80
capitalizeMethod · 0.80
camelCaseMethod · 0.80
formatEmitMethod · 0.80
newInstFromGroupMethod · 0.80
indexMainOpcodeMethod · 0.80
runMethod · 0.80
upFirstMethod · 0.80

Calls 6

lengthFunction · 0.85
allocNewDataFunction · 0.85
getNewStringFunction · 0.85
memcpyFunction · 0.85
BStringClass · 0.85
powerOf2Function · 0.70

Tested by 1

mainFunction · 0.64