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

Method mapFrom

Engine/source/platformPOSIX/posixVolume.cpp:240–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238
239
240Path PosixFileSystem::mapFrom(const Path& path)
241{
242 const String::SizeType volumePathLen = _volume.length();
243
244 String pathStr = path.getFullPath();
245
246 if ( _volume.compare( pathStr, volumePathLen, String::NoCase ))
247 return Path();
248
249 return pathStr.substr( volumePathLen, pathStr.length() - volumePathLen );
250}
251
252//-----------------------------------------------------------------------------
253

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