Welcome to mirror list, hosted at ThFree Co, Russian Federation.

PropertyName.cpp « FileManager « UI « 7zip « CPP - github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 838b6e3f63c5446f5f368112255db9f51d8a4008 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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;
}