#include <cel_printf.h>
List of all members.
Static Public Member Functions |
| static Char * | sprintf (const Char *format,...) |
| static Char * | vsprintf (const Char *format, std::va_list ap) |
Detailed Description
template<typename Char>
struct Celartem::Printf< Char >
General definition of Printf template.
This is non-locale based printf implementation dedicated to use with internal processing purpose. Both of char version and wchar_t version are provided.
- See also:
- Printf<char>, Printf<wchar_t>
Member Function Documentation
template<typename Char >
| static Char* Celartem::Printf< Char >::sprintf |
( |
const Char * |
format, |
|
|
|
... | |
|
) |
| | [static] |
This function works much like as sprintf except it allocates the buffer using std::malloc function. The details of the parameters are identical to _vsnwprintf.
Currently, this function is not implemented except Windows.
- Parameters:
-
| format | Format specification. |
| ap | Pointer to list of parameters. |
- Returns:
- Pointer to the allocated string. It should be released using
std::free function.
template<typename Char >
| static Char* Celartem::Printf< Char >::vsprintf |
( |
const Char * |
format, |
|
|
std::va_list |
ap | |
|
) |
| | [static] |
This function works much like as vsprintf except it allocates the buffer using std::malloc function. The details of the parameters are identical to _vsnwprintf.
Currently, this function is not implemented except Windows.
- Parameters:
-
| format | Format specification. |
| ap | Pointer to list of parameters. |
- Returns:
- Pointer to the allocated string. It should be released using
std::free function.
The documentation for this struct was generated from the following file: