gStrControl Class Reference

#include <gstringext.h>

List of all members.

Public Member Functions

 ~gStrControl ()
bool DoUseCaseCp ()
bool IsOkChar (t_uchar c)
t_gCpCode GetDefaultIsoPage ()
bool IsDigConvRelaxed ()
char * GetPathUnicode ()
int GetFilenameCode (t_gCpCode aCpCode, gString &sCodepage)
bool Match (char *s1, char *s2, bool doIgnoreCase=false)
int Compare (char *s1, char *s2, bool doIgnoreCase=false)
unsigned Find (char *s, char *sub, bool doIgnoreCase=false)
unsigned Find (char *s, t_uchar subChr, bool doIgnoreCase=false)
int Init (char *strPath=nil, t_gCpCode aIsoPage=1)
int InitTab (t_gCpCode aIsoPage)
bool UseCaseCodepage (bool doUseCaseCp)
void SetConvertRelax (bool doRelax)
int ConvertToUInt32 (char *s, t_uint32 &vRes)
int ConvertToInt32 (char *s, t_int32 &vRes)
int ConvertToUInt32 (char *s, unsigned base, eDigitConv caseSense, t_uint32 &vRes, unsigned &posErr)
int ConvertToInt32 (char *s, unsigned base, eDigitConv caseSense, t_int32 &vRes, unsigned &posErr)
int ConvertHexToUInt32 (char *s, eDigitConv caseSense, t_uint32 &vRes)
void ConvertBinToStr (t_uint32 v, t_int16 places, gString &sRes)
void ConvertBinToStr (t_uint32 v, gString &sRes)
int ReturnAndAssignUInt32 (int returnValue, t_uint64 value, t_uint32 &vRes)

Static Public Member Functions

static gStrControlSelf ()

Public Attributes

int lastOpError
FILE * fReport

Static Public Attributes

static sIanaCountry2 tblIanaCountry []

Protected Member Functions

 gStrControl ()
int thisInit (char *thbFilename, gDir &dir, t_gCpCode aIsoPage)
unsigned thisFind (char *s, char *sub, unsigned startPos, bool doIgnoreCase, bool doUseCaseCp)
unsigned thisFindChr (char *s, t_uchar subChr, unsigned startPos, bool doIgnoreCase, bool doUseCaseCp)


Constructor & Destructor Documentation

gStrControl::~gStrControl  ) 
 

Definition at line 1058 of file gstringext.cpp.

gStrControl::gStrControl  )  [protected]
 

Definition at line 1041 of file gstringext.cpp.


Member Function Documentation

int gStrControl::Compare char *  s1,
char *  s2,
bool  doIgnoreCase = false
 

Definition at line 1080 of file gstringext.cpp.

Referenced by Match().

void gStrControl::ConvertBinToStr t_uint32  v,
gString sRes
[inline]
 

Definition at line 337 of file gstringext.h.

void gStrControl::ConvertBinToStr t_uint32  v,
t_int16  places,
gString sRes
 

Definition at line 1253 of file gstringext.cpp.

Referenced by ConvertBinToStr().

int gStrControl::ConvertHexToUInt32 char *  s,
eDigitConv  caseSense,
t_uint32 vRes
[inline]
 

Definition at line 326 of file gstringext.h.

int gStrControl::ConvertToInt32 char *  s,
unsigned  base,
eDigitConv  caseSense,
t_int32 vRes,
unsigned &  posErr
 

Definition at line 1223 of file gstringext.cpp.

int gStrControl::ConvertToInt32 char *  s,
t_int32 vRes
 

Definition at line 1139 of file gstringext.cpp.

int gStrControl::ConvertToUInt32 char *  s,
unsigned  base,
eDigitConv  caseSense,
t_uint32 vRes,
unsigned &  posErr
 

Definition at line 1151 of file gstringext.cpp.

int gStrControl::ConvertToUInt32 char *  s,
t_uint32 vRes
 

Definition at line 1127 of file gstringext.cpp.

Referenced by ConvertHexToUInt32(), and ConvertToInt32().

bool gStrControl::DoUseCaseCp  )  [inline]
 

Definition at line 266 of file gstringext.h.

Referenced by Find().

unsigned gStrControl::Find char *  s,
t_uchar  subChr,
bool  doIgnoreCase = false
[inline]
 

Definition at line 294 of file gstringext.h.

unsigned gStrControl::Find char *  s,
char *  sub,
bool  doIgnoreCase = false
[inline]
 

Definition at line 290 of file gstringext.h.

t_gCpCode gStrControl::GetDefaultIsoPage  )  [inline]
 

Definition at line 271 of file gstringext.h.

int gStrControl::GetFilenameCode t_gCpCode  aCpCode,
gString sCodepage
 

Definition at line 1067 of file gstringext.cpp.

char* gStrControl::GetPathUnicode  )  [inline]
 

Definition at line 279 of file gstringext.h.

Referenced by GetFilenameCode().

int gStrControl::Init char *  strPath = nil,
t_gCpCode  aIsoPage = 1
 

Definition at line 1092 of file gstringext.cpp.

Referenced by gStrControl().

int gStrControl::InitTab t_gCpCode  aIsoPage  ) 
 

Definition at line 1120 of file gstringext.cpp.

bool gStrControl::IsDigConvRelaxed  )  [inline]
 

Definition at line 275 of file gstringext.h.

Referenced by ConvertToUInt32().

bool gStrControl::IsOkChar t_uchar  c  ) 
 

Definition at line 1062 of file gstringext.cpp.

bool gStrControl::Match char *  s1,
char *  s2,
bool  doIgnoreCase = false
[inline]
 

Definition at line 286 of file gstringext.h.

int gStrControl::ReturnAndAssignUInt32 int  returnValue,
t_uint64  value,
t_uint32 vRes
 

Definition at line 1279 of file gstringext.cpp.

Referenced by ConvertToUInt32().

static gStrControl& gStrControl::Self  )  [inline, static]
 

Definition at line 256 of file gstringext.h.

Referenced by gXHttpReplyHeader::AddLine(), gHtmlString::ConvertAmpToAscii(), gHATypeSimpleU32::ConvertHexStrToUInt32(), gHInOpt::ConvertToInt(), gdHCouple::CopyNormalizeAttr(), gHAttrList::Find(), gUnweb::FindStringKey(), gUniString::GetHexa(), gUniString::GetHexa0x(), gXHttpReplyHeader::GetLength(), gHATypeColor::gHATypeColor(), gHATypeLength::gHATypeLength(), gHATypeSimple32::gHATypeSimple32(), gHATypeSimpleU32::gHATypeSimpleU32(), gSmartList::MatchWhere(), gdHttpURI::ParseProxyStr(), gHtmlContent::thisAddHtmlTag(), gURI::thisFetchScheme(), gXHttpGeneric::thisParseServerReply(), gURI::thisParseString(), gUnweb::thisPostProcess(), gUnweb::thisPreProcess(), gUnweb::thisPreStripComments(), gXHttpCont::thisReadChunkSize(), and gVersion::thisSetMajorOrMinor().

void gStrControl::SetConvertRelax bool  doRelax  )  [inline]
 

Definition at line 303 of file gstringext.h.

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

Definition at line 1300 of file gstringext.cpp.

Referenced by Find(), and thisFindChr().

unsigned gStrControl::thisFindChr char *  s,
t_uchar  subChr,
unsigned  startPos,
bool  doIgnoreCase,
bool  doUseCaseCp
[protected]
 

Definition at line 1329 of file gstringext.cpp.

Referenced by Find().

int gStrControl::thisInit char *  thbFilename,
gDir dir,
t_gCpCode  aIsoPage
[protected]
 

Definition at line 1287 of file gstringext.cpp.

Referenced by Init().

bool gStrControl::UseCaseCodepage bool  doUseCaseCp  ) 
 

Definition at line 1112 of file gstringext.cpp.


Member Data Documentation

FILE* gStrControl::fReport
 

Definition at line 262 of file gstringext.h.

int gStrControl::lastOpError
 

Definition at line 261 of file gstringext.h.

Referenced by Init().

sIanaCountry2 gStrControl::tblIanaCountry [static]
 

Definition at line 13 of file gstringext.cpp.


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