OpenMPTL - Helper Library
C++ Microprocessor Template Library
Namespaces | Functions
poorman_cstring.hpp File Reference
#include <type_traits>

Go to the source code of this file.

Namespaces

 poorman
 

Functions

template<typename Tp >
void poorman::itoa_hex (char *buf, Tp value, int n=sizeof(Tp) *2, char padding='0')
 Prints "value" as hexadecimal number to buf, '0'-padded, zero terminated. More...
 
template<typename Tp >
std::enable_if< std::is_unsigned< Tp >::value >::type poorman::itoa (char *buf, Tp value, int n, char padding='0')
 Prints n digits of "value" to buf, right aligned, "padding"-padded, zero terminated. More...
 
template<typename Tp >
std::enable_if< std::is_signed< Tp >::value >::type poorman::itoa (char *buf, Tp value, int n, char padding='0')