summaryrefslogtreecommitdiff
path: root/wx+/format_unit.h
diff options
context:
space:
mode:
Diffstat (limited to 'wx+/format_unit.h')
-rw-r--r--wx+/format_unit.h11
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));
}
}
bgstack15