aString Class Reference

#include <Astring.h>

Collaboration diagram for aString:

Collaboration graph
[legend]

List of all members.

Public Types

enum  end {
  left, right, both, left,
  right, both
}
enum  end {
  left, right, both, left,
  right, both
}

Public Member Functions

char EndDelimiter (void)
char startDelimiter (void)
 aString ()
 aString (const char *)
 aString (const string &input)
 aString (const aString &input)
 ~aString ()
const char * str () const
const char * c_str () const
char * remainder () const
 operator char * () const
 operator string () const
void attach (char *input)
aStringoperator= (char *input)
aStringoperator= (const char *input)
aStringoperator= (const aString &input)
aStringoperator= (const string &input)
aStringsubString (const char *input, int start)
aStringsubString (const char *input, int start, int end)
aStringoperator+= (const char *input)
aStringoperator+= (char *input)
aStringoperator+= (char input)
int Size (void) const
int length (void) const
aStringsetSize (int newSize)
aStringreplaceFoundWith (const char *find, const char replace, const char *search=NULL)
aStringreplaceFoundWith (const char *find, const char *replace)
aStringreplaceAt (unsigned int pos, char *replace)
aStringremoveChars (const char *find)
aStringencapsulateIn (const char *boundary, const char *end=NULL)
aStringupperS (void)
aStringlowerS (void)
aStringupper (void)
aStringlower (void)
aStringtrim (aString::end end=right)
bool matchIn (const char *input) const
char * find (const char *input) const
bool matchesStartOf (const char *input) const
bool startOfMatches (const char *input) const
bool match (const char *input) const
bool operator== (aString &input)
bool operator== (const char *input)
char * slide (int iAmount=1)
char * token (const char *separator, aString *delimiterHolder=NULL)
void tokenReset (void)
int tokenPosition (void)
int remainderPosition (void)
char * currentToken (void)
char * backTrack (void)
bool isNumber (void)
aStringexclusive (char *input)
aStringexclusive (char low, char high)
aStringdeHexify (char hexToken)
char EndDelimiter (void)
char startDelimiter (void)
 aString ()
 aString (const char *)
 aString (const string &input)
 aString (const aString &input)
 ~aString ()
const char * str () const
const char * c_str () const
char * remainder () const
 operator char * () const
 operator string () const
void attach (char *input)
aStringoperator= (char *input)
aStringoperator= (const char *input)
aStringoperator= (const aString &input)
aStringoperator= (const string &input)
aStringsubString (const char *input, int start)
aStringsubString (const char *input, int start, int end)
aStringoperator+= (const char *input)
aStringoperator+= (char *input)
aStringoperator+= (char input)
int Size (void) const
int length (void) const
aStringsetSize (int newSize)
aStringreplaceFoundWith (const char *find, const char replace, const char *search=NULL)
aStringreplaceFoundWith (const char *find, const char *replace)
aStringreplaceAt (unsigned int pos, char *replace)
aStringremoveChars (const char *find)
aStringencapsulateIn (const char *boundary, const char *end=NULL)
aStringupperS (void)
aStringlowerS (void)
aStringupper (void)
aStringlower (void)
aStringtrim (aString::end end=right)
bool matchIn (const char *input) const
char * find (const char *input) const
bool matchesStartOf (const char *input) const
bool startOfMatches (const char *input) const
bool match (const char *input) const
bool operator== (aString &input)
bool operator== (const char *input)
char * slide (int iAmount=1)
char * token (const char *separator, aString *delimiterHolder=NULL)
void tokenReset (void)
int tokenPosition (void)
int remainderPosition (void)
char * currentToken (void)
char * backTrack (void)
bool isNumber (void)
aStringexclusive (char *input)
aStringexclusive (char low, char high)
aStringdeHexify (char hexToken)

Protected Member Functions

int oneToken (const char *separator, aString *delimiterHolder)
bool allocate (int sizeRequseted, bool bCopy=false)
int oneToken (const char *separator, aString *delimiterHolder)
bool allocate (int sizeRequseted, bool bCopy=false)

Private Types

enum  { incSize = 512 }
enum  { incSize = 512 }

Private Attributes

char * buffer
char endDelimiter
int size
char * tokened
char * tokenleft
char * pchToken
pointerVector< char > allTokens
char * buffer
char * tokened
char * tokenleft
char * pchToken


Detailed Description

Definition at line 28 of file Astring.h.


Member Enumeration Documentation

Enumerator:
left 
right 
both 
left 
right 
both 

Definition at line 34 of file Astring.h.

anonymous enum [private]

Enumerator:
incSize 

Definition at line 250 of file Astring.h.

Enumerator:
left 
right 
both 
left 
right 
both 

Definition at line 34 of file Astring.h.

anonymous enum [private]

Enumerator:
incSize 

Definition at line 250 of file Astring.h.


Constructor & Destructor Documentation

aString::aString (  ) 

Definition at line 26 of file Astring.cpp.

aString::aString ( const char *  input  ) 

Definition at line 39 of file Astring.cpp.

References allocate(), and buffer.

aString::aString ( const string &  input  ) 

Definition at line 55 of file Astring.cpp.

References allocate(), and buffer.

aString::aString ( const aString input  ) 

Definition at line 72 of file Astring.cpp.

References allocate(), buffer, length(), and str().

aString::~aString (  )  [inline]

Definition at line 60 of file Astring.h.

References buffer, and tokened.

aString::aString (  ) 

aString::aString ( const char *   ) 

aString::aString ( const string &  input  ) 

aString::aString ( const aString input  ) 

aString::~aString (  )  [inline]

Definition at line 60 of file Astring.h.

References buffer, and tokened.


Member Function Documentation

char aString::EndDelimiter ( void   )  [inline]

Definition at line 38 of file Astring.h.

References endDelimiter.

char aString::startDelimiter ( void   ) 

Definition at line 824 of file Astring.cpp.

References buffer, length(), and tokenPosition().

const char* aString::str (  )  const [inline]

const char* aString::c_str (  )  const [inline]

char* aString::remainder (  )  const [inline]

Definition at line 73 of file Astring.h.

References tokenleft.

Referenced by cgiEnvironment::cgiEnvironment(), and cgiInput::set().

aString::operator char * (  )  const [inline]

Definition at line 77 of file Astring.h.

References buffer.

aString::operator string (  )  const [inline]

Definition at line 81 of file Astring.h.

References buffer.

void aString::attach ( char *  input  ) 

Definition at line 164 of file Astring.cpp.

References buffer, and size.

aString & aString::operator= ( char *  input  ) 

Definition at line 89 of file Astring.cpp.

aString & aString::operator= ( const char *  input  ) 

Definition at line 96 of file Astring.cpp.

References allocate(), buffer, size, and tokenReset().

aString & aString::operator= ( const aString input  ) 

Definition at line 122 of file Astring.cpp.

References allocate(), buffer, length(), size, str(), and tokenReset().

aString & aString::operator= ( const string &  input  ) 

Definition at line 114 of file Astring.cpp.

References c_str().

aString & aString::subString ( const char *  input,
int  start 
)

Definition at line 257 of file Astring.cpp.

aString & aString::subString ( const char *  input,
int  start,
int  end 
)

Definition at line 268 of file Astring.cpp.

References allocate(), and buffer.

aString & aString::operator+= ( const char *  input  ) 

Definition at line 178 of file Astring.cpp.

References allocate(), and buffer.

aString & aString::operator+= ( char *  input  ) 

Definition at line 205 of file Astring.cpp.

aString & aString::operator+= ( char  input  ) 

Definition at line 210 of file Astring.cpp.

int aString::Size ( void   )  const [inline]

Definition at line 111 of file Astring.h.

References size.

int aString::length ( void   )  const [inline]

aString & aString::setSize ( int  newSize  ) 

Definition at line 286 of file Astring.cpp.

References allocate().

Referenced by cgiInput::set().

aString & aString::replaceFoundWith ( const char *  find,
const char  replace,
const char *  search = NULL 
)

Definition at line 297 of file Astring.cpp.

References buffer.

Referenced by cgiCookie::cgiCookie(), cgiCalendar::fillDays(), cgiCookie::set(), and cgiInput::set().

aString & aString::replaceFoundWith ( const char *  find,
const char *  replace 
)

Definition at line 330 of file Astring.cpp.

