StringFormatter< T, fieldWidth, precision, lJust, padding, pad, base, errchr > Struct Template Reference

This functor formats strings in the way that should be done for class fmtd<> More...

#include <fmtd.h>

List of all members.

Public Member Functions

size_t operator() (char const *v, char *buffer, int buffsize)
 Convert the specified value into an ascii string and return the length. Do not write more than buffsize bytes (including the trailing null).
size_t operator() (std::string const &v, char *buffer, int buffsize)

Detailed Description

template<class T, int fieldWidth, int precision, int lJust, int padding, int pad, int base, int errchr>
struct cxxtls::fmtdalgo::StringFormatter< T, fieldWidth, precision, lJust, padding, pad, base, errchr >

This functor formats strings in the way that should be done for class fmtd<>

Template parameter T is ignored. This class defines two kinds of strings that it supports, not all kinds imaginable.

Definition at line 87 of file fmtd.h.


Member Function Documentation

size_t operator() ( char const *  v,
char *  buffer,
int  buffsize 
)

Convert the specified value into an ascii string and return the length. Do not write more than buffsize bytes (including the trailing null).

Obeys the template parameters.

Fills the output with errchr if the data won't fit.

Definition at line 106 of file fmtd.h.

Here is the call graph for this function:

size_t operator() ( std::string const &  v,
char *  buffer,
int  buffsize 
)

Definition at line 97 of file fmtd.h.


The documentation for this struct was generated from the following file:
Generated on Wed Feb 29 22:58:54 2012 for CXXUtilities by  doxygen 1.6.3