CString Class Reference
#include <cstring.h>
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 () | |
CString & | operator+= (const CString &s) |
CString & | operator+= (const char c) |
CString & | operator+= (const int n) |
CString & | operator+= (const unsigned int n) |
CString & | operator+= (const long int n) |
CString & | operator+= (const unsigned long int n) |
CString & | operator+= (const long long int n) |
CString & | operator+= (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 | |
CString & | trim () |
CString & | ltrim () |
CString & | rtrim () |
CStrings | split (const char delim) const |
CString & | replace (const CString &s1, const CString &s2, const size_type sPos=0, const uint n=0) |
CString & | toLower () |
CString & | toUpper () |
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 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
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 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 | |||
) |
replace () Replace first n occurances of string s1 with string s2 starting from position sPos. If n is equal to zero, all occurances are replaced
Referenced by Tester::compareToCorrectOutput(), FSMSADF::OutputHTML::convertFSMToPNG(), FSMSADF::OutputHTML::convertPlatformBindingToPNG(), FSMSADF::OutputHTML::convertPlatformGraphToPNG(), FSMSADF::OutputHTML::convertScenarioGraphToPNG(), FSMSADF::OutputHTML::printPlatformBinding(), FSMSADF::OutputHTML::printPlatformGraph(), and MaxPlusAnalysis::Exploration::replaceString().
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().
The documentation for this class was generated from the following files: