MCPcopy Create free account
hub / github.com/GPUOpen-Tools/compressonator / GetDirectory

Function GetDirectory

applications/_plugins/common/utilfuncs.cpp:203–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201
202#ifdef __AFX_H__
203CString GetDirectory(const CString& strPath)
204{
205 int nIndex = strPath.ReverseFind('\\');
206
207 if (nIndex <= 0) // No extension
208 return CString(_T(""));
209 else
210 {
211 CString strDirectory(strPath.Left(nIndex + 1));
212 return strDirectory;
213 }
214}
215
216CString GetFilename(const CString& strPath)
217{

Callers 1

IsFullPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected