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

Function dStrEndsWith

Engine/source/core/strings/stringFunctions.cpp:559–563  ·  view source on GitHub ↗

Check if one string ends with another

Source from the content-addressed store, hash-verified

557
558/// Check if one string ends with another
559bool dStrEndsWith(const char* str1, const char* str2)
560{
561 const char *p = str1 + dStrlen(str1) - dStrlen(str2);
562 return ((p >= str1) && !dStricmp(p, str2));
563}
564
565/// Strip the path from the input filename
566char* dStripPath(const char* filename)

Callers 9

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

Calls 2

dStricmpFunction · 0.85
dStrlenFunction · 0.70

Tested by

no test coverage detected