C++ main module for gpm Package  1.0
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
CORE_String Class Reference

this class describes a string More...

#include <CORE_String.h>

Inheritance diagram for CORE_String:
Inheritance graph
[legend]
Collaboration diagram for CORE_String:
Collaboration graph
[legend]

Public Member Functions

 CORE_String ()
 create a string More...
 
 CORE_String (const tString &str)
 create a string More...
 
 ~CORE_String ()
 deleter More...
 
const char & operator[] (int i) const
 get the i-th element Assert in (i>-1) Assert in (i<size()); More...
 
char & operator[] (int i)
 get the i-th element Assert in (i>-1) Assert in (i<size()); More...
 
void setString (const tString &str)
 set the integer to i More...
 
void setString (const char *str)
 set the integer to i More...
 
tString getString () const
 get the string More...
 
tString toString () const
 return the string associated to the string More...
 
char * toCharArray () const
 turn the string into char array More...
 
void tokenize (const tString &separator)
 tokenize the string with the separator More...
 
void tokenize ()
 tokenize the string More...
 
int getTokensCount () const
 get the number of tokens More...
 
int getTokensNumber () const
 get the number of tokens More...
 
void begin ()
 
tBoolean hasNextToken () const
 return true if there is another token More...
 
tString nextToken ()
 return the next token More...
 
tString getToken (const int &index)
 get the token at index More...
 
void replaceAll (const tString &strToReplace, const tString &str)
 replace all instances of strToReplace by str More...
 
void replaceFirst (const tString &strToReplace, const tString &str)
 replace first instance of strToReplace by str More...
 
void replaceLast (const tString &strToReplace, const tString &str)
 replace last instance of strToReplace by str More...
 
void toUpper ()
 turn the string to upper case More...
 
void toLower ()
 turn the string to lower case More...
 
tString::size_type indexOf (const tString &v) const
 return the first index of v fin this->mString More...
 
tString::size_type lastIndexOf (const tString &v) const
 return the last index of v fin this->mString More...
 
tString::size_type getLastIndexOf (const tString &v) const
 return the last index of v fin this->mString More...
 
tString::size_type indexOf (const tString &v, const tString::size_type &fromIndex) const
 return the index of char v in this->mString from fromIndex index More...
 
void remove (const tString::size_type &from, const tString::size_type &to)
 remove all the chars in from & to More...
 
void remove (const tString::size_type &index)
 remove the char at index More...
 
tString substring (const tString::size_type &from, const tString::size_type &to) const
 return the string between from & to indices from index is included, to is not More...
 
tString substring (const tString::size_type &from) const
 return the string from index More...
 
char charAt (const int &index) const
 return the char at index More...
 
int length () const
 get the size of the size More...
 
void append (const tString &v)
 append the string v to the string More...
 
void append (const char &v)
 append the char v to the string More...
 
void trim ()
 trim More...
 
void getSharedPointer (SP::CORE_Object &p)
 get the shared pointer of this class into p More...
 
void getSharedPointer (SPC::CORE_Object &p) const
 get the shared pointer of this class into p More...
 
tString getClassName () const
 return the class name of the object More...
 
tString getIdentityString () const
 return the identity string of the object of the form className_at_address More...
 
tString getPointerAddress () const
 return the identity string of the object More...
 
template<class T >
tBoolean isInstanceOf () const
 return true if the object is an instance of T More...
 
virtual void print ()
 print the class More...
 
virtual ostream & print (ostream &out) const
 print the class More...
 
virtual void print (const tString &message)
 print the class More...
 
virtual void print (const tInteger &str)
 print More...
 
virtual void print (const tRelativeInteger &str)
 print More...
 
virtual void print (const tReal &str)
 print More...
 
virtual void print (const int &str)
 print More...
 

Static Public Member Functions

static SP::CORE_String New ()
 create a class String More...
 
static SP::CORE_String New (const tString &str)
 build an integer object More...
 
static char * stringToCharArray (const tString &str)
 turn the string into char array More...
 
static void replaceAll (tString &inOutValue, const tString &strToReplace, const tString &str)
 replace all instances of strToReplace by str More...
 
static void replaceFirst (tString &inOutValue, const tString &strToReplace, const tString &str)
 replace first instance of strToReplace by str More...
 
static void replaceLast (tString &inOutValue, const tString &strToReplace, const tString &str)
 replace last instance of strToReplace by str More...
 
static int getOccurencesNumber (const tString &str, const tString &occ)
 get the number of occurence of the string More...
 
static tString toString (const tString &str, const int &len)
 return the string associated to the string More...
 
static void toUpper (tString &s)
 to upper More...
 
static tString toUpper (const tString &str)
 turn the string to upper case More...
 
static void toLower (tString &s)
 to lower More...
 
static tString toLower (const tString &str)
 turn the string to upper case More...
 
static tString toString (const tFlag &c)
 return the string representation of short c More...
 
static tString toString (const float &c)
 return the string representation of float c More...
 
static tString toString (const double &c)
 return the string representation of double c More...
 
static tString toString (const long double &c)
 return the string representation of long double c More...
 
static tString toString (const int &c)
 return the string representation of int c More...
 
static tString toString (const long &c)
 return the string representation of long c More...
 
static tString toString (const long long &c)
 return the string representation of long long c More...
 
static tString toString (const unsigned int &c)
 return the string representation of unsigned int c More...
 
static tString toString (const unsigned long &c)
 return the string representation of c More...
 
static tString toString (const unsigned long long &c)
 return the string representation of unsigned long long c More...
 
static tString toString (const tBoolean &c)
 return the string representation of boolean c More...
 
static tString boolean2String (const tBoolean &c)
 return the string representation true or false of boolean c More...
 
static tString booleanToString (const tBoolean &c)
 return the string representation true or false of boolean c More...
 
static tBoolean string2Boolean (const tString &c)
 return the booleazn corresponding to string More...
 
static tBoolean stringToBoolean (const tString &c)
 return the booleazn corresponding to string More...
 
static tString toString (tCharacter c)
 return the string representation of char c More...
 
static tString toString (tComplex c)
 return the string representation of complex c More...
 
static tString toString (tString c)
 return the string representation of string c More...
 
static tString toString (const int &n, const long double *c)
 return the string representation of long double c More...
 
static void parse (const tString &str, unsigned char &c)
 parse unsigned char c in str More...
 
static void parse (const tString &str, short int &c)
 parse short c in str More...
 
static void parse (const tString &str, unsigned short int &c)
 parse short c in str More...
 
static void parse (const tString &str, int &c)
 parse int c in str More...
 
static void parse (const tString &str, long &c)
 parse long c in str More...
 
static void parse (const tString &str, long long &c)
 parse long long c in str More...
 
static void parse (const tString &str, unsigned int &c)
 parse unsigned int c in str More...
 
static void parse (const tString &str, unsigned long &c)
 parse unsigned long c in str More...
 
static void parse (const tString &str, unsigned long long &c)
 parse unsigned long long c in str More...
 
static void parse (const tString &str, bool &c)
 parse boolean c in str More...
 
static void parse (const tString &str, char &c)
 parse char c in str More...
 
static void parse (const tString &str, float &c)
 parse float c in str More...
 
static void parse (const tString &str, double &c)
 parse double c in str More...
 
static void parse (const tString &str, long double &c)
 parse long double c in str More...
 
static void parse (const tString &str, tString &c)
 parse tString c in str More...
 
static void parse (const tString &str, tComplex &c)
 parse tComplex c in str More...
 
static tString::size_type getLastIndexOf (const tString &str, const tString &v)
 return the last index of v fin this->mString More...
 
static tString keepOnlyFirstLines (const tString &str, const int &nLines, tBoolean &isTruncated)
 keep only the first lines of parameter str More...
 
static void removeAll (tString &inOutStr, const tString &strToRemove)
 remove the char at index More...
 
static void truncate (tString &text, const int &nLines, const int &nCharsByLine)
 truncate the message with nLines of nChars More...
 
static tString substring (const tString &str, const tString::size_type &from, const tString::size_type &to)
 return the string between from & to indices from index is included, to is not More...
 
