xref: /third_party/lzma/CPP/7zip/UI/FileManager/FormatUtils.cpp (revision 370b324c)
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/lzma/CPP/7zip/UI/FileManager/
1// FormatUtils.cpp
2
3#include "StdAfx.h"
4
5#include "../../../Common/IntToString.h"
6
7#include "FormatUtils.h"
8
9#include "LangUtils.h"
10
11UString NumberToString(UInt64 number)
12{
13  wchar_t numberString[32];
14  ConvertUInt64ToString(number, numberString);
15  return numberString;
16}
17
18UString MyFormatNew(const UString &format, const UString &argument)
19{
20  UString result = format;
21  result.Replace(L"{0}", argument);
22  return result;
23}
24
25UString MyFormatNew(UINT resourceID, const UString &argument)
26{
27  return MyFormatNew(LangString(resourceID), argument);
28}
29

Indexes created Thu Nov 07 10:32:03 CST 2024