#include <cstring.h>

List of all members.

Public Member Functions

 CString ()
 CString (const char s)
 CString (const char *s)
 CString (const std::string &s)
 CString (const CString &s)
 CString (const int n)
 CString (const unsigned int n)
 CString (const long int n)
 CString (const unsigned long int n)
 CString (const long long int n)
 CString (const unsigned long long int n)
 CString (const double n)
 ~CString ()
CStringoperator+= (const CString &s)
CStringoperator+= (const char c)
CStringoperator+= (const int n)
CStringoperator+= (const unsigned int n)
CStringoperator+= (const long int n)
CStringoperator+= (const unsigned long int n)
CStringoperator+= (const long long int n)
CStringoperator+= (const double n)
char operator[] (int n)
 operator const char * () const
 operator int () const
 operator uint () const
 operator double () const
 operator long () const
 operator unsigned long () const
 operator long long () const
 operator unsigned long long () const
CStringtrim ()
CStringltrim ()
CStringrtrim ()
CStrings split (const char delim) const
CStringreplace (const CString &s1, const CString &s2, const size_type sPos=0, const uint n=0)
CStringtoLower ()
CStringtoUpper ()

Static Public Member Functions

static CString join (const CStrings strl, const char delim)

Detailed Description

CString String container class. Derived from STL library class string.


Constructor & Destructor Documentation

CString::CString (  ) 

CString () Constructor.

CString::CString ( const char  s  ) 

CString () Constructor.

CString::CString ( const char *  s  ) 

CString () Constructor.

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

CString () Constructor.

CString::CString ( const CString s  ) 

CString () Constructor.

CString::CString ( const int  n  ) 

CString () Constructor.

CString::CString ( const unsigned int  n  ) 

CString () Constructor.

CString::CString ( const long int  n  ) 

CString () Constructor.

CString::CString ( const unsigned long int  n  ) 

CString () Constructor.

CString::CString ( const long long int  n  ) 

CString () Constructor.

CString::CString ( const unsigned long long int  n  ) 

CString () Constructor.

CString::CString ( const double  n  ) 

CString () Constructor.

CString::~CString (  ) 

~CString () Destructor.


Member Function Documentation

CString CString::join ( const CStrings  strl,
const char  delim 
) [static]

join () Join the list of strings delimited with delim character

Referenced by FSMSADF::Channel::convertToXML().

CString & CString::ltrim (  ) 

ltrim () Remove whitespace from left-hand side of string.

Referenced by trim().

CString::operator const char * (  )  const

operator const char* () Type conversion to constant character pointer.

CString::operator double (  )  const

operator double () Type conversion to double.

CString::operator int (  )  const

operator int () Type conversion to integer.

CString::operator long (  )  const

operator long () Type conversion to long.

CString::operator long long (  )  const

operator long long () Type conversion to long long.

CString::operator uint (  )  const

operator uint () Type conversion to unsigned integer.

CString::operator unsigned long (  )  const

operator unsigned long () Type conversion to unsigned long.

CString::operator unsigned long long (  )  const

operator unsigned long long () Type conversion to unsigned long long.

CString & CString::operator+= ( const unsigned int  n  ) 

operator+= () Addition to string

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

operator+= () Addition to string

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

operator+= () Addition to string

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

operator+= () Addition to string

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

operator+= () Addition to string

CString & CString::operator+= ( const unsigned long int  n  ) 

operator+= () Addition to string

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

operator+= () Addition to string

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

operator+= () Addition to string

char CString::operator[] ( int  n  )  [inline]
CString & CString::replace ( const CString s1,
const CString s2,
const size_type  sPos = 0,
const uint  n = 0 
)
CString & CString::rtrim (  ) 

rtrim () Remove whitespace from right-hand side of string.

Referenced by trim().

CStrings CString::split ( const char  delim  )  const

split () Split the string on all occurances of delim character

Referenced by NoCScheduler::assignSchedulingEntities(), FSMSADF::Channel::constructFromXML(), and CSequence< CSDFtime >::CSequence().

CString & CString::toLower (  ) 

toLower () The function converts the string to lower-case.

Referenced by createHapiActor(), createHapiNetwork(), hapiActorDeclarationCC(), hapiMainCC(), hapiNetworkDeclarationCC(), and hapiNetworkDeclarationH().

CString & CString::toUpper (  ) 

toUpper () The function converts the string to upper-case.

Referenced by hapiActorDeclarationH(), and hapiNetworkDeclarationH().

CString & CString::trim (  ) 

trim () Remove whitespace from left-hand and right-hand side of string.

References ltrim(), and rtrim().

Referenced by CSequence< CSDFtime >::CSequence().

Here is the call graph for this function:


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