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

Function GetFileExtension

Shadows/SampleFramework11/FileIO.cpp:88–98  ·  view source on GitHub ↗

Returns the extension of the file path

Source from the content-addressed store, hash-verified

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

Callers 2

LoadTextureFunction · 0.85
CreateFromSDKMeshFileMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected