gString Class Reference

#include <gstring.h>

Inheritance diagram for gString:

gStringGeneric gStorage gTop gFileSysName gHAttrValue gHtmlString gURI gVersion gDirName gFileName gdHttpURI gdURI List of all members.

Public Member Functions

 gString ()
 gString (gString &copy)
 gString (char *s)
 gString (t_uchar *s)
 gString (char c)
 gString (unsigned nBytes, char c)
virtual ~gString ()
bool Match (gString &copy, bool doIgnoreCase=false)
bool Match (char *s, bool doIgnoreCase=false)
unsigned Find (gString &sSub, bool doIgnoreCase=false)
unsigned Find (char *s, bool doIgnoreCase=false)
unsigned Find (char c, bool doIgnoreCase=false)
unsigned Find (gString &sSub, unsigned &nOcc, bool doIgnoreCase=false)
unsigned Find (char *s, unsigned &nOcc, bool doIgnoreCase=false)
unsigned Find (char c, unsigned &nOcc, bool doIgnoreCase=false)
unsigned FindBack (gString &sSub, bool doIgnoreCase=false)
unsigned FindBack (char *s, bool doIgnoreCase=false)
unsigned FindBack (char c, bool doIgnoreCase=false)
unsigned FindAnyChr (gString &b, bool doIgnoreCase=false)
unsigned FindAnyChr (char *s, bool doIgnoreCase=false)
unsigned FindAnyChr (gString &b, bool doIgnoreCase, unsigned &posAny)
unsigned FindAnyChr (char *s, bool doIgnoreCase, unsigned &posAny)
unsigned FindExcept (gString &sExcept, bool doIgnoreCase=false)
unsigned FindExcept (char *s, bool doIgnoreCase=false)
virtual unsigned AddString (gString &a)
virtual void Copy (gString &copy)
virtual gStringCopyFromTo (gString &copy, unsigned startPos=0, unsigned endPos=0)
virtual gStringCopyFromToStr (char *s, unsigned startPos=0, unsigned endPos=0)
virtual unsigned Delete (unsigned startPos=0, unsigned endPos=0)
virtual unsigned Insert (gString &copy, unsigned startPos=0)
virtual unsigned InsertStr (char *s, unsigned startPos=0)
virtual bool Trim ()
virtual bool TrimLeft ()
virtual bool TrimRight ()
gStringoperator= (gString &copy)
gStringoperator= (char *s)
gStringoperator= (char c)
gStringoperator= (int v)
gStringoperator+ (gString &copy)
gStringoperator+= (gString &copy)
virtual gStorageNewObject ()
virtual t_ucharToString (t_uchar *uBuf)
virtual bool SaveGuts (FILE *f)
virtual bool RestoreGuts (FILE *f)
virtual void Show (bool doShowAll=true)

Protected Member Functions

int thisMatch (char *s1, char *s2, bool doIgnoreCase)
unsigned thisFind (char *s, char *sub, unsigned startPos, bool doIgnoreCase)
unsigned thisFindAny (char *s, char *strAny, bool doIgnoreCase, unsigned &posAny)
unsigned thisFindFwd (char *s, char *sub, unsigned startPos, bool doIgnoreCase, unsigned &nOcc)
unsigned thisFindFwdOcc (char *s, char *sub, unsigned &nOcc)
unsigned thisFindBack (char *s, char *sub, unsigned startPos, bool doIgnoreCase, unsigned &nOcc)
unsigned thisFindBackOcc (char *s, char *sub, unsigned &nOcc)
unsigned thisFindExcept (char *s, char *exceptStr, unsigned startPos, bool doIgnoreCase)

Constructor & Destructor Documentation

gString::gString  ) 
 

Definition at line 315 of file gstring.cpp.

Referenced by NewObject().

gString::gString gString copy  ) 
 

Definition at line 324 of file gstring.cpp.

gString::gString char *  s  ) 
 

Definition at line 334 of file gstring.cpp.

