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

Function GetFileNameWithoutExtension

SampleFramework11/v1.02/FileIO.cpp:74–78  ·  view source on GitHub ↗

Returns the name of the file given the path, minus the extension

Source from the content-addressed store, hash-verified

72
73// Returns the name of the file given the path, minus the extension
74std::wstring GetFileNameWithoutExtension(const wchar* filePath)
75{
76 std::wstring fileName = GetFileName(filePath);
77 return GetFilePathWithoutExtension(fileName.c_str());
78}
79
80// Returns the given file path, minus the extension
81std::wstring GetFilePathWithoutExtension(const wchar* filePath_)

Callers

nothing calls this directly

Calls 2

GetFileNameFunction · 0.85

Tested by

no test coverage detected