#include <string_base.h>
Definition at line 576 of file string_base.h.
pfc::format_uint::format_uint |
( |
t_uint64 |
p_val, |
|
|
unsigned |
p_width = 0 , |
|
|
unsigned |
p_base = 10 |
|
) |
| |
Definition at line 569 of file string_base.cpp.
572 enum {max_width = PFC_TABSIZE(
m_buffer) - 1};
574 if (p_width > max_width) p_width = max_width;
575 else if (p_width == 0) p_width = 1;
577 char temp[max_width];
580 for(n=0;n<max_width;n++)
586 for(n=0;n<max_width && temp[n] ==
'0';n++) {}
588 if (n > max_width - p_width) n = max_width - p_width;
592 for(;n<max_width;n++)
char format_hex_char(unsigned p_val)
pfc::format_uint::format_uint |
( |
const format_uint & |
p_source | ) |
|
|
inline |
const char* pfc::format_uint::get_ptr |
( |
| ) |
const |
|
inline |
pfc::format_uint::operator const char * |
( |
| ) |
const |
|
inline |
const char* pfc::format_uint::toString |
( |
| ) |
const |
|
inline |
char pfc::format_uint::m_buffer[64] |
|
private |
The documentation for this class was generated from the following files: