Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

CL_StringFormat Class Reference

#include <string_format.h>

List of all members.

Public Member Functions

 CL_StringFormat (const CL_String &format_string)
 Construction:.
 ~CL_StringFormat ()
const CL_String & get_result () const
 Attributes:.
void set_arg (int index, const CL_StringA &text)
 Operations:.
void set_arg (int index, const CL_StringW &text)
void set_arg (int index, int value, int min_length=0)
void set_arg (int index, double value)

Private Member Functions

void create_arg (int index, int start, int length)
 Implementation:.

Private Attributes

CL_String string
std::vector< ArgPositionargs

Classes

struct  ArgPosition


Constructor & Destructor Documentation

CL_StringFormat::CL_StringFormat const CL_String &  format_string  ) 
 

Construction:.

Definition at line 37 of file string_format.cpp.

References create_arg(), string, and TEXT.

CL_StringFormat::~CL_StringFormat  ) 
 

Definition at line 101 of file string_format.cpp.


Member Function Documentation

void CL_StringFormat::create_arg int  index,
int  start,
int  length
[private]
 

Implementation:.

Definition at line 183 of file string_format.cpp.

References args, CL_StringFormat::ArgPosition::length, CL_StringFormat::ArgPosition::start, and TEXT.

Referenced by CL_StringFormat().

const CL_String & CL_StringFormat::get_result  )  const
 

Attributes:.

Definition at line 108 of file string_format.cpp.

References CL_String, and string.

Referenced by cl_format(), cl_log_event(), code_to_message(), CL_RegExp::compile(), and CL_FileLogger::log().

void CL_StringFormat::set_arg int  index,
double  value
 

Definition at line 175 of file string_format.cpp.

References set_arg().

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

Definition at line 168 of file string_format.cpp.

References CL_String, CL_StringHelp::int_to_text(), set_arg(), and TEXT.

void CL_StringFormat::set_arg int  index,
const CL_StringW text
 

Definition at line 142 of file string_format.cpp.

References args, CL_StringFormat::ArgPosition::length, set_arg(), CL_StringFormat::ArgPosition::start, and string.

void CL_StringFormat::set_arg int  index,
const CL_StringA text
 

Operations:.

Definition at line 116 of file string_format.cpp.

References args, CL_StringFormat::ArgPosition::length, CL_StringFormat::ArgPosition::start, and string.

Referenced by cl_format(), cl_log_event(), code_to_message(), CL_RegExp::compile(), CL_FileLogger::log(), and set_arg().


Member Data Documentation

std::vector<ArgPosition> CL_StringFormat::args [private]
 

Definition at line 70 of file string_format.h.

Referenced by create_arg(), and set_arg().

CL_String CL_StringFormat::string [private]
 

Definition at line 60 of file string_format.h.

Referenced by CL_StringFormat(), get_result(), and set_arg().


The documentation for this class was generated from the following files:
Generated on Sat Feb 19 22:51:18 2005 for npcore by  doxygen 1.4.1