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

Function tryStripBasePath

Engine/source/platform/platformFileIO.cpp:552–561  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

550//-----------------------------------------------------------------------------
551
552static StringTableEntry tryStripBasePath(const char *path, const char *base)
553{
554 U32 len = dStrlen(base);
555 if(dStrnicmp(path, base, len) == 0)
556 {
557 if(*(path + len) == '/') ++len;
558 return StringTable->insert(path + len, true);
559 }
560 return NULL;
561}
562
563StringTableEntry Platform::stripBasePath(const char *path)
564{

Callers 1

stripBasePathMethod · 0.85

Calls 3

dStrnicmpFunction · 0.85
dStrlenFunction · 0.50
insertMethod · 0.45

Tested by

no test coverage detected