gString::gString t_uchar s  ) 
 

Definition at line 344 of file gstring.cpp.

gString::gString char  c  ) 
 

Definition at line 354 of file gstring.cpp.

gString::gString unsigned  nBytes,
char  c
 

Definition at line 364 of file gstring.cpp.

gString::~gString  )  [virtual]
 

Definition at line 378 of file gstring.cpp.


Member Function Documentation

unsigned gString::AddString gString a  )  [virtual]
 

Definition at line 491 of file gstring.cpp.

Referenced by gHtmlOpt::GetBaseHRef(), gDir::GetFullNameDir(), gXHttpCont::GetHeadRefererStr(), gXHttpCont::GetHeadUserAgentStr(), gHtmlCouple::GetStr(), gdHCouple::GetStr(), gHtmlCouple::GetStrForTree(), Insert(), operator+=(), gHtmlCouple::TagString(), gXHttpReplyHeader::thisAddLine(), gXHttpCont::thisGetHtmlContrl(), gUnweb::thisPostProcess(), gUnweb::thisPreJoin(), gHtmlContent::UpCaseAttributes(), and gXHttpGeneric::WriteHead().

void gString::Copy gString copy  )  [virtual]
 

Definition at line 497 of file gstring.cpp.

Referenced by gFileStat::CopyStat(), Delete(), operator=(), TrimLeft(), and TrimRight().

gString & gString::CopyFromTo gString copy,
unsigned  startPos = 0,
unsigned  endPos = 0
[virtual]
 

Definition at line 502 of file gstring.cpp.

Referenced by gHtmlString::ConvertAmpToAscii(), gHtmlString::ConvertHToAscii(), CopyFromToStr(), gHAttrList::Find(), gHAttrList::GetAttrValue(), gdURI::GetDomainAndPathStr(), gdURI::GetPathNameStr(), gdURI::GetRelativePathStr(), Insert(), sFileKind::Process(), gHtmlContent::thisAddHmtlLine(), gUnweb::thisConsolidateDataCoord(), gdTxtCouple::thisInitTxtCouple(), gConfig::thisParseLine(), gUnweb::thisPostProcess(), gUnweb::thisPreJoin(), gConfig::thisProcess(), gArg::thisProgramName(), gURI::thisSetDomainPath(), gUnweb::thisStrMove(), and gHAType::Unquote().

virtual gString& gString::CopyFromToStr char *  s,
unsigned  startPos = 0,
unsigned  endPos = 0
[inline, virtual]
 

Definition at line 132 of file gstring.h.

unsigned gString::Delete unsigned  startPos = 0,
unsigned  endPos = 0
[virtual]
 

Definition at line 523 of file gstring.cpp.

Referenced by gHtmlString::ConvertToHString(), sFileKind::Process(), gArg::thisFlushAll(), gConfig::thisRead(), and gParam::thisSplit().

unsigned gString::Find char  c,
unsigned &  nOcc,
bool  doIgnoreCase = false
 

Definition at line 421 of file gstring.cpp.

unsigned gString::Find char *  s,
unsigned &  nOcc,
bool  doIgnoreCase = false
 

Definition at line 416 of file gstring.cpp.

unsigned gString::Find gString sSub,
unsigned &  nOcc,
bool  doIgnoreCase = false
 

Definition at line 411 of file gstring.cpp.

unsigned gString::Find char  c,
bool  doIgnoreCase = false
 

Definition at line 402 of file gstring.cpp.

unsigned gString::Find char *  s,
bool  doIgnoreCase = false
 

Definition at line 397 of file gstring.cpp.

unsigned gString::Find gString sSub,
bool  doIgnoreCase = false
 

Definition at line 392 of file gstring.cpp.

