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

Function tryGetBasePath

Engine/source/console/scriptFilename.cpp:284–293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

282//-----------------------------------------------------------------------------
283
284static StringTableEntry tryGetBasePath(const char *path, const char *base)
285{
286 U32 len = dStrlen(base);
287 if(dStrnicmp(path, base, len) == 0)
288 {
289 if(*(path + len) == '/') --len;
290 return StringTable->insertn(path, len, true);
291 }
292 return NULL;
293}
294
295struct CollapseTest
296{

Callers 1

collapseScriptFilenameFunction · 0.85

Calls 3

dStrnicmpFunction · 0.85
insertnMethod · 0.80
dStrlenFunction · 0.50

Tested by

no test coverage detected