ClanLib  2.3.7
Classes | List of all members
CL_StringFormat Class Reference

String formatting class. More...

#include <string_format.h>

Public Member Functions

Construction
 CL_StringFormat (const CL_StringRef &format_string)
 Constructs a TempStringFormat. More...
 
 ~CL_StringFormat ()
 
Attributes
const CL_Stringget_result () const
 
Operations
void set_arg (int index, const CL_StringRef &text)
 Set arg. More...
 
void set_arg (int index, int value, int min_length=0)
 Set arg. More...
 
void set_arg (int index, unsigned int value, int min_length=0)
 Set arg. More...
 
void set_arg (int index, long unsigned int value, int min_length=0)
 Set arg. More...
 
void set_arg (int index, long long value, int min_length=0)
 Set arg. More...
 
void set_arg (int index, unsigned long long value, int min_length=0)
 Set arg. More...
 
void set_arg (int index, float value)
 Set arg. More...
 
void set_arg (int index, double value)
 Set arg. More...
 

Detailed Description

String formatting class.

Constructor & Destructor Documentation

CL_StringFormat::CL_StringFormat ( const CL_StringRef format_string)

Constructs a TempStringFormat.

Parameters
format_string= String Ref
CL_StringFormat::~CL_StringFormat ( )

Member Function Documentation

const CL_String& CL_StringFormat::get_result ( ) const
void CL_StringFormat::set_arg ( int  index,
const CL_StringRef text 
)

Set arg.

Parameters
index= value
text= String Ref

Referenced by cl_format(), cl_log_event(), CL_Console::write(), and CL_Console::write_line().

void CL_StringFormat::set_arg ( int  index,
int  value,
int  min_length = 0 
)

Set arg.

Parameters
index= value
value= value
min_length= value
void CL_StringFormat::set_arg ( int  index,
unsigned int  value,
int  min_length = 0 
)

Set arg.

Parameters
index= value
value= value
min_length= value
void CL_StringFormat::set_arg ( int  index,
long unsigned int  value,
int  min_length = 0 
)

Set arg.

Parameters
index= value
value= value
min_length= value
void CL_StringFormat::set_arg ( int  index,
long long  value,
int  min_length = 0 
)

Set arg.

Parameters
index= value
value= value
min_length= value
void CL_StringFormat::set_arg ( int  index,
unsigned long long  value,
int  min_length = 0 
)

Set arg.

Parameters
index= value
value= value
min_length= value
void CL_StringFormat::set_arg ( int  index,
float  value 
)

Set arg.

Parameters
index= value
value= value
void CL_StringFormat::set_arg ( int  index,
double  value 
)

Set arg.

Parameters
index= value
value= value

The documentation for this class was generated from the following file: