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

Method mapFrom

Engine/source/platformWin32/winVolume.cpp:323–333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321}
322
323Path Win32FileSystem::mapFrom(const Path& path)
324{
325 const String::SizeType volumePathLen = mVolume.length();
326
327 String pathStr = path.getFullPath();
328
329 if ( mVolume.compare( pathStr, volumePathLen, String::NoCase ))
330 return Path();
331
332 return pathStr.substr( volumePathLen, pathStr.length() - volumePathLen );
333}
334
335//-----------------------------------------------------------------------------
336

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