Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

RayGina::CORE::RString Class Reference

#include <RString.hxx>

List of all members.

Public Member Functions

 RString ()
 creates and empty string
 ~RString ()
 creates and empty string
 RString (const RString &oldString)
 creates a string from the const char*
 RString (const char *const_string)
 create a RString from a standard const char*
 RString (const RChar *text, RUInt newLength)
 RString (const char chr)
 RString (const RInt value, const unsigned int base=10)
 RString (const RUInt value, const unsigned int base=10)
 RString (const double value, const RUInt32 afterCommaDigits=8)
const RUInt length () const
 returns the length of the string
const RChar getCharacter (const RUInt n) const
 returns the character at the n-th positiom, starts from 0
void setCharacter (const RUInt n, const RChar newChar) const
 sets the n-th character in the string, starts from 0
const RChar operator[] (RUInt n) const
const RChar at (RUInt n) const
void operator= (const RString &b)
void operator+= (const RString &b)
void operator+= (const int b)
void operator+= (const double b)
const RBool empty () const
const RUInt c_length () const
const char * c_str () const
const RUInt substr (const RUInt sstart, const RUInt slength=0)
RString getSubstr (const RUInt sstart, const RUInt slength=0) const
const RInt find_last_of (const RString search_string) const
const RInt find_last_not_of (const RString search_string) const
const RInt find_first_of (const RString search_string) const
const RInt find_first_not_of (const RString search_string) const
const RInt find (const RString search_string, const RUInt startPos=0)
const RInt rfind (const RString search_string, const RUInt startPos=0)
const RUInt erase (const RUInt startPos=0, const RUInt numberOfCharacters=0)
const RUInt toLowercase (const RUInt startPos=0, const RUInt numberOfCharacters=0)
const RString getToLowercase (const RUInt startPos=0, const RUInt numberOfCharacters=0) const
const RUInt toUppercase (const RUInt startPos=0, const RUInt numberOfCharacters=0)
const RString getToUppercase (const RUInt startPos=0, const RUInt numberOfCharacters=0) const
void print () const
void println () const
const RUInt ltrim (const RString charlist=RString(" \t\n\r\0\x0B", 6))
const RUInt rtrim (const RString charlist=RString(" \t\n\r\0\x0B", 6))
const RUInt trim (const RString charlist=RString(" \t\n\r\0\x0B", 6))
const RString getLtrim (const RString charlist=RString(" \t\n\r\0\x0B", 6)) const
const RString getRtrim (const RString charlist=RString(" \t\n\r\0\x0B", 6)) const
const RString getTrim (const RString charlist=RString(" \t\n\r\0\x0B", 6)) const

Private Member Functions

RChargetTextPointer (const RUInt index=0) const
 return the pointer to the text data
void initConstChar (const char *const_string)
 create a RString from a standard const char*
void initRString (const RString &oldString)
 create a RString from a standard const char*
const bool setLength (const RUInt newLength)

Private Attributes

RUInt _length
RChar_text


Constructor & Destructor Documentation

RayGina::CORE::RString::RString  )  [inline]
 

creates and empty string

Definition at line 109 of file RString.hxx.

RayGina::CORE::RString::~RString  )  [inline]
 

creates and empty string

Definition at line 112 of file RString.hxx.

RayGina::CORE::RString::RString const RString oldString  )  [inline]
 

creates a string from the const char*

Definition at line 117 of file RString.hxx.

RayGina::CORE::RString::RString const char *  const_string  )  [inline]
 

create a RString from a standard const char*

Definition at line 122 of file RString.hxx.

RayGina::CORE::RString::RString const RChar text,
RUInt  newLength
[inline]
 

Definition at line 126 of file RString.hxx.

RayGina::CORE::RString::RString const char  chr  )  [inline]
 

Definition at line 141 of file RString.hxx.

RayGina::CORE::RString::RString const RInt  value,
const unsigned int  base = 10
[inline]
 

Definition at line 156 of file RString.hxx.

RayGina::CORE::RString::RString const RUInt  value,
const unsigned int  base = 10
[inline]
 

Definition at line 240 of file RString.hxx.

RayGina::CORE::RString::RString const double  value,
const RUInt32  afterCommaDigits = 8
[inline]
 

Definition at line 309 of file RString.hxx.


Member Function Documentation

const RChar RayGina::CORE::RString::at RUInt  n  )  const [inline]
 

Definition at line 362 of file RString.hxx.

const RUInt RayGina::CORE::RString::c_length  )  const [inline]
 

Definition at line 414 of file RString.hxx.

const char* RayGina::CORE::RString::c_str  )  const [inline]
 

Definition at line 417 of file RString.hxx.

const RBool RayGina::CORE::RString::empty  )  const [inline]
 

Definition at line 410 of file RString.hxx.

const RUInt RayGina::CORE::RString::erase const RUInt  startPos = 0,
const RUInt  numberOfCharacters = 0
[inline]
 

Definition at line 566 of file RString.hxx.

const RInt RayGina::CORE::RString::find const RString  search_string,
const RUInt  startPos = 0
[inline]
 

Definition at line 523 of file RString.hxx.

const RInt RayGina::CORE::RString::find_first_not_of const RString  search_string  )  const [inline]
 

Definition at line 508 of file RString.hxx.

const RInt RayGina::CORE::RString::find_first_of const RString  search_string  )  const [inline]
 

Definition at line 495 of file RString.hxx.

const RInt RayGina::CORE::RString::find_last_not_of const RString  search_string  )  const [inline]
 

Definition at line 480 of file RString.hxx.

const RInt RayGina::CORE::RString::find_last_of const RString  search_string  )  const [inline]
 

Definition at line 467 of file RString.hxx.

const RChar RayGina::CORE::RString::getCharacter const RUInt  n  )  const [inline]
 

returns the character at the n-th positiom, starts from 0

returns the character at the n-th position it starts from 0 to length - 1

There is a check for n >= length when you have RAYGINADEBUG defined!

Definition at line 326 of file RString.hxx.

const RString RayGina::CORE::RString::getLtrim const RString  charlist = RString(" \t\n\r\0\x0B",6)  )  const [inline]
 

Definition at line 754 of file RString.hxx.

const RString RayGina::CORE::RString::getRtrim const RString  charlist = RString(" \t\n\r\0\x0B",6)  )  const [inline]
 

Definition at line 777 of file RString.hxx.

RString RayGina::CORE::RString::getSubstr const RUInt  sstart,
const RUInt  slength = 0
const [inline]
 

Definition at line 455 of file RString.hxx.

RChar* RayGina::CORE::RString::getTextPointer const RUInt  index = 0  )  const [inline, private]
 

return the pointer to the text data

Definition at line 19 of file RString.hxx.

const RString RayGina::CORE::RString::getToLowercase const RUInt  startPos = 0,
const RUInt  numberOfCharacters = 0
const [inline]
 

Definition at line 625 of file RString.hxx.

const RString RayGina::CORE::RString::getToUppercase const RUInt  startPos = 0,
const RUInt  numberOfCharacters = 0
const [inline]
 

Definition at line 651 of file RString.hxx.

const RString RayGina::CORE::RString::getTrim const RString  charlist = RString(" \t\n\r\0\x0B",6)  )  const [inline]
 

Definition at line 800 of file RString.hxx.

void RayGina::CORE::RString::initConstChar const char *  const_string  )  [inline, private]
 

create a RString from a standard const char*

get the length

Definition at line 24 of file RString.hxx.

void RayGina::CORE::RString::initRString const RString oldString  )  [inline, private]
 

create a RString from a standard const char*

Definition at line 67 of file RString.hxx.

const RUInt RayGina::CORE::RString::length  )  const [inline]
 

returns the length of the string

Definition at line 316 of file RString.hxx.

const RUInt RayGina::CORE::RString::ltrim const RString  charlist = RString(" \t\n\r\0\x0B",6)  )  [inline]
 

Definition at line 668 of file RString.hxx.

void RayGina::CORE::RString::operator+= const double  b  )  [inline]
 

Definition at line 406 of file RString.hxx.

void RayGina::CORE::RString::operator+= const int  b  )  [inline]
 

Definition at line 402 of file RString.hxx.

void RayGina::CORE::RString::operator+= const RString b  )  [inline]
 

Definition at line 377 of file RString.hxx.

void RayGina::CORE::RString::operator= const RString b  )  [inline]
 

Definition at line 372 of file RString.hxx.

const RChar RayGina::CORE::RString::operator[] RUInt  n  )  const [inline]
 

Definition at line 352 of file RString.hxx.

void RayGina::CORE::RString::print  )  const [inline]
 

Definition at line 657 of file RString.hxx.

void RayGina::CORE::RString::println  )  const [inline]
 

Definition at line 662 of file RString.hxx.

const RInt RayGina::CORE::RString::rfind const RString  search_string,
const RUInt  startPos = 0
[inline]
 

Definition at line 543 of file RString.hxx.

const RUInt RayGina::CORE::RString::rtrim const RString  charlist = RString(" \t\n\r\0\x0B",6)  )  [inline]
 

Definition at line 692 of file RString.hxx.

void RayGina::CORE::RString::setCharacter const RUInt  n,
const RChar  newChar
const [inline]
 

sets the n-th character in the string, starts from 0

sets the character at the n-th position it starts from 0 to length - 1

There is a check for n >= length when you have RAYGINADEBUG defined!

Definition at line 342 of file RString.hxx.

const bool RayGina::CORE::RString::setLength const RUInt  newLength  )  [inline, private]
 

Definition at line 89 of file RString.hxx.

const RUInt RayGina::CORE::RString::substr const RUInt  sstart,
const RUInt  slength = 0
[inline]
 

Definition at line 421 of file RString.hxx.

const RUInt RayGina::CORE::RString::toLowercase const RUInt  startPos = 0,
const RUInt  numberOfCharacters = 0
[inline]
 

Definition at line 605 of file RString.hxx.

const RUInt RayGina::CORE::RString::toUppercase const RUInt  startPos = 0,
const RUInt  numberOfCharacters = 0
[inline]
 

Definition at line 631 of file RString.hxx.

const RUInt RayGina::CORE::RString::trim const RString  charlist = RString(" \t\n\r\0\x0B",6)  )  [inline]
 

Definition at line 716 of file RString.hxx.


Member Data Documentation

RUInt RayGina::CORE::RString::_length [private]
 

Definition at line 15 of file RString.hxx.

RChar* RayGina::CORE::RString::_text [private]
 

Definition at line 16 of file RString.hxx.


The documentation for this class was generated from the following file:
Generated on Sun Dec 2 17:01:10 2007 for rayGina by  doxygen 1.3.9.1