References allocate(), buffer, and size.

aString & aString::replaceAt ( unsigned int  pos,
char *  replace 
)

Definition at line 393 of file Astring.cpp.

References buffer, and size.

aString & aString::removeChars ( const char *  find  ) 

Definition at line 414 of file Astring.cpp.

References buffer, and size.

aString & aString::encapsulateIn ( const char *  boundary,
const char *  end = NULL 
)

Definition at line 435 of file Astring.cpp.

References buffer, and size.

aString & aString::upperS ( void   ) 

Definition at line 218 of file Astring.cpp.

References buffer.

aString & aString::lowerS ( void   ) 

Definition at line 225 of file Astring.cpp.

References buffer.

aString & aString::upper ( void   ) 

aString & aString::lower ( void   ) 

Definition at line 244 of file Astring.cpp.

References buffer, and size.

Referenced by cgiEnvironment::cgiEnvironment().

aString & aString::trim ( aString::end  end = right  ) 

Definition at line 452 of file Astring.cpp.

References both, buffer, left, right, and size.

Referenced by cgiCookie::cgiCookie().

bool aString::matchIn ( const char *  input  )  const

Definition at line 533 of file Astring.cpp.

References buffer, and size.

char * aString::find ( const char *  input  )  const

Definition at line 508 of file Astring.cpp.

References buffer, and size.

bool aString::matchesStartOf ( const char *  input  )  const

Definition at line 561 of file Astring.cpp.

References buffer, length(), and size.

bool aString::startOfMatches ( const char *  input  )  const

Definition at line 585 of file Astring.cpp.

References buffer, and length().

bool aString::match ( const char *  input  )  const

Definition at line 610 of file Astring.cpp.

References buffer.

Referenced by operator==(), and cgiEnvironment::readInput().

bool aString::operator== ( aString input  )  [inline]

Definition at line 185 of file Astring.h.

References match(), and str().

bool aString::operator== ( const char *  input  )  [inline]

Definition at line 186 of file Astring.h.

References match().

char * aString::slide ( int  iAmount = 1  ) 

char * aString::token ( const char *  separator,
aString delimiterHolder = NULL 
)

void aString::tokenReset ( void   ) 

int aString::tokenPosition ( void   ) 

Definition at line 814 of file Astring.cpp.

References pchToken, and tokened.

Referenced by backTrack(), and startDelimiter().

int aString::remainderPosition ( void   ) 

Definition at line 804 of file Astring.cpp.

References tokened, and tokenleft.

Referenced by cgiEnvironment::cgiEnvironment().

char * aString::currentToken ( void   ) 

Definition at line 894 of file Astring.cpp.

References pchToken.

char * aString::backTrack ( void   ) 

bool aString::isNumber ( void   ) 

Definition at line 141 of file Astring.cpp.

References buffer.

aString & aString::exclusive ( char *  input  ) 

Definition at line 909 of file Astring.cpp.

References buffer, and size.

aString & aString::exclusive ( char  low,
char  high 
)

Definition at line 940 of file Astring.cpp.

References buffer, and size.

aString & aString::deHexify ( char  hexToken  ) 

Definition at line 997 of file Astring.cpp.

References buffer, and size.

Referenced by cgiInput::set().

int aString::oneToken ( const char *  separator,
aString delimiterHolder 
) [protected]

Definition at line 632 of file Astring.cpp.

References endDelimiter, and tokenleft.

Referenced by token().

bool aString::allocate ( int  sizeRequseted,
bool  bCopy = false 
) [protected]

Definition at line 965 of file Astring.cpp.

References buffer, incSize, size, and tokenReset().

Referenced by aString(), operator+=(), operator=(), replaceFoundWith(), setSize(), and subString().

char aString::EndDelimiter ( void   )  [inline]

Definition at line 38 of file Astring.h.

References endDelimiter.

char aString::startDelimiter ( void   ) 

const char* aString::str (  )  const [inline]

Definition at line 64 of file Astring.h.

References buffer.

const char* aString::c_str (  )  const [inline]

Definition at line 68 of file Astring.h.

References str().

char* aString::remainder ( void   )  const [inline]

Definition at line 73 of file Astring.h.

References tokenleft.

