ScummVM API documentation
Titanic::TTstring Class Reference

Public Member Functions

 TTstring (const char *str)
 
 TTstring (const CString &str)
 
 TTstring (const TTstring &str)
 
void operator= (const TTstring &str)
 
void operator= (const CString &str)
 
void operator= (const char *str)
 
TTstringoperator+= (const char *str)
 
TTstringoperator+= (const TTstring &str)
 
TTstringoperator+= (char c)
 
bool operator== (const TTstring &str) const
 
bool operator== (const char *str) const
 
const char & operator[] (int index)
 
bool empty () const
 
char firstChar () const
 
char lastChar () const
 
int size () const
 
void deleteLastChar ()
 
bool hasPrefix (const CString &str) const
 
bool hasPrefix (const char *str) const
 
bool hasSuffix (const CString &str) const
 
bool hasSuffix (const char *str) const
 
bool contains (const char *s) const
 
TTstringcopy () const
 
bool isValid () const
 
TTstringStatus getStatus () const
 
const char * c_str () const
 
 operator const char * () const
 
char charAt (int index) const
 
void save (SimpleFile *file) const
 
bool compareAt (int index, const char *str) const
 
TTstring tokenize (const char *delim)
 
int deletePrefix (int count)
 
int deleteSuffix (int count)
 

Member Function Documentation

◆ copy()

TTstring* Titanic::TTstring::copy ( ) const
inline

Create a new copy of the string

◆ isValid()

bool Titanic::TTstring::isValid ( ) const
inline

Returns true if the string is valid

◆ getStatus()

TTstringStatus Titanic::TTstring::getStatus ( ) const
inline

Get the status of the string

◆ c_str()

const char* Titanic::TTstring::c_str ( ) const
inline

Get a char * pointer to the string data

◆ operator const char *()

Titanic::TTstring::operator const char * ( ) const
inline

Automatic operator to convert to a const char *

◆ charAt()

char Titanic::TTstring::charAt ( int  index) const
inline

Get a character at a specified index

◆ save()

void Titanic::TTstring::save ( SimpleFile file) const

Save the sring to a passed file

◆ compareAt()

bool Titanic::TTstring::compareAt ( int  index,
const char *  str 
) const
inline

Compare a substring within the string at the specified index

◆ tokenize()

TTstring Titanic::TTstring::tokenize ( const char *  delim)

Split off everything in the string until the first occurrence of any specified delimiter character

◆ deletePrefix()

int Titanic::TTstring::deletePrefix ( int  count)

Delets a specififed number of characters from the start of the string

◆ deleteSuffix()

int Titanic::TTstring::deleteSuffix ( int  count)

Delets a specififed number of characters from the end of the string


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