MCPcopy Create free account
hub / github.com/TheRealMJP/BakingLab / GetFileExtension

Function GetFileExtension

SampleFramework11/v1.02/FileIO.cpp:94–104  ·  view source on GitHub ↗

Returns the extension of the file path

Source from the content-addressed store, hash-verified

92
93// Returns the extension of the file path
94std::wstring GetFileExtension(const wchar* filePath_)
95{
96 Assert_(filePath_);
97
98 std::wstring filePath(filePath_);
99 size_t idx = filePath.rfind(L'.');
100 if (idx != std::wstring::npos)
101 return filePath.substr(idx + 1, filePath.length() - idx - 1);
102 else
103 return std::wstring(L"");
104}
105
106// Gets the last written timestamp of the file
107uint64 GetFileTimestamp(const wchar* filePath)

Callers 3

InitializeMethod · 0.85
LoadTextureFunction · 0.85
CreateFromSDKMeshFileMethod · 0.85

Calls 1

lengthMethod · 0.80

Tested by

no test coverage detected