2
3
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-14 10:37:41 -04:00

Add wchar version of plFileUtils::StripExt

This commit is contained in:
2012-01-09 00:19:58 -05:00
parent a2c819ac26
commit 51e89d630e
2 changed files with 8 additions and 0 deletions

View File

@ -413,6 +413,13 @@ void plFileUtils::StripExt(char* fileName)
*(ext-1) = '\0';
}
void plFileUtils::StripExt(wchar* fileName)
{
wchar* ext = (wchar*)GetFileExt(fileName);
if (ext)
*(ext-1) = L'\0';
}
const char* plFileUtils::GetFileExt(const char* pathAndName)
{
const char* fileName = GetFileName(pathAndName);

View File

@ -100,6 +100,7 @@ namespace plFileUtils
void StripFile(char* pathAndName);
void StripFile(wchar* pathAndName);
void StripExt(char* fileName);
void StripExt(wchar* fileName);
// Get the size of the given file in bytes
UInt32 GetFileSize( const char *path );