summaryrefslogtreecommitdiff
path: root/zen/format_unit.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <shieldwed@outlook.com>2018-05-09 00:04:33 +0200
committerDaniel Wilhelm <shieldwed@outlook.com>2018-05-09 00:04:33 +0200
commit017e56b81ba735c39c43701f737ac7dde55da7b4 (patch)
treeea7aaaee13a06a702701e2f74f5d390e10ae303e /zen/format_unit.h
parent9.4 (diff)
downloadFreeFileSync-017e56b81ba735c39c43701f737ac7dde55da7b4.tar.gz
FreeFileSync-017e56b81ba735c39c43701f737ac7dde55da7b4.tar.bz2
FreeFileSync-017e56b81ba735c39c43701f737ac7dde55da7b4.zip
9.5
Diffstat (limited to 'zen/format_unit.h')
-rwxr-xr-xzen/format_unit.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/zen/format_unit.h b/zen/format_unit.h
index 336df74c..3dcc6858 100755
--- a/zen/format_unit.h
+++ b/zen/format_unit.h
@@ -15,16 +15,16 @@
namespace zen
{
-std::wstring filesizeToShortString(int64_t filesize);
-std::wstring remainingTimeToString(double timeInSec);
-std::wstring fractionToString(double fraction); //within [0, 1]
-std::wstring utcToLocalTimeString(int64_t utcTime); //like Windows Explorer would...
+std::wstring formatFilesizeShort(int64_t filesize);
+std::wstring formatRemainingTime(double timeInSec);
+std::wstring formatFraction(double fraction); //within [0, 1]
+std::wstring formatUtcToLocalTime(int64_t utcTime); //like Windows Explorer would...
std::wstring formatTwoDigitPrecision (double value); //format with fixed number of digits
std::wstring formatThreeDigitPrecision(double value); //(unless value is too large)
template <class NumberType>
-std::wstring toGuiString(NumberType number); //format integer number including thousands separator
+std::wstring formatNumber(NumberType number); //format integer number including thousands separator
@@ -43,7 +43,7 @@ std::wstring includeNumberSeparator(const std::wstring& number);
}
template <class NumberType> inline
-std::wstring toGuiString(NumberType number)
+std::wstring formatNumber(NumberType number)
{
static_assert(IsInteger<NumberType>::value, "");
return ffs_Impl::includeNumberSeparator(zen::numberTo<std::wstring>(number));
bgstack15