Utils: Formating helpers (senf::format::eng, senf::format::dumpint)
[senf.git] / senf / Utils / Format.cti
similarity index 69%
rename from senf/Packets/DumpFormat.ct
rename to senf/Utils/Format.cti
index 93650c5..41b8ab4 100644 (file)
 // 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
 /** \file
-    \brief DumpFormat non-inline template implementation  */
+    \brief Format inline template implementation */
 
-#include "DumpFormat.ih"
+#include "Format.ih"
 
 // Custom includes
-#include <sstream>
 
-#define prefix_
-///////////////////////////////ct.p////////////////////////////////////////
+#define prefix_ inline
+///////////////////////////////cti.p///////////////////////////////////////
 
 template <class T>
 prefix_ std::string 
-senf::prettyNumber(T const & v, typename boost::enable_if<boost::is_signed<T> >::type *)
+senf::format::dumpint(T const & v, typename boost::enable_if<boost::is_signed<T> >::type *)
 { 
-   return detail::prettySignedNumber(v, std::numeric_limits<T>::digits);
+   return detail::dumpintSigned(v, std::numeric_limits<T>::digits);
 }
 
 template <class T>
 prefix_ std::string
-senf::prettyNumber(T const & v, typename boost::enable_if<boost::is_unsigned<T> >::type *)
+senf::format::dumpint(T const & v, typename boost::enable_if<boost::is_unsigned<T> >::type *)
 {
-   return detail::prettyUnsignedNumber(v, std::numeric_limits<T>::digits); 
+   return detail::dumpintUnsigned(v, std::numeric_limits<T>::digits); 
 }
 
-///////////////////////////////ct.e////////////////////////////////////////
+///////////////////////////////cti.e///////////////////////////////////////
 #undef prefix_
 
 \f