Changed this during testing so I didn't have to recompile everything
each time I changed it. Why make this inline? It's not performance-critical at that level, and it's more code in the headers to slow down compiles.
This commit is contained in:
@@ -308,6 +308,14 @@ void splitrelpath( const CString &Path, CString& Dir, CString& FName, CString& E
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CString GetExtension( CString sPath )
|
||||||
|
{
|
||||||
|
CString Dir, FName, Ext;
|
||||||
|
splitrelpath( sPath, Dir, FName, Ext );
|
||||||
|
Ext.MakeLower();
|
||||||
|
return Ext;
|
||||||
|
}
|
||||||
|
|
||||||
/* mkdir -p. Doesn't fail if Path already exists and is a directory. */
|
/* mkdir -p. Doesn't fail if Path already exists and is a directory. */
|
||||||
bool CreateDirectories( CString Path )
|
bool CreateDirectories( CString Path )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -174,13 +174,7 @@ void splitrelpath(
|
|||||||
CString& Ext
|
CString& Ext
|
||||||
);
|
);
|
||||||
|
|
||||||
inline CString GetExtension( CString sPath )
|
CString GetExtension( CString sPath );
|
||||||
{
|
|
||||||
CString Dir, FName, Ext;
|
|
||||||
splitrelpath( sPath, Dir, FName, Ext );
|
|
||||||
Ext.MakeLower();
|
|
||||||
return Ext;
|
|
||||||
};
|
|
||||||
|
|
||||||
typedef int longchar;
|
typedef int longchar;
|
||||||
extern const wchar_t INVALID_CHAR;
|
extern const wchar_t INVALID_CHAR;
|
||||||
|
|||||||
Reference in New Issue
Block a user