cxxtls::fmtdalgo Namespace Reference
fmtdalgo defines symbols used by the fmtd interface. It is only needed because you can't specialize a template in a class body -- DOH! STUPID C++
More...
Classes |
struct | algo< bctClassType, char const *, fieldWidth, precision, lJust, padding, pad, base, errchr > |
| A specialization for the algo template that is creates the integer formatting algorithm used by fmtd<> below. More...
|
struct | algo< bctFloatType, T, fieldWidth, precision, lJust, padding, pad, base, errchr > |
| A specialization for the algo template that is creates the integer formatting algorithm used by fmtd<> below. More...
|
struct | algo< bctIntegralType, T, fieldWidth, precision, lJust, padding, pad, base, errchr > |
| A class which defines a member type, type, which actually implements the formatting algorithm for fmtd<> below. More...
|
struct | FloatFormatter |
| This functor formats floats, doubles, and long doubles in the way that should be done for class fmtd<> More...
|
struct | IntFormatter |
| This functor formats ints, shorts, char, unsigned, long, long long, etc. in the way that should be done for class fmtd<> More...
|
struct | StringFormatter |
| This functor formats strings in the way that should be done for class fmtd<> More...
|
Functions |
void | int2ascii (char *&scan, int d) |
| Converts the specified integer into an ascii string stored at the specified location.
|
void | setup (char *&scan, int fieldWidth, int precision, bool lJust, bool padding, char pad) |
| Setup most of the parameters to the control string used in invoking sprintf. Does not append a nul.
|
Detailed Description
fmtdalgo defines symbols used by the fmtd interface. It is only needed because you can't specialize a template in a class body -- DOH! STUPID C++
Function Documentation
void cxxtls::fmtdalgo::int2ascii |
( |
char *& |
scan, |
|
|
int |
d | |
|
) |
| | |
Converts the specified integer into an ascii string stored at the specified location.
Does not null terminate the string.
Moves the pointer to the first byte after the generated text.
Definition at line 27 of file fmtd.h.
void cxxtls::fmtdalgo::setup |
( |
char *& |
scan, |
|
|
int |
fieldWidth, |
|
|
int |
precision, |
|
|
bool |
lJust, |
|
|
bool |
padding, |
|
|
char |
pad | |
|
) |
| | |
Setup most of the parameters to the control string used in invoking sprintf. Does not append a nul.
Definition at line 56 of file fmtd.h.