OnixS C++ SGX Titan OUCH Trading Handler  1.2.0
API documentation
NumberFormatting.h File Reference
#include <limits>
#include <boost/type_traits.hpp>
#include <OnixS/SgxTitan/Trading/OUCH/String.h>
#include <OnixS/SgxTitan/Trading/OUCH/Integral.h>

Go to the source code of this file.

Classes

class  FormatSpec
 

Namespaces

 OnixS
 
 OnixS::SgxTitan
 
 OnixS::SgxTitan::Trading
 
 OnixS::SgxTitan::Trading::Ouch
 

Functions

template<typename Integer >
boost::enable_if< boost::is_signed< Integer >, bool >::type isNegative (Integer &integer)
 
template<typename Integer >
boost::enable_if< boost::is_unsigned< Integer >, bool >::type isNegative (Integer &)
 
void addNegativeSign (std::string &str)
 
template<typename Integer >
boost::enable_if< boost::is_signed< Integer > >::type addNegativeSign (std::string &str, Integer integer)
 
template<typename Integer >
boost::enable_if< boost::is_unsigned< Integer > >::type addNegativeSign (std::string &, Integer)
 
template<typename Integer >
boost::enable_if< boost::is_integral< Integer >, size_t >::type countDigits (Integer integer)
 
template<typename Integer >
boost::enable_if< boost::is_integral< Integer >, size_t >::type digitsToStr (Char *str, Integer integer)
 
template<typename Integer >
boost::enable_if< boost::is_integral< Integer >, size_t >::type measureInteger (Integer integer)
 
template<typename Integer >
boost::enable_if< boost::is_integral< Integer > >::type integerToStr (std::string &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)
 
template<typename Integer >
boost::enable_if< boost::is_integral< Integer > >::type integerToStr (std::string &str, const FormatSpec &format, Integer integer)