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:
@ -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);
|
||||
|
@ -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 );
|
||||
|
Reference in New Issue
Block a user