p7zip-rar/CPP/7zip/UI/FileManager/PropertyName.cpp

24 lines
413 B
C++
Raw Permalink Normal View History

2017-10-11 12:40:22 +02:00
// 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;
}