String formatting class.
More...
#include <string_format.h>
List of all members.
Classes |
struct | ArgPosition |
Public Member Functions |
|
|
| CL_StringFormat (const CL_StringRef &format_string) |
| Constructs a TempStringFormat.
|
| ~CL_StringFormat () |
|
|
const CL_String & | get_result () const |
|
|
void | set_arg (int index, const CL_StringRef &text) |
| Set arg.
|
void | set_arg (int index, int value, int min_length=0) |
| Set arg.
|
void | set_arg (int index, unsigned int value, int min_length=0) |
| Set arg.
|
void | set_arg (int index, long unsigned int value, int min_length=0) |
| Set arg.
|
void | set_arg (int index, long long value, int min_length=0) |
| Set arg.
|
void | set_arg (int index, unsigned long long value, int min_length=0) |
| Set arg.
|
void | set_arg (int index, float value) |
| Set arg.
|
void | set_arg (int index, double value) |
| Set arg.
|
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, |
|
|
double |
value | |
|
) |
| | |
Set arg.
- Parameters:
-
| index | = value |
| value | = value |
void CL_StringFormat::set_arg |
( |
int |
index, |
|
|
float |
value | |
|
) |
| | |
Set arg.
- Parameters:
-
| index | = value |
| value | = 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, |
|
|
long long |
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, |
|
|
unsigned int |
value, |
|
|
int |
min_length = 0 | |
|
) |
| | |
Set arg.
- Parameters:
-
| index | = value |
| value | = value |
| min_length | = value |
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, |
|
|
const CL_StringRef & |
text | |
|
) |
| | |
The documentation for this class was generated from the following file: