mirror of
https://github.com/aaru-dps/libaaruformat.git
synced 2025-12-16 19:24:40 +00:00
Add LZMA.
This commit is contained in:
23
3rdparty/lzma-21.03beta/CPP/7zip/UI/FileManager/PropertyName.cpp
vendored
Normal file
23
3rdparty/lzma-21.03beta/CPP/7zip/UI/FileManager/PropertyName.cpp
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
// PropertyName.cpp
|
||||
|
||||
#include "StdAfx.h"
|
||||
|
||||
#include "../../../Common/IntToString.h"
|
||||
|
||||
#include "LangUtils.h"
|
||||
#include "PropertyName.h"
|
||||
|
||||
UString GetNameOfProperty(PROPID propID, const wchar_t *name)
|
||||
{
|
||||
if (propID < 1000)
|
||||
{
|
||||
UString s = LangString(1000 + propID);
|
||||
if (!s.IsEmpty())
|
||||
return s;
|
||||
}
|
||||
if (name)
|
||||
return name;
|
||||
wchar_t temp[16];
|
||||
ConvertUInt32ToString(propID, temp);
|
||||
return temp;
|
||||
}
|
||||
Reference in New Issue
Block a user