MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / dStrEndsWith

Function dStrEndsWith

Engine/source/core/strings/stringFunctions.cpp:497–501  ·  view source on GitHub ↗

Check if one string ends with another

Source from the content-addressed store, hash-verified

495
496/// Check if one string ends with another
497bool dStrEndsWith(const char* str1, const char* str2)
498{
499 const char *p = str1 + dStrlen(str1) - dStrlen(str2);
500 return ((p >= str1) && !dStricmp(p, str2));
501}
502
503/// Strip the path from the input filename
504char* dStripPath(const char* filename)

Callers 7

executeFileFunction · 0.85
processNodeFunction · 0.85
getNameMethod · 0.85
endsWithMethod · 0.85
clearAllFieldsMethod · 0.85
TorqueMainFunction · 0.85

Calls 2

dStricmpFunction · 0.85
dStrlenFunction · 0.70

Tested by

no test coverage detected