TSLSimpleString Class Reference

Detailed Description

This class is a simplified form of the STL string class. It is present so that the API of MapLink is not dependent upon the STL at all. Using STL in the API would cause problems when client applications were using a different underlying compiler or patch level than that used by MapLink - for example Visual Studio 6 vs Visual Studio .NET 2005, 2008, 2010.

Public Member Functions

 TSLSimpleString ()
 
 TSLSimpleString (const char *value)
 
 TSLSimpleString (const TSLSimpleString &rhs)
 
 TSLSimpleString (const char *s1, int len1, const char *s2, int len2)
 
 ~TSLSimpleString ()
 
bool operator== (const char *rhs) const
 
bool operator!= (const char *rhs) const
 
bool operator< (const char *rhs) const
 
TSLSimpleStringoperator+= (const char *rhs)
 
TSLSimpleStringoperator= (const char *rhs)
 
TSLSimpleStringoperator= (const TSLSimpleString &rhs)
 
 operator const char * () const
 
int length () const
 
void lowerCase ()
 
void upperCase ()
 
bool empty () const
 
const char * c_str () const
 
size_t size () const
 
void append (const char *data, int len)
 
bool operator> (const char *rhs) const
 
bool operator<= (const char *rhs) const
 
bool operator>= (const char *rhs) const
 
int compare (const TSLSimpleString &str) const
 
int compare (const char *str) const
 

Constructor & Destructor Documentation

◆ TSLSimpleString() [1/4]

TSLSimpleString::TSLSimpleString ( )
inline

Basic constructor

Class TSLSimpleString

◆ TSLSimpleString() [2/4]

TSLSimpleString::TSLSimpleString ( const char *  value)
inline

construct for a char *

◆ TSLSimpleString() [3/4]

TSLSimpleString::TSLSimpleString ( const TSLSimpleString rhs)
inline

Copy constructor

◆ TSLSimpleString() [4/4]

TSLSimpleString::TSLSimpleString ( const char *  s1,
int  len1,
const char *  s2,
int  len2 
)
inline

◆ ~TSLSimpleString()

TSLSimpleString::~TSLSimpleString ( )
inline

Destructor

Member Function Documentation

◆ append()

void TSLSimpleString::append ( const char *  data,
int  len 
)
inline

◆ c_str()

const char * TSLSimpleString::c_str ( ) const
inline

◆ compare() [1/2]

int TSLSimpleString::compare ( const char *  str) const
inline

◆ compare() [2/2]

int TSLSimpleString::compare ( const TSLSimpleString str) const
inline

◆ empty()

bool TSLSimpleString::empty ( ) const
inline

Utility function to check if the string is empty;

◆ length()

int TSLSimpleString::length ( ) const
inline

◆ lowerCase()

void TSLSimpleString::lowerCase ( )
inline

Converts the SimpleString contents into a lower case version

◆ operator const char *()

TSLSimpleString::operator const char * ( ) const
inline

◆ operator!=()

bool TSLSimpleString::operator!= ( const char *  rhs) const
inline

equality operator

◆ operator+=()

TSLSimpleString & TSLSimpleString::operator+= ( const char *  rhs)
inline

Additive operator

◆ operator<()

bool TSLSimpleString::operator< ( const char *  rhs) const
inline

less than operator

◆ operator<=()

bool TSLSimpleString::operator<= ( const char *  rhs) const
inline

◆ operator=() [1/2]

TSLSimpleString & TSLSimpleString::operator= ( const char *  rhs)
inline

Assignment operator

◆ operator=() [2/2]

TSLSimpleString & TSLSimpleString::operator= ( const TSLSimpleString rhs)
inline

Assignment operator

◆ operator==()

bool TSLSimpleString::operator== ( const char *  rhs) const
inline

equality operator

◆ operator>()

bool TSLSimpleString::operator> ( const char *  rhs) const
inline

◆ operator>=()

bool TSLSimpleString::operator>= ( const char *  rhs) const
inline

◆ size()

size_t TSLSimpleString::size ( ) const
inline

◆ upperCase()

void TSLSimpleString::upperCase ( )
inline

Converts the simple string contents into an upper case version