static void trim (tString &str)
 trim a string More...
 
static int readInteger (const tString &v)
 read only integer characters More...
 
static tReal readReal (const tString &v)
 read only real characters if not a real return 0 More...
 
static tBoolean isLetter (const char &v)
 return if the char is a letter More...
 
static tBoolean isDigit (const char &v)
 return if the char is a digit More...
 
static tString getClassName (const tString &identityString)
 return the class name of the object using only the identity string More...
 
template<class T >
static tString getTypeName ()
 get type name More...
 
static tBoolean is64Architecture ()
 return true if the machine is a 64 bits machine More...
 
static tBoolean is32Architecture ()
 return true if the machine is a 32 bits machine More...
 
static tString pointer2String (const void *obj)
 return the string represantation of a pointer More...
 
static void setOutput (ostream &out)
 set output More...
 
static ostream & getOutput ()
 get output More...
 
static void printObjectsInMemory ()
 print object in memory More...
 
static ostream & print (ostream &out, const tString &message)
 print the class More...
 
static void outputPrint (const tString &message)
 

Static Public Attributes

static tBoolean mIsMemoryTesting =false
 indicator to store all classes created and deleted only for debuging version More...
 

Protected Member Functions

void setThis (SP::CORE_Object p)
 set this weak shared pointer called toDoAfterThis setting method More...
 
virtual void setType (tString type)
 set the type of the object More...
 
virtual void toDoAfterThisSetting ()
 method called after setThis() method this method can oly be called once. More...
 

Detailed Description

this class describes a string

Attributes:

Associations:

To do for tokenizer:

int main(){ using namespace std; using namespace boost; string s = "This is, a test"; tokenizer<> tok(s); for(tokenizer<>::iterator beg=tok.begin(); beg!=tok.end();++beg){ cout << *beg << "\n"; } } #include <boost/tokenizer.hpp> #include <string> #include <iostream>

int main() { typedef boost::tokenizer<boost::char_separator<char>> tokenizer; std::string s = "Boost C++ Libraries"; boost::char_separator<char> sep{" "}; tokenizer tok{s, sep}; for (const auto &t : tok) std::cout << t << '
'; }

Author
Stéphane Despréaux
Version
1.0

Constructor & Destructor Documentation

CORE_String::CORE_String ( )

create a string

Referenced by New().

Here is the caller graph for this function:

CORE_String::CORE_String ( const tString str)

create a string

CORE_String::~CORE_String ( )

deleter

Member Function Documentation

void CORE_String::append ( const tString v)
inline

append the string v to the string

void CORE_String::append ( const char &  v)
inline

append the char v to the string

References toString().

Here is the call graph for this function:

void CORE_String::begin ( )
inline
static tString CORE_String::boolean2String ( const tBoolean c)
inlinestatic

return the string representation true or false of boolean c

Referenced by booleanToString(), GPMG_VertexWindow::componentClicked(), CORE_CommandLine::interpretCommandLine(), GPM_Port::toString(), and GPM_Variable::toString().

Here is the caller graph for this function:

static tString CORE_String::booleanToString ( const tBoolean c)
inlinestatic

return the string representation true or false of boolean c

References boolean2String().

Here is the call graph for this function:

char CORE_String::charAt ( const int &  index) const
inline

return the char at index

static tString CORE_Object::getClassName ( const tString identityString)
inlinestaticinherited

return the class name of the object using only the identity string

Referenced by CORE_Object::printObjectsInMemory().

Here is the caller graph for this function:

tString CORE_Object::getClassName ( ) const
inherited

return the class name of the object

Returns
the class name of the object

References tString.

Referenced by CORE_Object::getIdentityString().

Here is the caller graph for this function:

tString CORE_Object::getIdentityString ( ) const
inlineinherited

return the identity string of the object of the form className_at_address

Returns
the identity string of the object

References CORE_Object::getClassName(), CORE_Object::pointer2String(), and tString.

Referenced by CORE_Object::toString().

Here is the call graph for this function:

Here is the caller graph for this function:

tString::size_type CORE_String::getLastIndexOf ( const tString v) const
inline

return the last index of v fin this->mString

static tString::size_type CORE_String::getLastIndexOf ( const tString str,
const tString v 
)
inlinestatic

return the last index of v fin this->mString

int CORE_String::getOccurencesNumber ( const tString str,
const tString occ 
)
static

get the number of occurence of the string

static ostream& CORE_Object::getOutput ( )
inlinestaticinherited

get output

tString CORE_Object::getPointerAddress ( ) const
inlineinherited

return the identity string of the object

Returns
the identity string of the object

References CORE_Object::pointer2String().

Here is the call graph for this function:

void CORE_Object::getSharedPointer ( SP::CORE_Object &  p)
inlineinherited
void CORE_Object::getSharedPointer ( SPC::CORE_Object &  p) const
inlineinherited

get the shared pointer of this class into p

tString CORE_String::getString ( ) const
inline

get the string

Returns
the string value.
tString CORE_String::getToken ( const int &  index)
inline

get the token at index

int CORE_String::getTokensCount ( ) const
inline

get the number of tokens

int CORE_String::getTokensNumber ( ) const
inline

get the number of tokens

template<class T >
static tString CORE_Object::getTypeName ( )
inlinestaticinherited

get type name

References tString.

tBoolean CORE_String::hasNextToken ( ) const
inline

return true if there is another token

tString::size_type CORE_String::indexOf ( const tString v) const
inline

return the first index of v fin this->mString

tString::size_type CORE_String::indexOf ( const tString v,
const tString::size_type &  fromIndex 
) const
inline

return the index of char v in this->mString from fromIndex index

static tBoolean CORE_Object::is32Architecture ( )
inlinestaticinherited

return true if the machine is a 32 bits machine

References CORE_Object::is64Architecture().

Here is the call graph for this function:

tBoolean CORE_Object::is64Architecture ( )
staticinherited

return true if the machine is a 64 bits machine

Referenced by CORE_Object::is32Architecture().

Here is the caller graph for this function:

static tBoolean CORE_String::isDigit ( const char &  v)
inlinestatic

return if the char is a digit

Referenced by GPM_ModelFunction::expandVariableNames().

Here is the caller graph for this function:

template<class T >
tBoolean CORE_Object::isInstanceOf ( ) const
inlineinherited

return true if the object is an instance of T

References null.

Referenced by MATH_BinaryOperator::insertInTree(), MATH_UnaryOperator::insertInTree(), and MATH_EndBlock::insertInTree().

Here is the caller graph for this function:

static tBoolean CORE_String::isLetter ( const char &  v)
inlinestatic

return if the char is a letter

Referenced by GPM_Rule::isDependentOn().

Here is the caller graph for this function:

tString CORE_String::keepOnlyFirstLines ( const tString str,
const int &  nLines,
tBoolean isTruncated 
)
static

keep only the first lines of parameter str

Parameters
str: string parameter to keep only nLines
nLines: number of lines to keep
isTruncated: is set to true if the string has been truncated

References tString.

tString::size_type CORE_String::lastIndexOf ( const tString v) const
inline

return the last index of v fin this->mString

int CORE_String::length ( ) const
inline

get the size of the size

static SP::CORE_String CORE_String::New ( )
inlinestatic

create a class String

References CORE_String().

Referenced by CORE_IO::getFiles(), CORE_ClassFactory::NewInstance(), GPM_Variable::parse(), GPM_ModelFunction::readRulesFromFile(), CORE_Color::setColor(), CORE_Time::setTime(), and CORE_Array< T >::setValues().

Here is the call graph for this function:

Here is the caller graph for this function:

static SP::CORE_String CORE_String::New ( const tString str)
inlinestatic

build an integer object

References CORE_String().

Here is the call graph for this function:

tString CORE_String::nextToken ( )
inline

return the next token

const char& CORE_String::operator[] ( int  i) const
inline

get the i-th element Assert in (i>-1) Assert in (i<size());

char& CORE_String::operator[] ( int  i)
inline

get the i-th element Assert in (i>-1) Assert in (i<size());

void CORE_Object::outputPrint ( const tString message)
staticinherited

print on output

References null, and CORE_Object::print().

Referenced by CORE_Exception::CORE_Exception().

Here is the call graph for this function:

Here is the caller graph for this function:

static void CORE_String::parse ( const tString str,
unsigned char &  c 
)
inlinestatic

parse unsigned char c in str

References CORE_Integer::parseInt().

Referenced by readInteger(), readReal(), CORE_VectorReader::readVector(), and CORE_Array< T >::setValues().

Here is the call graph for this function:

Here is the caller graph for this function:

static void CORE_String::parse ( const tString str,
short int &  c 
)
inlinestatic

parse short c in str

References CORE_Integer::parseInt().

Here is the call graph for this function:

static void CORE_String::parse ( const tString str,
unsigned short int &  c 
)
inlinestatic

parse short c in str

References CORE_Integer::parseInt().

Here is the call graph for this function:

static void CORE_String::parse ( const tString str,
int &  c 
)
inlinestatic

parse int c in str

References CORE_Integer::parseInt().

Here is the call graph for this function:

static void CORE_String::parse ( const tString str,
long &  c 
)
inlinestatic

parse long c in str

References CORE_Integer::parseInt().

Here is the call graph for this function:

static void CORE_String::parse ( const tString str,
long long &  c 
)
inlinestatic

parse long long c in str

References CORE_Integer::parseInt().

Here is the call graph for this function:

static void CORE_String::parse ( const tString str,
unsigned int &  c 
)
inlinestatic

parse unsigned int c in str

References CORE_Integer::parseInt().

Here is the call graph for this function:

static void CORE_String::parse ( const tString str,
unsigned long &  c 
)
inlinestatic

parse unsigned long c in str

References CORE_Integer::parseInt().

Here is the call graph for this function:

static void CORE_String::parse ( const tString str,
unsigned long long &  c 
)
inlinestatic

parse unsigned long long c in str

References CORE_Integer::parseInt().

Here is the call graph for this function:

static void CORE_String::parse ( const tString str,
bool &  c 
)
inlinestatic

parse boolean c in str

References CORE_Integer::parseInt().

Here is the call graph for this function:

static void CORE_String::parse ( const tString str,
char &  c 
)
inlinestatic

parse char c in str

static void CORE_String::parse ( const tString str,
float &  c 
)
inlinestatic

parse float c in str

References CORE_Real::parseReal().

Here is the call graph for this function:

static void CORE_String::parse ( const tString str,
double &  c 
)
inlinestatic

parse double c in str

References CORE_Real::parseReal().

Here is the call graph for this function:

static void CORE_String::parse ( const tString str,
long double &  c 
)
inlinestatic

parse long double c in str

References CORE_Real::parseReal().

Here is the call graph for this function:

static void CORE_String::parse ( const tString str,
tString c 
)
inlinestatic

parse tString c in str

References tString.

static void CORE_String::parse ( const tString str,
tComplex c 
)
inlinestatic

parse tComplex c in str

References CORE_Complex::parseComplex(), and tComplex.

Here is the call graph for this function:

tString CORE_Object::pointer2String ( const void *  obj)
staticinherited

return the string represantation of a pointer

References tString.

Referenced by CORE_Object::CORE_Object(), CORE_Object::getIdentityString(), CORE_Object::getPointerAddress(), and CORE_Object::~CORE_Object().

Here is the caller graph for this function:

virtual void CORE_Object::print ( )
inlinevirtualinherited

print the class

References CORE_Object::toString().

Referenced by CORE_Object::outputPrint(), CORE_Out::print(), CORE_Object::print(), CORE_Out::printInt(), CORE_Out::println(), CORE_Out::printReal(), CORE_Out::printString(), and CORE_Out::setAction().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual ostream& CORE_Object::print ( ostream &  out) const
inlinevirtualinherited

print the class

References CORE_Object::print(), and CORE_Object::toString().

Here is the call graph for this function:

void CORE_Object::print ( const tString message)
virtualinherited

print the class

Reimplemented in CORE_Out.

References null, and CORE_Object::print().

Here is the call graph for this function:

void CORE_Object::print ( const tInteger str)
virtualinherited

print

References null.

void CORE_Object::print ( const tRelativeInteger str)
virtualinherited

print

References null.

void CORE_Object::print ( const tReal str)
virtualinherited

print

References null.

void CORE_Object::print ( const int &  str)
virtualinherited

print

References null.

static ostream& CORE_Object::print ( ostream &  out,
const tString message 
)
inlinestaticinherited

print the class

void CORE_Object::printObjectsInMemory ( )
staticinherited

print object in memory

References CORE_Object::getClassName(), CORE_Object::getSharedPointer(), and CORE_Object::mIsMemoryTesting.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

int CORE_String::readInteger ( const tString v)
static

read only integer characters

References parse(), and tString.

Here is the call graph for this function:

tReal CORE_String::readReal ( const tString v)
static

read only real characters if not a real return 0

References parse(), tBoolean, tReal, and tString.

Here is the call graph for this function:

void CORE_String::remove ( const tString::size_type &  from,
const tString::size_type &  to 
)
inline

remove all the chars in from & to

void CORE_String::remove ( const tString::size_type &  index)
inline

remove the char at index

void CORE_String::removeAll ( tString inOutStr,
const tString strToRemove 
)
static

remove the char at index

void CORE_String::replaceAll ( const tString strToReplace,
const tString str 
)
inline

replace all instances of strToReplace by str

Referenced by GPM_Object::turnBodyLineToText(), and GPM_Object::turnBodyTextToLine().

Here is the caller graph for this function:

void CORE_String::replaceAll ( tString inOutValue,
const tString strToReplace,
const tString str 
)
static

replace all instances of strToReplace by str

void CORE_String::replaceFirst ( const tString strToReplace,
const tString str 
)
inline

replace first instance of strToReplace by str

void CORE_String::replaceFirst ( tString inOutValue,
const tString strToReplace,
const tString str 
)
static

replace first instance of strToReplace by str

void CORE_String::replaceLast ( const tString strToReplace,
const tString str 
)
inline

replace last instance of strToReplace by str

void CORE_String::replaceLast ( tString inOutValue,
const tString strToReplace,
const tString str 
)
static

replace last instance of strToReplace by str

static void CORE_Object::setOutput ( ostream &  out)
inlinestaticinherited

set output

void CORE_String::setString ( const tString str)
inline

set the integer to i

void CORE_String::setString ( const char *  str)
inline

set the integer to i

void CORE_Object::setThis ( SP::CORE_Object  p)
inlineprotectedinherited

set this weak shared pointer called toDoAfterThis setting method

References CORE_Object::toDoAfterThisSetting().

Here is the call graph for this function:

virtual void CORE_Object::setType ( tString  type)
inlineprotectedvirtualinherited
static tBoolean CORE_String::string2Boolean ( const tString c)
inlinestatic

return the booleazn corresponding to string

Referenced by GPMG_GraphPanel::componentClicked(), GPM_Port::loadFromStream(), GPM_Variable::parse(), CORE_CommandLine::readOption(), and stringToBoolean().

Here is the caller graph for this function:

static tBoolean CORE_String::stringToBoolean ( const tString c)
inlinestatic

return the booleazn corresponding to string

References string2Boolean().

Here is the call graph for this function:

char * CORE_String::stringToCharArray ( const tString str)
static

turn the string into char array

the return value must be delete by delete[] function.

Referenced by toCharArray().

Here is the caller graph for this function:

static tString CORE_String::substring ( const tString str,
const tString::size_type &  from,
const tString::size_type &  to 
)
inlinestatic

return the string between from & to indices from index is included, to is not

tString CORE_String::substring ( const tString::size_type &  from,
const tString::size_type &  to 
) const
inline

return the string between from & to indices from index is included, to is not

tString CORE_String::substring ( const tString::size_type &  from) const
inline

return the string from index

char* CORE_String::toCharArray ( ) const
inline

turn the string into char array

References stringToCharArray().

Here is the call graph for this function:

virtual void CORE_Object::toDoAfterThisSetting ( )
inlineprotectedvirtualinherited
void CORE_String::tokenize ( const tString separator)
inline

tokenize the string with the separator

References tokenize().

Here is the call graph for this function:

void CORE_String::tokenize ( )

tokenize the string

References tString.

Referenced by tokenize().

Here is the caller graph for this function:

static void CORE_String::toLower ( tString s)
inlinestatic

to lower

void CORE_String::toLower ( )
inline

turn the string to lower case

Referenced by GPM_ClassFactory::NewInstance(), GPM_ModelClassFactory::NewInstance(), GPM_Graph::newInstance(), GPM_PortGraph::newInstance(), and toLower().

Here is the caller graph for this function:

static tString CORE_String::toLower ( const tString str)
inlinestatic

turn the string to upper case

References toLower(), and tString.

Here is the call graph for this function:

tString CORE_String::toString ( ) const
inlinevirtual
static tString CORE_String::toString ( const tString str,
const int &  len 
)
inlinestatic

return the string associated to the string

Returns
the string associated to the string

References tString.

static tString CORE_String::toString ( const tFlag c)
inlinestatic

return the string representation of short c

References CORE_Integer::toString().

Here is the call graph for this function:

static tString CORE_String::toString ( const float &  c)
inlinestatic

return the string representation of float c

References CORE_Real::toString().

Here is the call graph for this function:

static tString CORE_String::toString ( const double &  c)
inlinestatic

return the string representation of double c

References CORE_Real::toString().

Here is the call graph for this function:

static tString CORE_String::toString ( const long double &  c)
inlinestatic

return the string representation of long double c

References CORE_Real::toString().

Here is the call graph for this function:

static tString CORE_String::toString ( const int &  c)
inlinestatic

return the string representation of int c

References CORE_Integer::toString().

Here is the call graph for this function:

static tString CORE_String::toString ( const long &  c)
inlinestatic

return the string representation of long c

References CORE_Integer::toString().

Here is the call graph for this function:

static tString CORE_String::toString ( const long long &  c)
inlinestatic

return the string representation of long long c

References CORE_Integer::toString().

Here is the call graph for this function:

static tString CORE_String::toString ( const unsigned int &  c)
inlinestatic

return the string representation of unsigned int c

References CORE_Integer::toString().

Here is the call graph for this function:

static tString CORE_String::toString ( const unsigned long &  c)
inlinestatic

return the string representation of c

References CORE_Integer::toString().

Here is the call graph for this function:

static tString CORE_String::toString ( const unsigned long long &  c)
inlinestatic

return the string representation of unsigned long long c

References CORE_Integer::toString().

Here is the call graph for this function:

static tString CORE_String::toString ( const tBoolean c)
inlinestatic

return the string representation of boolean c

References toString().

Here is the call graph for this function:

static tString CORE_String::toString ( tCharacter  c)
inlinestatic

return the string representation of char c

References tString.

static tString CORE_String::toString ( tComplex  c)
inlinestatic

return the string representation of complex c

References CORE_Complex::toString().

Here is the call graph for this function:

static tString CORE_String::toString ( tString  c)
inlinestatic

return the string representation of string c

static tString CORE_String::toString ( const int &  n,
const long double *  c 
)
inlinestatic

return the string representation of long double c

References CORE_Real::toString(), and tString.

Here is the call graph for this function:

static void CORE_String::toUpper ( tString s)
inlinestatic

to upper

void CORE_String::toUpper ( )
inline

turn the string to upper case

Referenced by toUpper().

Here is the caller graph for this function:

static tString CORE_String::toUpper ( const tString str)
inlinestatic

turn the string to upper case

References toUpper(), and tString.

Here is the call graph for this function:

void CORE_String::trim ( tString str)
static

trim a string

void CORE_String::trim ( )
inline
void CORE_String::truncate ( tString text,
const int &  nLines,
const int &  nCharsByLine 
)
static

truncate the message with nLines of nChars

Member Data Documentation

tBoolean CORE_Object::mIsMemoryTesting =false
staticinherited

indicator to store all classes created and deleted only for debuging version

Referenced by CORE_Object::CORE_Object(), main(), CORE_Object::printObjectsInMemory(), and CORE_Object::~CORE_Object().


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