25 #include <boost/type_traits.hpp> 31 #include "NamespaceHelper.h" 33 ONIXS_HANDLER_NAMESPACE_BEGIN
45 boost::is_signed<Integer>,
63 boost::is_unsigned<Integer>,
80 const Char Minus =
'-';
93 boost::is_signed<Integer>
112 boost::is_unsigned<Integer>
132 boost::is_integral<Integer>,
158 boost::is_integral<Integer>,
167 "9876543210123456789";
170 static_cast<const Char*
>(map) +
173 Char* carriage = str;
178 digits + (integer % 10));
192 const Char digit = *str;
212 boost::is_integral<Integer>,
241 boost::is_integral<Integer>
255 numeric_limits<Integer>::
320 precision_ = precision;
337 if (format.
width() > digitsQty)
340 format.
width() - digitsQty,
354 const Char Zero =
'0';
369 boost::is_integral<Integer>
385 numeric_limits<Integer>::
421 ONIXS_HANDLER_NAMESPACE_END
char Char
Character type alias.
boost::enable_if< boost::is_unsigned< Integer > >::type addNegativeSign(std::string &, Integer)
boost::enable_if< boost::is_integral< Integer >, size_t >::type digitsToStr(Char *str, Integer integer)
void addIntegerAlignmentSpace(std::string &str, const FormatSpec &format, size_t digitsQty)
void addIntegerPrecisionZeros(std::string &str, const FormatSpec &format, size_t digitsQty)
boost::enable_if< boost::is_integral< Integer >, size_t >::type measureInteger(Integer integer)
boost::enable_if< boost::is_unsigned< Integer >, bool >::type isNegative(Integer &)
boost::enable_if< boost::is_integral< Integer >, size_t >::type countDigits(Integer integer)
boost::enable_if< boost::is_integral< Integer > >::type integerToStr(std::string &str, const FormatSpec &format, Integer integer)