aString::operator char * (  )  const [inline]

Definition at line 77 of file Astring.h.

References buffer.

aString::operator string (  )  const [inline]

Definition at line 81 of file Astring.h.

References buffer.

void aString::attach ( char *  input  ) 

aString& aString::operator= ( char *  input  ) 

aString& aString::operator= ( const char *  input  ) 

aString& aString::operator= ( const aString input  ) 

aString& aString::operator= ( const string &  input  ) 

aString& aString::subString ( const char *  input,
int  start 
)

aString& aString::subString ( const char *  input,
int  start,
int  end 
)

aString& aString::operator+= ( const char *  input  ) 

aString& aString::operator+= ( char *  input  ) 

aString& aString::operator+= ( char  input  ) 

int aString::Size ( void   )  const [inline]

Definition at line 111 of file Astring.h.

References size.

int aString::length ( void   )  const [inline]

Definition at line 112 of file Astring.h.

References buffer.

aString& aString::setSize ( int  newSize  ) 

aString& aString::replaceFoundWith ( const char *  find,
const char  replace,
const char *  search = NULL 
)

aString& aString::replaceFoundWith ( const char *  find,
const char *  replace 
)

aString& aString::replaceAt ( unsigned int  pos,
char *  replace 
)

aString& aString::removeChars ( const char *  find  ) 

aString& aString::encapsulateIn ( const char *  boundary,
const char *  end = NULL 
)

aString& aString::upperS ( void   ) 

aString& aString::lowerS ( void   ) 

aString& aString::upper ( void   ) 

aString& aString::lower ( void   ) 

aString& aString::trim ( aString::end  end = right  ) 

bool aString::matchIn ( const char *  input  )  const

char* aString::find ( const char *  input  )  const

bool aString::matchesStartOf ( const char *  input  )  const

bool aString::startOfMatches ( const char *  input  )  const

bool aString::match ( const char *  input  )  const

bool aString::operator== ( aString input  )  [inline]

Definition at line 185 of file Astring.h.

References match(), and str().

bool aString::operator== ( const char *  input  )  [inline]

Definition at line 186 of file Astring.h.

References match().

char* aString::slide ( int  iAmount = 1  ) 

char* aString::token ( const char *  separator,
aString delimiterHolder = NULL 
)

void aString::tokenReset ( void   ) 

int aString::tokenPosition ( void   ) 

int aString::remainderPosition ( void   ) 

char* aString::currentToken ( void   ) 

char* aString::backTrack ( void   ) 

bool aString::isNumber ( void   ) 

aString& aString::exclusive ( char *  input  ) 

aString& aString::exclusive ( char  low,
char  high 
)

aString& aString::deHexify ( char  hexToken  ) 

int aString::oneToken ( const char *  separator,
aString delimiterHolder 
) [protected]

bool aString::allocate ( int  sizeRequseted,
bool  bCopy = false 
) [protected]


Member Data Documentation

char* aString::buffer [private]

char aString::endDelimiter [private]

Definition at line 248 of file Astring.h.

Referenced by EndDelimiter(), and oneToken().

int aString::size [private]

char* aString::tokened [private]

Definition at line 251 of file Astring.h.

Referenced by backTrack(), remainderPosition(), slide(), token(), tokenPosition(), tokenReset(), and ~aString().

char* aString::tokenleft [private]

Definition at line 252 of file Astring.h.

Referenced by backTrack(), oneToken(), remainder(), remainderPosition(), slide(), token(), and tokenReset().

char* aString::pchToken [private]

Definition at line 253 of file Astring.h.

Referenced by backTrack(), currentToken(), slide(), token(), tokenPosition(), and tokenReset().

pointerVector< char > aString::allTokens [private]

Definition at line 254 of file Astring.h.

Referenced by backTrack(), slide(), token(), and tokenReset().

char* aString::buffer [private]

Definition at line 247 of file Astring.h.

char* aString::tokened [private]

Definition at line 251 of file Astring.h.

char* aString::tokenleft [private]

Definition at line 252 of file Astring.h.

char* aString::pchToken [private]

Definition at line 253 of file Astring.h.


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

Generated on Sat Aug 15 12:48:07 2009 for w3systemsDevelopment by  doxygen 1.5.5