This commit is contained in:
Igor Pavlov
2015-06-15 00:00:00 +00:00
committed by Kornel Lesiński
parent 0713a3ab80
commit 54490d51d5
591 changed files with 34932 additions and 16390 deletions

View File

@@ -55,12 +55,10 @@ static int FindPlugin(const CObjectVector<CPluginInfo> &plugins, const UString &
}
*/
static const FChar kExtensionDelimiter = FTEXT('.');
static void SplitNameToPureNameAndExtension(const FString &fullName,
FString &pureName, FString &extensionDelimiter, FString &extension)
{
int index = fullName.ReverseFind(kExtensionDelimiter);
int index = fullName.ReverseFind_Dot();
if (index < 0)
{
pureName = fullName;
@@ -70,7 +68,7 @@ static void SplitNameToPureNameAndExtension(const FString &fullName,
else
{
pureName.SetFrom(fullName, index);
extensionDelimiter = kExtensionDelimiter;
extensionDelimiter = FTEXT('.');
extension = fullName.Ptr(index + 1);
}
}
@@ -89,7 +87,7 @@ HRESULT OpenFileFolderPlugin(
FString extension, name, pureName, dot;
int slashPos = path.ReverseFind(FCHAR_PATH_SEPARATOR);
int slashPos = path.ReverseFind_PathSepar();
FString dirPrefix;
FString fileName;
if (slashPos >= 0)