class AString

a simple string class that manages its own storage

Inheritance:


public members:

AString ()
default constructor
AString (const char*)
type conversion constructor
AString (const AString &)
copy constructor
int chunksize () const
what size hunks is memory grabbed in
void chunksize (const int new_size)
change size of memory hunks
int empty () const
is the string empty or NULL
int length () const
how many chars in AString
const char* className () const
Class name
AString & operator= (const AString &)
assignment
AString & operator= (const char*)
assignment
const char& operator[] (const long i)const
return ith char, i < length()
AString & operator+= (const AString &)
concatenation
AString & operator+= (const char*)
concatenation
operator const char* () const
conversion function
AString asLowerCase () const
convert to lower cases
friend AString operator+ (const AString &, const AString &)
concatenation
friend AString operator+ (const AString &, const char*)
concatenation
friend AString operator+ (const char*, const AString &)
concatenation
friend int operator== (const AString &, const AString &)
equality
friend int operator== (const AString &, const char*)
equality
friend int operator== (const char*, const AString &)
equality
friend int operator!= (const AString &, const char*)
inequality
friend int operator!= (const char*, const AString &)
inequality
friend int operator> (const AString &, const AString &)
greater than
friend int operator> (const AString &, const char*)
greater than
friend int operator> (const char*, const AString &)
greater than
friend int operator>= (const AString &, const AString &)
greater than or equal to
friend int operator>= (const AString &, const char*)
greater than or equal to
friend int operator>= (const char*, const AString &)
greater than or equal to
friend int operator< (const AString &, const AString &)
less than
friend int operator< (const AString &, const char*)
less than
friend int operator< (const char*, const AString &)
less than
friend int operator<= (const AString &, const AString &)
less than or equal to
friend int operator<= (const AString &, const char*)
less than or equal to
friend int operator<= (const char*, const AString &)
less than or equal to
friend ostream& operator<< (ostream&, const AString &)
stream I/O
friend istream& operator>> (istream&, AString &)
stream I/O

protected members:

char* contents
the internal string
AString (const char)
type conversion constructor
int compare (const AString &) const
int compare (const char*) const
void concat (const AString &)
void concat (const char*)
void concat (const char&)
void copy (const AString &)
void copy (const char*)
void copy (const char&)
int isNull () const

Documentation

This is a simple string class that manages its own storage. It allows concatenation of strings using + and +=, assignment using =, and equality tests using ==.

this class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling