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

Function GetFileExtension

SampleFramework12/v1.00/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 1

LoadTextureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected