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

Method endsWith

source/util/bstring.cpp:326–331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

324}
325
326bool BString::endsWith(const BString& s, bool ignoreCase) const {
327 if (s.isEmpty()) {
328 return false;
329 }
330 return compareTo(s.data->str, ignoreCase, length() - s.length()) == 0;
331}
332
333bool BString::endsWith(const char* s, bool ignoreCase) const {
334 int len = (int)strlen(s);

Callers 15

shiftBaseMethod · 0.80
unpackMethod · 0.80
mainMethod · 0.80
getEmscriptenEnvPropsFunction · 0.80
getDDrawOverridePathFunction · 0.80
getEnvPropFunction · 0.80
getExecutableFunction · 0.80
getAppZipFileFunction · 0.80
getRootZipFileFunction · 0.80
getZipFileListFunction · 0.80
buildAppFileSystemFunction · 0.80
getEntriesAsPromiseFunction · 0.80

Calls 3

lengthFunction · 0.85
isEmptyMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected