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