diff options
author | Daniel Wilhelm <shieldwed@outlook.com> | 2018-05-09 00:04:33 +0200 |
---|---|---|
committer | Daniel Wilhelm <shieldwed@outlook.com> | 2018-05-09 00:04:33 +0200 |
commit | 017e56b81ba735c39c43701f737ac7dde55da7b4 (patch) | |
tree | ea7aaaee13a06a702701e2f74f5d390e10ae303e /zen/format_unit.cpp | |
parent | 9.4 (diff) | |
download | FreeFileSync-017e56b81ba735c39c43701f737ac7dde55da7b4.tar.gz FreeFileSync-017e56b81ba735c39c43701f737ac7dde55da7b4.tar.bz2 FreeFileSync-017e56b81ba735c39c43701f737ac7dde55da7b4.zip |
9.5
Diffstat (limited to 'zen/format_unit.cpp')
-rwxr-xr-x | zen/format_unit.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/zen/format_unit.cpp b/zen/format_unit.cpp index c0667fb1..e62c9286 100755 --- a/zen/format_unit.cpp +++ b/zen/format_unit.cpp @@ -39,7 +39,7 @@ std::wstring zen::formatThreeDigitPrecision(double value) } -std::wstring zen::filesizeToShortString(int64_t size) +std::wstring zen::formatFilesizeShort(int64_t size) { //if (size < 0) return _("Error"); -> really? @@ -122,7 +122,7 @@ std::wstring roundToBlock(double timeInHigh, } -std::wstring zen::remainingTimeToString(double timeInSec) +std::wstring zen::formatRemainingTime(double timeInSec) { const int steps10[] = { 1, 2, 5, 10 }; const int steps24[] = { 1, 2, 3, 4, 6, 8, 12, 24 }; @@ -154,7 +154,7 @@ std::wstring zen::remainingTimeToString(double timeInSec) //} -std::wstring zen::fractionToString(double fraction) +std::wstring zen::formatFraction(double fraction) { return printNumber<std::wstring>(L"%.2f", fraction * 100.0) + L'%'; //no need to internationalize fraction!? } @@ -188,7 +188,7 @@ std::wstring zen::ffs_Impl::includeNumberSeparator(const std::wstring& number) } -std::wstring zen::utcToLocalTimeString(int64_t utcTime) +std::wstring zen::formatUtcToLocalTime(int64_t utcTime) { auto errorMsg = [&] { return _("Error") + L" (time_t: " + numberTo<std::wstring>(utcTime) + L")"; }; |