Pioneer
Loading...
Searching...
No Matches
Classes | Functions
StringF.h File Reference
#include "libs.h"
#include <SDL_stdinc.h>
#include <string>
Include dependency graph for StringF.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  FormatSpec
 
class  FormatArg
 
class  FormatArgT< T >
 
struct  FormatArgWrapper< T >
 
struct  FormatArgWrapper< char[N]>
 
struct  FormatArgWrapper< char[]>
 
struct  FormatArgWrapper< FormatArg >
 
struct  FormatArgWrapper< FormatArgT< T > >
 

Functions

std::string to_string (int8_t value, const FormatSpec &fmt)
 
std::string to_string (int16_t value, const FormatSpec &fmt)
 
std::string to_string (int32_t value, const FormatSpec &fmt)
 
std::string to_string (int64_t value, const FormatSpec &fmt)
 
std::string to_string (uint8_t value, const FormatSpec &fmt)
 
std::string to_string (uint16_t value, const FormatSpec &fmt)
 
std::string to_string (uint32_t value, const FormatSpec &fmt)
 
std::string to_string (uint64_t value, const FormatSpec &fmt)
 
std::string to_string (float value, const FormatSpec &fmt)
 
std::string to_string (double value, const FormatSpec &fmt)
 
std::string to_string (fixed value, const FormatSpec &fmt)
 
std::string to_string (const char *value, const FormatSpec &fmt)
 
std::string to_string (const std::string &value, const FormatSpec &fmt)
 
template<typename T >
std::string to_string (const T &value)
 
template<typename T >
FormatArgWrapper< T >::type formatarg (const char *name, const T &value, const char *defaultformat=0)
 
std::string string_format (const char *fmt, int numargs, FormatArg const *const args[])
 
std::string stringf (const char *fmt)
 
template<typename T0 >
std::string stringf (const char *fmt, const T0 &p0)
 
template<typename T0 , typename T1 >
std::string stringf (const char *fmt, const T0 &p0, const T1 &p1)
 
template<typename T0 , typename T1 , typename T2 >
std::string stringf (const char *fmt, const T0 &p0, const T1 &p1, const T2 &p2)
 
template<typename T0 , typename T1 , typename T2 , typename T3 >
std::string stringf (const char *fmt, const T0 &p0, const T1 &p1, const T2 &p2, const T3 &p3)
 
template<typename T0 , typename T1 , typename T2 , typename T3 , typename T4 >
std::string stringf (const char *fmt, const T0 &p0, const T1 &p1, const T2 &p2, const T3 &p3, const T4 &p4)
 
template<typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 >
std::string stringf (const char *fmt, const T0 &p0, const T1 &p1, const T2 &p2, const T3 &p3, const T4 &p4, const T5 &p5)
 
template<typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 >
std::string stringf (const char *fmt, const T0 &p0, const T1 &p1, const T2 &p2, const T3 &p3, const T4 &p4, const T5 &p5, const T6 &p6)
 

Function Documentation

◆ formatarg()

template<typename T >
FormatArgWrapper< T >::type formatarg ( const char *  name,
const T &  value,
const char *  defaultformat = 0 
)
inline
Here is the call graph for this function:

◆ string_format()

std::string string_format ( const char *  fmt,
int  numargs,
FormatArg const *const  args[] 
)
Here is the call graph for this function:

◆ stringf() [1/8]

std::string stringf ( const char *  fmt)
inline
Here is the call graph for this function:

◆ stringf() [2/8]

template<typename T0 >
std::string stringf ( const char *  fmt,
const T0 &  p0 
)
inline
Here is the call graph for this function:

◆ stringf() [3/8]

template<typename T0 , typename T1 >
std::string stringf ( const char *  fmt,
const T0 &  p0,
const T1 &  p1 
)
inline
Here is the call graph for this function:

◆ stringf() [4/8]

template<typename T0 , typename T1 , typename T2 >
std::string stringf ( const char *  fmt,
const T0 &  p0,
const T1 &  p1,
const T2 &  p2 
)
inline
Here is the call graph for this function:

◆ stringf() [5/8]

template<typename T0 , typename T1 , typename T2 , typename T3 >
std::string stringf ( const char *  fmt,
const T0 &  p0,
const T1 &  p1,
const T2 &  p2,
const T3 &  p3 
)
inline
Here is the call graph for this function:

◆ stringf() [6/8]

template<typename T0 , typename T1 , typename T2 , typename T3 , typename T4 >
std::string stringf ( const char *  fmt,
const T0 &  p0,
const T1 &  p1,
const T2 &  p2,
const T3 &  p3,
const T4 &  p4 
)
inline
Here is the call graph for this function:

◆ stringf() [7/8]

template<typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 >
std::string stringf ( const char *  fmt,
const T0 &  p0,
const T1 &  p1,
const T2 &  p2,
const T3 &  p3,
const T4 &  p4,
const T5 &  p5 
)
inline
Here is the call graph for this function:

◆ stringf() [8/8]

template<typename T0 , typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 >
std::string stringf ( const char *  fmt,
const T0 &  p0,
const T1 &  p1,
const T2 &  p2,
const T3 &  p3,
const T4 &  p4,
const T5 &  p5,
const T6 &  p6 
)
inline
Here is the call graph for this function:

◆ to_string() [1/14]

std::string to_string ( const char *  value,
const FormatSpec fmt 
)
Here is the call graph for this function:

◆ to_string() [2/14]

std::string to_string ( const std::string &  value,
const FormatSpec fmt 
)
Here is the call graph for this function:

◆ to_string() [3/14]

template<typename T >
std::string to_string ( const T &  value)
inline
Here is the call graph for this function:

◆ to_string() [4/14]

std::string to_string ( double  value,
const FormatSpec fmt 
)
Here is the call graph for this function:

◆ to_string() [5/14]

std::string to_string ( fixed  value,
const FormatSpec fmt 
)
inline
Here is the call graph for this function:

◆ to_string() [6/14]

std::string to_string ( float  value,
const FormatSpec fmt 
)
inline
Here is the call graph for this function:

◆ to_string() [7/14]

std::string to_string ( int16_t  value,
const FormatSpec fmt 
)
inline
Here is the call graph for this function:

◆ to_string() [8/14]

std::string to_string ( int32_t  value,
const FormatSpec fmt 
)
inline
Here is the call graph for this function:

◆ to_string() [9/14]

std::string to_string ( int64_t  value,
const FormatSpec fmt 
)
Here is the call graph for this function:

◆ to_string() [10/14]

std::string to_string ( int8_t  value,
const FormatSpec fmt 
)
inline
Here is the call graph for this function:

◆ to_string() [11/14]

std::string to_string ( uint16_t  value,
const FormatSpec fmt 
)
inline
Here is the call graph for this function:

◆ to_string() [12/14]

std::string to_string ( uint32_t  value,
const FormatSpec fmt 
)
inline
Here is the call graph for this function:

◆ to_string() [13/14]

std::string to_string ( uint64_t  value,
const FormatSpec fmt 
)
Here is the call graph for this function:

◆ to_string() [14/14]

std::string to_string ( uint8_t  value,
const FormatSpec fmt 
)
inline
Here is the call graph for this function: