diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:20:07 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:20:07 +0200 |
commit | 88a8b528e20013c0aa3cc6bcd9659b0b5ddd9170 (patch) | |
tree | c6c5babb49b90293380106b81ae5c446959ac70f /wx+/format_unit.h | |
parent | 5.3 (diff) | |
download | FreeFileSync-88a8b528e20013c0aa3cc6bcd9659b0b5ddd9170.tar.gz FreeFileSync-88a8b528e20013c0aa3cc6bcd9659b0b5ddd9170.tar.bz2 FreeFileSync-88a8b528e20013c0aa3cc6bcd9659b0b5ddd9170.zip |
5.4
Diffstat (limited to 'wx+/format_unit.h')
-rw-r--r-- | wx+/format_unit.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/wx+/format_unit.h b/wx+/format_unit.h index 71501db7..361e7d86 100644 --- a/wx+/format_unit.h +++ b/wx+/format_unit.h @@ -18,7 +18,7 @@ std::wstring remainingTimeToShortString(double timeInSec); std::wstring fractionToShortString(double fraction); //within [0, 1] template <class NumberType> -std::wstring toStringSep(NumberType number); //convert number to std::wstring including thousands separator +std::wstring toGuiString(NumberType number); //format integer number including thousands separator std::wstring utcToLocalTimeString(Int64 utcTime); //throw std::runtime_error @@ -42,12 +42,6 @@ std::wstring utcToLocalTimeString(Int64 utcTime); //throw std::runtime_error - - - - - - //--------------- inline impelementation ------------------------------------------- namespace ffs_Impl { @@ -55,8 +49,9 @@ std::wstring includeNumberSeparator(const std::wstring& number); } template <class NumberType> inline -std::wstring toStringSep(NumberType number) +std::wstring toGuiString(NumberType number) { + //assert_static(IsInteger<NumberType>::value); -> doesn't work for UInt64 return ffs_Impl::includeNumberSeparator(zen::numberTo<std::wstring>(number)); } } |