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

github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '7zip/FileManager/FormatUtils.cpp')
-rwxr-xr-x7zip/FileManager/FormatUtils.cpp46
1 files changed, 5 insertions, 41 deletions
diff --git a/7zip/FileManager/FormatUtils.cpp b/7zip/FileManager/FormatUtils.cpp
index e0427df9..553d8bcd 100755
--- a/7zip/FileManager/FormatUtils.cpp
+++ b/7zip/FileManager/FormatUtils.cpp
@@ -3,49 +3,14 @@
#include "StdAfx.h"
#include "FormatUtils.h"
-#include "Windows/ResourceString.h"
#include "Common/IntToString.h"
-#include "Common/StringConvert.h"
+#include "Windows/ResourceString.h"
#ifdef LANG
#include "LangUtils.h"
#endif
-/*
-CSysString MyFormat(const CSysString &format, const CSysString &argument)
-{
- CSysString result;
- _stprintf(result.GetBuffer(format.Length() + argument.Length() + 2),
- format, argument);
- result.ReleaseBuffer();
- return result;
-}
-
-CSysString MyFormat(UINT32 resourceID,
- #ifdef LANG
- UINT32 aLangID,
- #endif
- const CSysString &argument)
-{
- return MyFormat(
- #ifdef LANG
- LangLoadString(resourceID, aLangID),
- #else
- NWindows::MyLoadString(resourceID),
- #endif
-
- argument);
-}
-*/
-
-CSysString NumberToString(UINT64 number)
-{
- TCHAR temp[32];
- ConvertUInt64ToString(number, temp);
- return temp;
-}
-
-UString NumberToStringW(UINT64 number)
+UString NumberToString(UInt64 number)
{
wchar_t numberString[32];
ConvertUInt64ToString(number, numberString);
@@ -59,16 +24,15 @@ UString MyFormatNew(const UString &format, const UString &argument)
return result;
}
-
-UString MyFormatNew(UINT32 resourceID,
+UString MyFormatNew(UINT resourceID,
#ifdef LANG
- UINT32 aLangID,
+ UInt32 langID,
#endif
const UString &argument)
{
return MyFormatNew(
#ifdef LANG
- LangLoadStringW(resourceID, aLangID),
+ LangString(resourceID, langID),
#else
NWindows::MyLoadStringW(resourceID),
#endif