#include <Astring.h>

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) |
| aString & | operator= (char *input) |
| aString & | operator= (const char *input) |
| aString & | operator= (const aString &input) |
| aString & | operator= (const string &input) |
| aString & | subString (const char *input, int start) |
| aString & | subString (const char *input, int start, int end) |
| aString & | operator+= (const char *input) |
| aString & | operator+= (char *input) |
| aString & | operator+= (char input) |
| int | Size (void) const |
| int | length (void) const |
| aString & | setSize (int newSize) |
| aString & | replaceFoundWith (const char *find, const char replace, const char *search=NULL) |
| aString & | replaceFoundWith (const char *find, const char *replace) |
| aString & | replaceAt (unsigned int pos, char *replace) |
| aString & | removeChars (const char *find) |
| aString & | encapsulateIn (const char *boundary, const char *end=NULL) |
| aString & | upperS (void) |
| aString & | lowerS (void) |
| aString & | upper (void) |
| aString & | lower (void) |
| aString & | trim (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) |
| aString & | exclusive (char *input) |
| aString & | exclusive (char low, char high) |
| aString & | deHexify (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) |
| aString & | operator= (char *input) |
| aString & | operator= (const char *input) |
| aString & | operator= (const aString &input) |
| aString & | operator= (const string &input) |
| aString & | subString (const char *input, int start) |
| aString & | subString (const char *input, int start, int end) |
| aString & | operator+= (const char *input) |
| aString & | operator+= (char *input) |
| aString & | operator+= (char input) |
| int | Size (void) const |
| int | length (void) const |
| aString & | setSize (int newSize) |
| aString & | replaceFoundWith (const char *find, const char replace, const char *search=NULL) |
| aString & | replaceFoundWith (const char *find, const char *replace) |
| aString & | replaceAt (unsigned int pos, char *replace) |
| aString & | removeChars (const char *find) |
| aString & | encapsulateIn (const char *boundary, const char *end=NULL) |
| aString & | upperS (void) |
| aString & | lowerS (void) |
| aString & | upper (void) |
| aString & | lower (void) |
| aString & | trim (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) |
| aString & | exclusive (char *input) |
| aString & | exclusive (char low, char high) |
| aString & | deHexify (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 |
Definition at line 28 of file Astring.h.
| enum aString::end |
| enum aString::end |
| aString::aString | ( | ) |
Definition at line 26 of file Astring.cpp.
| aString::aString | ( | const char * | input | ) |
| aString::aString | ( | const string & | input | ) |
| aString::aString | ( | const aString & | input | ) |
| aString::~aString | ( | ) | [inline] |
| aString::aString | ( | ) |
| aString::aString | ( | const char * | ) |
| aString::aString | ( | const string & | input | ) |
| aString::aString | ( | const aString & | input | ) |
| aString::~aString | ( | ) | [inline] |
| char aString::EndDelimiter | ( | void | ) | [inline] |
| char aString::startDelimiter | ( | void | ) |
| const char* aString::str | ( | ) | const [inline] |
Definition at line 64 of file Astring.h.
References buffer.
Referenced by aString(), c_str(), cgiCalendar::cgiCalendar(), cgiCookie::cgiCookie(), cgiEnvironment::cgiEnvironment(), check(), cgiScript::DebugString(), main(), operator<<(), operator=(), operator==(), cgiEnvironment::readInput(), cgiInput::setMultipart(), and cgiBase::tag().
| const char* aString::c_str | ( | ) | const [inline] |
Definition at line 68 of file Astring.h.
References str().
Referenced by virtualStore::baseCategoryFixup(), cgiCalendar::cgiCalendar(), currentSite(), mail_functor::dataItem(), qrystr_content_functor::emit(), show_page::emitDetail(), page::emitMenu(), cgiCalendar::fillHalfHour(), servicelist_functor::fixURI(), Designer_form::form_display(), intraMain(), page::load(), main(), operator=(), redirectToHTMLDoc(), reporter::referer(), ReportEmitter::ReportEmitter(), Report_List::sendHotField(), and cgiCookie::setAllCookies().
| 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] |
| aString::operator string | ( | ) | const [inline] |
| void aString::attach | ( | char * | input | ) |
| aString & aString::operator= | ( | char * | input | ) |
Definition at line 89 of file Astring.cpp.
| aString & aString::operator= | ( | const char * | input | ) |
Definition at line 122 of file Astring.cpp.
References allocate(), buffer, length(), size, str(), and tokenReset().
| aString & aString::operator= | ( | const string & | input | ) |
| 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 | |||
| ) |
| aString & aString::operator+= | ( | const char * | input | ) |
| 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] |
| int aString::length | ( | void | ) | const [inline] |
Definition at line 112 of file Astring.h.
References buffer.
Referenced by aString(), virtualStore::baseCategoryFixup(), cgiCalendar::cgiCalendar(), page::load(), matchesStartOf(), operator=(), cgiEnvironment::readInput(), cgiInput::setMultipart(), startDelimiter(), and startOfMatches().
| aString & aString::setSize | ( | int | newSize | ) |
| 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 | |||
| ) |
| 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 | ) |
Definition at line 232 of file Astring.cpp.
Referenced by imagePicker::makeThumb(), mail_functor::operator()(), imagePicker::scaleSource(), mailpage::send(), and list_base::setFilter().
| aString & aString::lower | ( | void | ) |
| 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 |
| 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 |
Definition at line 610 of file Astring.cpp.
References buffer.
Referenced by operator==(), and cgiEnvironment::readInput().
| bool aString::operator== | ( | aString & | input | ) | [inline] |
| bool aString::operator== | ( | const char * | input | ) | [inline] |
| char * aString::slide | ( | int | iAmount = 1 |
) |
Definition at line 721 of file Astring.cpp.
References pointerVector< T >::add(), allTokens, buffer, pchToken, size, tokened, tokenleft, and tokenReset().
| char * aString::token | ( | const char * | separator, | |
| aString * | delimiterHolder = NULL | |||
| ) |
Definition at line 755 of file Astring.cpp.
References pointerVector< T >::add(), allTokens, buffer, oneToken(), pchToken, size, tokened, tokenleft, and tokenReset().
Referenced by cgiCookie::cgiCookie(), cgiEnvironment::cgiEnvironment(), cgiInput::count(), and cgiInput::set().
| void aString::tokenReset | ( | void | ) |
Definition at line 900 of file Astring.cpp.
References allTokens, pchToken, pointerVector< T >::removeAll(), pointerVector< T >::Size(), tokened, and tokenleft.
Referenced by allocate(), backTrack(), operator=(), slide(), and token().
| 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 | ) |
| char * aString::backTrack | ( | void | ) |
Definition at line 836 of file Astring.cpp.
References allTokens, buffer, pchToken, pointerVector< T >::remove(), pointerVector< T >::Size(), tokened, tokenleft, tokenPosition(), and tokenReset().
| 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] |
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] |
| char aString::startDelimiter | ( | void | ) |
| const char* aString::str | ( | ) | const [inline] |
| const char* aString::c_str | ( | ) | const [inline] |
| char* aString::remainder | ( | void | ) | const [inline] |
| aString::operator char * | ( | ) | const [inline] |
| aString::operator string | ( | ) | const [inline] |
| void aString::attach | ( | char * | input | ) |
| aString& aString::operator= | ( | char * | input | ) |
| aString& aString::operator= | ( | const char * | 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] |
| int aString::length | ( | void | ) | const [inline] |
| 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] |
| bool aString::operator== | ( | const char * | input | ) | [inline] |
| 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] |
char* aString::buffer [private] |
Definition at line 247 of file Astring.h.
Referenced by allocate(), aString(), attach(), backTrack(), deHexify(), encapsulateIn(), exclusive(), find(), isNumber(), length(), lower(), lowerS(), match(), matchesStartOf(), matchIn(), operator char *(), operator string(), operator+=(), operator=(), removeChars(), replaceAt(), replaceFoundWith(), slide(), startDelimiter(), startOfMatches(), str(), subString(), token(), trim(), upper(), upperS(), and ~aString().
char aString::endDelimiter [private] |
int aString::size [private] |
Definition at line 249 of file Astring.h.
Referenced by allocate(), attach(), deHexify(), encapsulateIn(), exclusive(), find(), lower(), matchesStartOf(), matchIn(), operator=(), removeChars(), replaceAt(), replaceFoundWith(), Size(), slide(), token(), trim(), and upper().
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] |
char* aString::tokened [private] |
char* aString::tokenleft [private] |
char* aString::pchToken [private] |
1.5.5