diff options
author | 2016-04-09 21:45:54 +1000 | |
---|---|---|
committer | 2016-04-09 21:52:08 +1000 | |
commit | e925c494fe30adafb615c075f5eb692dd2b2effa (patch) | |
tree | eed0b7ccadb049ed2dc8a72282c0235c4e94b6ae /3rdparty/lzma/CPP/7zip/UI/FileManager/FormatUtils.cpp | |
parent | b13e02f9751424dfc9ce6070676e2e318087a991 (diff) |
Update LZMA SDK to 15.14
Diffstat (limited to '3rdparty/lzma/CPP/7zip/UI/FileManager/FormatUtils.cpp')
-rw-r--r-- | 3rdparty/lzma/CPP/7zip/UI/FileManager/FormatUtils.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/3rdparty/lzma/CPP/7zip/UI/FileManager/FormatUtils.cpp b/3rdparty/lzma/CPP/7zip/UI/FileManager/FormatUtils.cpp new file mode 100644 index 00000000000..2143c3f1b12 --- /dev/null +++ b/3rdparty/lzma/CPP/7zip/UI/FileManager/FormatUtils.cpp @@ -0,0 +1,28 @@ +// FormatUtils.cpp + +#include "StdAfx.h" + +#include "../../../Common/IntToString.h" + +#include "FormatUtils.h" + +#include "LangUtils.h" + +UString NumberToString(UInt64 number) +{ + wchar_t numberString[32]; + ConvertUInt64ToString(number, numberString); + return numberString; +} + +UString MyFormatNew(const UString &format, const UString &argument) +{ + UString result = format; + result.Replace(L"{0}", argument); + return result; +} + +UString MyFormatNew(UINT resourceID, const UString &argument) +{ + return MyFormatNew(LangString(resourceID), argument); +} |