C++ conforming replacement to the ANSI C functions sprintf and printf. More...
#include <vul_sprintf.h>
Public Member Functions | |
vul_sprintf (char const *fmt,...) | |
vul_sprintf & | operator= (vcl_string const &s) |
vul_sprintf & | operator= (char const *s) |
operator char const * () const |
C++ conforming replacement to the ANSI C functions sprintf and printf.
vul_sprintf works in the same way as sprintf but is itself an ANSI C++ string which can either be kept or output directly using streams e.g.
vcl_cerr << vul_sprintf("int %d, float %f ", 1, 3.14) << bigobject << vcl_endl;
Definition at line 31 of file vul_sprintf.h.
vul_sprintf::vul_sprintf | ( | char const * | fmt, |
... | |||
) |
Definition at line 19 of file vul_sprintf.cxx.
vul_sprintf::operator char const * | ( | ) | const [inline] |
Definition at line 49 of file vul_sprintf.h.
vul_sprintf& vul_sprintf::operator= | ( | vcl_string const & | s | ) | [inline] |
Definition at line 43 of file vul_sprintf.h.
vul_sprintf& vul_sprintf::operator= | ( | char const * | s | ) | [inline] |
Definition at line 45 of file vul_sprintf.h.