Referenced by gParam::Find(), gHttpRequestList::FindHeadFullFirst(), gXHttpCont::GetContent(), gXHttpReplyHeader::GetLength(), gFileTemp::gFileTemp(), gHOutOpt::HasToSkip(), gHATypeStringSingle::IsOk(), gURI::IsValidDomain(), sFileKind::Process(), gUnweb::thisConsolidateDataCoord(), gList::thisFind(), gArg::thisFindParamFromStr(), gArg::thisFlushAll(), gUnweb::thisPreJoin(), gConfig::thisProcess(), gConfig::thisRead(), gURI::thisSetDomainPath(), and gUnweb::thisStrMove().

unsigned gString::FindAnyChr char *  s,
bool  doIgnoreCase,
unsigned &  posAny
 

Definition at line 469 of file gstring.cpp.

unsigned gString::FindAnyChr gString b,
bool  doIgnoreCase,
unsigned &  posAny
 

Definition at line 464 of file gstring.cpp.

unsigned gString::FindAnyChr char *  s,
bool  doIgnoreCase = false
 

Definition at line 458 of file gstring.cpp.

unsigned gString::FindAnyChr gString b,
bool  doIgnoreCase = false
 

Definition at line 452 of file gstring.cpp.

Referenced by gConfig::thisParseLine().

unsigned gString::FindBack char  c,
bool  doIgnoreCase = false
 

Definition at line 442 of file gstring.cpp.

unsigned gString::FindBack char *  s,
bool  doIgnoreCase = false
 

Definition at line 436 of file gstring.cpp.

unsigned gString::FindBack gString sSub,
bool  doIgnoreCase = false
 

Definition at line 430 of file gstring.cpp.

Referenced by gdURI::GetDomainAndPathStr(), gdURI::GetPathNameStr(), gHInOpt::SetFromString(), gConfig::thisProcess(), and gArg::thisProgramName().

unsigned gString::FindExcept char *  s,
bool  doIgnoreCase = false
 

Definition at line 484 of file gstring.cpp.

unsigned gString::FindExcept gString sExcept,
bool  doIgnoreCase = false
 

Definition at line 474 of file gstring.cpp.

Referenced by sParamRaw::AddMember(), gdURI::GetRelativePathStr(), gdURI::IsValidDomain(), gdHttpURI::ParseProxyStr(), gUnweb::thisAddTxt(), gUnweb::thisConsolidateDataCoord(), and gArg::thisProcessParamElem().

unsigned gString::Insert gString copy,
unsigned  startPos = 0
[virtual]
 

Definition at line 549 of file gstring.cpp.

Referenced by gdURI::GetDomainAndPathStr(), and InsertStr().

virtual unsigned gString::InsertStr char *  s,
unsigned  startPos = 0
[inline, virtual]
 

Definition at line 140 of file gstring.h.

bool gString::Match char *  s,
bool  doIgnoreCase = false
 

Definition at line 387 of file gstring.cpp.

bool gString::Match gString copy,
bool  doIgnoreCase = false
 

Definition at line 382 of file gstring.cpp.

Referenced by gHtmlCouple::AddTag(), gdHttpSnarf::GetHeaderLines(), gConfig::GetSectionFromName(), sOptSnarf::GoCmdHttp(), gKey::HashStrPos(), gList::Match(), gFileControl::SetSignaledByStr(), gURI::thisFetchScheme(), gHOutOpt::thisHasTidyAttr(), gDirGeneric::thisNameOk(), gArg::thisProcessParamElem(), and gHtmlContent::UpCaseAttributes().

gStorage * gString::NewObject  )  [virtual]
 

Implements gStorage.

Definition at line 608 of file gstring.cpp.

gString & gString::operator+ gString copy  ) 
 

Definition at line 595 of file gstring.cpp.

gString & gString::operator+= gString copy  ) 
 

Definition at line 602 of file gstring.cpp.

gString & gString::operator= int  v  ) 
 

Definition at line 587 of file gstring.cpp.

gString & gString::operator= char  c  ) 
 

Definition at line 578 of file gstring.cpp.

gString & gString::operator= char *  s  ) 
 

Definition at line 570 of file gstring.cpp.

gString & gString::operator= gString copy  ) 
 

