Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Text Class Reference

#include <Text.h>

List of all members.

Public Member Functions

 Text ()
 Text (char c)
 Text (const char *s)
 Text (const char *s, int len)
 Text (char c, int len)
 Text (const Text &s)
 ~Text ()
bool isSensitive () const
void setSensitive (bool s)
int compare (const char *s) const
int compare (const Text &s) const
Textoperator= (const char *s)
Textoperator= (const Text &s)
Textappend (char c)
Textappend (const char *s)
Textappend (const Text &s)
Text operator+ (char c)
Text operator+ (const char *s)
Text operator+ (const Text &s)
Textoperator+= (char c)
Textoperator+= (const char *s)
Textoperator+= (const Text &s)
char operator[] (int index) const
char operator() (int index) const
char & operator[] (int index)
char & operator() (int index)
Text operator() (int start, int len) const
int length () const
unsigned hash () const
const char * data () const
 operator const char * () const
bool contains (char c) const
bool contains (const char *s) const
bool containsAnyOf (const char *charSet) const
int indexOf (char c) const
int indexOf (const char *s) const
void toLower ()
void toUpper ()
Text substring (int start, int length)
Text trim ()
Text replace (const char *pattern, const char *substitution)

Static Public Member Functions

static const char * TYPENAME ()

Detailed Description

Definition at line 55 of file Text.h.


Constructor & Destructor Documentation

Text::Text ( )

Definition at line 170 of file Text.cpp.

Text::Text ( char  c)

Definition at line 177 of file Text.cpp.

Text::Text ( const char *  s)

Definition at line 195 of file Text.cpp.

Text::Text ( const char *  s,
int  len 
)

Definition at line 211 of file Text.cpp.

Text::Text ( char  c,
int  len 
)

Definition at line 227 of file Text.cpp.

Text::Text ( const Text s)

Definition at line 243 of file Text.cpp.

Text::~Text ( )

Definition at line 250 of file Text.cpp.


Member Function Documentation

Text & Text::append ( char  c)

Definition at line 364 of file Text.cpp.

Text & Text::append ( const char *  s)

Definition at line 395 of file Text.cpp.

Text & Text::append ( const Text s)

Definition at line 425 of file Text.cpp.

int Text::compare ( const char *  s) const
inline

Definition at line 134 of file Text.h.

int Text::compare ( const Text s) const
inline

Definition at line 142 of file Text.h.

bool Text::contains ( char  c) const

Definition at line 545 of file Text.cpp.

bool Text::contains ( const char *  s) const

Definition at line 565 of file Text.cpp.

bool Text::containsAnyOf ( const char *  charSet) const

Definition at line 587 of file Text.cpp.

const char* Text::data ( ) const
inline

Definition at line 105 of file Text.h.

unsigned Text::hash ( ) const
inline

Definition at line 103 of file Text.h.

int Text::indexOf ( char  c) const

Definition at line 609 of file Text.cpp.

int Text::indexOf ( const char *  s) const

Definition at line 633 of file Text.cpp.

bool Text::isSensitive ( ) const

Definition at line 352 of file Text.cpp.

int Text::length ( ) const
inline

Definition at line 102 of file Text.h.

Text::operator const char * ( ) const
inline

Definition at line 106 of file Text.h.

char Text::operator() ( int  index) const

Definition at line 492 of file Text.cpp.

char & Text::operator() ( int  index)

Definition at line 511 of file Text.cpp.

Text Text::operator() ( int  start,
int  len 
) const

Definition at line 518 of file Text.cpp.

Text Text::operator+ ( char  c)

Definition at line 285 of file Text.cpp.

Text Text::operator+ ( const char *  s)

Definition at line 308 of file Text.cpp.

Text Text::operator+ ( const Text s)

Definition at line 330 of file Text.cpp.

Text& Text::operator+= ( char  c)
inline

Definition at line 89 of file Text.h.

Text& Text::operator+= ( const char *  s)
inline

Definition at line 90 of file Text.h.

Text& Text::operator+= ( const Text s)
inline

Definition at line 91 of file Text.h.

Text & Text::operator= ( const char *  s)

Definition at line 259 of file Text.cpp.

Text & Text::operator= ( const Text s)

Definition at line 275 of file Text.cpp.

char Text::operator[] ( int  index) const

Definition at line 481 of file Text.cpp.

char & Text::operator[] ( int  index)

Definition at line 498 of file Text.cpp.

Text Text::replace ( const char *  pattern,
const char *  substitution 
)

Definition at line 727 of file Text.cpp.

void Text::setSensitive ( bool  s)

Definition at line 358 of file Text.cpp.

Text Text::substring ( int  start,
int  length 
)

Definition at line 683 of file Text.cpp.

void Text::toLower ( )

Definition at line 655 of file Text.cpp.

void Text::toUpper ( )

Definition at line 669 of file Text.cpp.

Text Text::trim ( )

Definition at line 709 of file Text.cpp.

static const char* Text::TYPENAME ( )
inlinestatic

Definition at line 58 of file Text.h.


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