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

Function dStrEqual

Engine/source/core/strings/stringFunctions.cpp:544–550  ·  view source on GitHub ↗

Safe form of dStrcmp: checks both strings for NULL before comparing

Source from the content-addressed store, hash-verified

542
543/// Safe form of dStrcmp: checks both strings for NULL before comparing
544bool dStrEqual(const char* str1, const char* str2)
545{
546 if (!str1 || !str2)
547 return false;
548 else
549 return (String::compare(str1, str2) == 0);
550}
551
552/// Check if one string starts with another
553bool dStrStartsWith(const char* str1, const char* str2)

Callers 15

processAnimationMethod · 0.85
processNodeFunction · 0.85
findInputSourceFunction · 0.85
initSourceReaderMethod · 0.85
classifyInputsMethod · 0.85
getNameMethod · 0.85
animatesMatFrameMethod · 0.85
animatesFrameMethod · 0.85
addMaterialMethod · 0.85
getMorphVertexDataMethod · 0.85
findExtraTechniqueMethod · 0.85

Calls 1

compareFunction · 0.85

Tested by

no test coverage detected