Definition at line 564 of file gstring.cpp.

bool gString::RestoreGuts FILE *  f  )  [virtual]
 

Reimplemented from gStringGeneric.

Definition at line 624 of file gstring.cpp.

bool gString::SaveGuts FILE *  f  )  [virtual]
 

Reimplemented from gStringGeneric.

Definition at line 619 of file gstring.cpp.

Referenced by gListGeneric::SaveGuts().

void gString::Show bool  doShowAll = true  )  [virtual]
 

Reimplemented from gStorage.

Definition at line 629 of file gstring.cpp.

unsigned gString::thisFind char *  s,
char *  sub,
unsigned  startPos,
bool  doIgnoreCase
[protected]
 

Definition at line 652 of file gstring.cpp.

Referenced by Find(), thisFindBackOcc(), and thisFindFwdOcc().

unsigned gString::thisFindAny char *  s,
char *  strAny,
bool  doIgnoreCase,
unsigned &  posAny
[protected]
 

Definition at line 680 of file gstring.cpp.

Referenced by FindAnyChr().

unsigned gString::thisFindBack char *  s,
char *  sub,
unsigned  startPos,
bool  doIgnoreCase,
unsigned &  nOcc
[protected]
 

Definition at line 756 of file gstring.cpp.

Referenced by FindBack().

unsigned gString::thisFindBackOcc char *  s,
char *  sub,
unsigned &  nOcc
[protected]
 

Definition at line 774 of file gstring.cpp.

Referenced by thisFindBack().

unsigned gString::thisFindExcept char *  s,
char *  exceptStr,
unsigned  startPos,
bool  doIgnoreCase
[protected]
 

Definition at line 795 of file gstring.cpp.

Referenced by FindExcept().

unsigned gString::thisFindFwd char *  s,
char *  sub,
unsigned  startPos,
bool  doIgnoreCase,
unsigned &  nOcc
[protected]
 

Definition at line 716 of file gstring.cpp.

Referenced by Find().

unsigned gString::thisFindFwdOcc char *  s,
char *  sub,
unsigned &  nOcc
[protected]
 

Definition at line 734 of file gstring.cpp.

Referenced by thisFindFwd().

int gString::thisMatch char *  s1,
char *  s2,
bool  doIgnoreCase
[protected]
 

Definition at line 639 of file gstring.cpp.

Referenced by Match().

t_uchar * gString::ToString t_uchar uBuf  )  [virtual]
 

Reimplemented from gStringGeneric.

Reimplemented in gDirName.

Definition at line 614 of file gstring.cpp.

Referenced by gDirName::ToString().

bool gString::Trim  )  [virtual]
 

Definition at line 177 of file gstring.cpp.

Referenced by sCoordText::Add(), gHtmlCouple::Add(), gHtmlCouple::AddTag(), gStrControl::ConvertToInt32(), gStrControl::ConvertToUInt32(), gHATypeLength::gHATypeLength(), sFileKind::Process(), gHtmlContent::thisAddHmtlLine(), gHtmlContent::thisAddHtmlTag(), gHOutOpt::thisConfig(), gdTxtCouple::thisInitTxtCouple(), gConfig::thisParseLine(), gUnweb::thisPostProcess(), gUnweb::thisPreJoin(), gConfig::thisProcess(), gConfig::thisRead(), gParam::thisSplit(), gUnweb::thisStrMove(), and gHtmlContent::UpCaseAttributes().

bool gString::TrimLeft  )  [virtual]
 

Definition at line 184 of file gstring.cpp.

Referenced by Trim().

bool gString::TrimRight  )  [virtual]
 

Definition at line 200 of file gstring.cpp.

Referenced by gUnweb::thisConsolidateData(), gUnweb::thisPreProcess(), Trim(), and gHtmlContent::UpCaseAttributes().


The documentation for this class was generated from the following files:
Generated on Sat Aug 18 02:41:19 2007 for xpfweb_v2x lib by  doxygen 1.4.2