cbp2make
Makefile generation tool for Code::Blocks IDE
Public Member Functions | Protected Attributes | Private Types | List of all members
CString Class Reference

#include <stlstrings.h>

Public Member Functions

std::string & GetString (void)
 
std::string GetString (void) const
 
char * GetCString (void) const
 
int GetLength (void) const
 
bool IsEmpty (void) const
 
CString & SetLength (void)
 
CString & SetLength (const int Length)
 
CString & Clear (void)
 
char GetChar (const int Index) const
 
char GetFirstChar (void) const
 
char GetLastChar (void) const
 
void SetChar (const int Index, const char Value)
 
CString & Assign (const char AChar)
 
CString & Assign (const char *AString)
 
CString & Assign (const std::string &AString)
 
CString & Assign (const CString &AString)
 
CString & Append (const char AChar)
 
CString & Append (const char *AString)
 
CString & Append (const std::string &AString)
 
CString & Append (const CString &AString)
 
CString & AppendCR (void)
 
CString & AppendLF (void)
 
CString & AppendCRLF (void)
 
CString & AppendEOL (void)
 
CString GetEOL (void)
 
CString & SetEOL (const eol_t EndOfLine)
 
char & operator[] (const int Index)
 
char operator[] (const int Index) const
 
CString & operator= (const char AChar)
 
CString & operator= (const char *AString)
 
CString & operator= (const std::string &AString)
 
CString & operator= (const CString &AString)
 
CString & operator= (const int AInteger)
 
CString & operator= (const long long int AInteger)
 
CString & operator= (const float AFloat)
 
CString & operator= (const double AFloat)
 
CString & operator+= (const char AChar)
 
CString & operator+= (const char *CString)
 
CString & operator+= (const CString &AString)
 
CString & operator+= (const int AInteger)
 
CString & operator+= (const long long int AInteger)
 
CString & operator+= (const float AFloat)
 
CString & operator+= (const double AFloat)
 
bool operator== (const char *AString) const
 
bool operator== (const std::string &AString) const
 
bool operator== (const CString &AString) const
 
int GetInteger (void) const
 
double GetFloat (void) const
 
void Fill (const char AChar)
 
void Print (std::ostream &out)
 
 CString (void)
 
 CString (const char AChar)
 
 CString (const char *AString)
 
 CString (const std::string &AString)
 
 CString (const CString &AString)
 
 ~CString (void)
 

Protected Attributes

std::string m_String
 
eol_t m_eol_type
 

Private Types

enum  eol_t { eol_cr, eol_lf, eol_crlf }
 

Member Enumeration Documentation

◆ eol_t

enum CString::eol_t
private
Enumerator
eol_cr 
eol_lf 
eol_crlf 

Constructor & Destructor Documentation

◆ CString() [1/5]

CString::CString ( void  )

◆ CString() [2/5]

CString::CString ( const char  AChar)

◆ CString() [3/5]

CString::CString ( const char *  AString)

◆ CString() [4/5]

CString::CString ( const std::string &  AString)

◆ CString() [5/5]

CString::CString ( const CString &  AString)

◆ ~CString()

CString::~CString ( void  )

Member Function Documentation

◆ Append() [1/4]

CString & CString::Append ( const char  AChar)

◆ Append() [2/4]

CString & CString::Append ( const char *  AString)

◆ Append() [3/4]

CString& CString::Append ( const std::string &  AString)

◆ Append() [4/4]

CString & CString::Append ( const CString &  AString)

◆ AppendCR()

CString & CString::AppendCR ( void  )

◆ AppendCRLF()

CString & CString::AppendCRLF ( void  )

◆ AppendEOL()

CString & CString::AppendEOL ( void  )

◆ AppendLF()

CString & CString::AppendLF ( void  )

◆ Assign() [1/4]

CString & CString::Assign ( const char  AChar)

◆ Assign() [2/4]

CString & CString::Assign ( const char *  AString)

◆ Assign() [3/4]

CString & CString::Assign ( const std::string &  AString)

◆ Assign() [4/4]

CString & CString::Assign ( const CString &  AString)

◆ Clear()

CString & CString::Clear ( void  )

◆ Fill()

void CString::Fill ( const char  AChar)

◆ GetChar()

char CString::GetChar ( const int  Index) const

◆ GetCString()

char * CString::GetCString ( void  ) const

◆ GetEOL()

CString CString::GetEOL ( void  )

◆ GetFirstChar()

char CString::GetFirstChar ( void  ) const

◆ GetFloat()

double CString::GetFloat ( void  ) const

◆ GetInteger()

int CString::GetInteger ( void  ) const

◆ GetLastChar()

char CString::GetLastChar ( void  ) const

◆ GetLength()

int CString::GetLength ( void  ) const

◆ GetString() [1/2]

std::string & CString::GetString ( void  )

◆ GetString() [2/2]

std::string CString::GetString ( void  ) const

◆ IsEmpty()

bool CString::IsEmpty ( void  ) const

◆ operator+=() [1/7]

CString & CString::operator+= ( const char  AChar)

◆ operator+=() [2/7]

CString & CString::operator+= ( const char *  CString)

◆ operator+=() [3/7]

CString & CString::operator+= ( const CString &  AString)

◆ operator+=() [4/7]

CString & CString::operator+= ( const int  AInteger)

◆ operator+=() [5/7]

CString & CString::operator+= ( const long long int  AInteger)

◆ operator+=() [6/7]

CString & CString::operator+= ( const float  AFloat)

◆ operator+=() [7/7]

CString & CString::operator+= ( const double  AFloat)

◆ operator=() [1/8]

CString & CString::operator= ( const char  AChar)

◆ operator=() [2/8]

CString & CString::operator= ( const char *  AString)

◆ operator=() [3/8]

CString & CString::operator= ( const std::string &  AString)

◆ operator=() [4/8]

CString & CString::operator= ( const CString &  AString)

◆ operator=() [5/8]

CString & CString::operator= ( const int  AInteger)

◆ operator=() [6/8]

CString & CString::operator= ( const long long int  AInteger)

◆ operator=() [7/8]

CString & CString::operator= ( const float  AFloat)

◆ operator=() [8/8]

CString & CString::operator= ( const double  AFloat)

◆ operator==() [1/3]

bool CString::operator== ( const char *  AString) const

◆ operator==() [2/3]

bool CString::operator== ( const std::string &  AString) const

◆ operator==() [3/3]

bool CString::operator== ( const CString &  AString) const

◆ operator[]() [1/2]

char & CString::operator[] ( const int  Index)

◆ operator[]() [2/2]

char CString::operator[] ( const int  Index) const

◆ Print()

void CString::Print ( std::ostream &  out)

◆ SetChar()

void CString::SetChar ( const int  Index,
const char  Value 
)

◆ SetEOL()

CString & CString::SetEOL ( const eol_t  EndOfLine)

◆ SetLength() [1/2]

CString & CString::SetLength ( void  )

◆ SetLength() [2/2]

CString & CString::SetLength ( const int  Length)

Member Data Documentation

◆ m_eol_type

eol_t CString::m_eol_type
protected

◆ m_String

std::string CString::m_String
protected

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