MCPcopy Create free account
hub / github.com/Illation/ETEngine / ExtractExtension

Method ExtractExtension

Engine/source/EtCore/FileSystem/FileUtil.cpp:200–210  ·  view source on GitHub ↗

--------------------------------- FileUtil::ExtractName Extract the extension from a filename

Source from the content-addressed store, hash-verified

198// Extract the extension from a filename
199//
200std::string FileUtil::ExtractExtension(std::string const& fileName)
201{
202 std::size_t found = fileName.rfind(".");
203
204 if (found != std::string::npos)
205 {
206 return fileName.substr(found + 1);
207 }
208
209 return std::string("");
210}
211
212//---------------------------------
213// FileUtil::RemoveExtension

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected