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

Method mapFrom

Engine/source/core/memVolume.cpp:299–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

297 }
298
299 Path MemFileSystem::mapFrom(const Path& path)
300 {
301 const String::SizeType volumePathLen = mVolume.length();
302
303 String pathStr = path.getFullPath();
304
305 if ( mVolume.compare( pathStr, volumePathLen, String::NoCase ))
306 return Path();
307
308 return pathStr.substr( volumePathLen, pathStr.length() - volumePathLen );
309 }
310
311 //-----------------------------------------------------------------------------
312

Callers

nothing calls this directly

Calls 4

substrMethod · 0.80
PathClass · 0.50
lengthMethod · 0.45
compareMethod · 0.45

Tested by

no test coverage detected