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

Method lastIndexOf

source/util/bstring.cpp:387–395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

385}
386
387int BString::lastIndexOf(const BString& s, int fromIndex) const {
388 if (isEmpty()) {
389 return -1;
390 }
391 if (s.length() == 1) {
392 return lastIndexOf(s.data->str[0]);
393 }
394 return lastIndexOf(s.data->str);
395}
396
397int BString::lastIndexOf(const char* s, int fromIndex) const {
398 if (isEmpty()) {

Callers 15

executeFunction · 0.80
readFileFunction · 0.80
getParameterFunction · 0.80
branchFunction · 0.80
parentDirFunction · 0.80
startsWithFunction · 0.80
addEnumsFromSourceMethod · 0.80
injectEnumsToSourceMethod · 0.80
getParentPathMethod · 0.80
getNativeParentPathMethod · 0.80
getFileNameFromPathMethod · 0.80

Calls 2

lengthFunction · 0.85
lengthMethod · 0.45

Tested by

no test coverage detected