xbString Class Reference

xbString class More...

#include <xbstring.h>

List of all members.

Public Types

enum  { npos = -1 }

Public Member Functions

 xbString ()
 Short description.
 xbString (size_t size)
 Short description.
 xbString (char c)
 Short description.
 xbString (const char *s)
 Short description.
 xbString (const char *s, size_t maxlen)
 Short description.
 xbString (const xbString &s)
 Short description.
virtual ~xbString ()
 Short description.
 operator const char * () const
 Short description.
char operator[] (int n)
xbStringoperator= (const xbString &s)
 Short description.
xbStringoperator= (const char *s)
 Short description.
xbStringoperator= (char c)
 Short description.
xbStringoperator+= (const char *s)
 Short description.
xbStringoperator+= (char c)
 Short description.
xbStringoperator-= (const char *s)
 Short description.
xbBool operator== (const xbString &) const
 Short description.
xbBool operator!= (const xbString &) const
 Short description.
xbBool operator< (const xbString &) const
 Short description.
xbBool operator> (const xbString &) const
 Short description.
xbBool operator<= (const xbString &) const
 Short description.
xbBool operator>= (const xbString &) const
 Short description.
void addBackSlash (char c)
 Short description.
xbStringassign (const xbString &str, size_t pos=0, int n=npos)
 Short description.
xbStringassign (char *str, int n)
 Short description.
xbString copy () const
 Short description.
const char * c_str () const
 Short description.
int countChar (char c) const
 Short description.
int cvtHexChar (char &out)
 Short description.
int cvtHexString (xbString &out)
 Short description.
char getCharacter (int n) const
const char * getData () const
 Short description.
xbBool hasAlphaChars () const
 Short description.
xbBool isEmpty () const
 Short description.
xbBool isNull () const
 Short description.
size_t len () const
 Short description.
size_t length () const
 Short description.
xbString mid (size_t pos=0, int n=npos) const
 Short description.
void lTrunc (size_t cnt)
 Short description.
int pos (char c)
 Short description.
int pos (const char *s)
 Short description.
void putAt (size_t pos, char c)
 Short description.
xbStringremove (size_t pos=0, int n=npos)
 Short description.
void resize (size_t size)
 Short description.
void setNum (long num)
 Short description.
void setNum (char *fmt, double num)
 Short description.
xbStringsprintf (const char *format,...)
 Short description.
void swapChars (char from, char to)
 Short description.
void toLowerCase ()
 Short description.
void toUpperCase ()
 Short description.
void trim ()
 Short description.
void zapChar (char c)
 Short description.
void zapLeadingChar (char c)
 Short description.
int setFromDelimitedInput (const char *, char, int, int)
 Short description.

Protected Member Functions

void ctor (const char *s)
 Short description.
void ctor (const char *s, size_t maxlen)
 Short description.

Protected Attributes

char * data
size_t size

Static Protected Attributes

static const char * NullString = ""

Friends

XBDLLEXPORT std::ostream & operator<< (std::ostream &, const xbString &)

Detailed Description

xbString class


Member Enumeration Documentation

anonymous enum
Enumerator:
npos 

Constructor & Destructor Documentation

xbString::xbString (  ) 

Short description.

xbString::xbString ( size_t  size  ) 

Short description.

Parameters:
size 
xbString::xbString ( char  c  ) 

Short description.

Parameters:
c 
xbString::xbString ( const char *  s  ) 

Short description.

Parameters:
s 
xbString::xbString ( const char *  s,
size_t  maxlen 
)

Short description.

Parameters:
s 
maxlen 
xbString::xbString ( const xbString s  ) 

Short description.

Parameters:
s 
xbString::~xbString (  )  [virtual]

Short description.


Member Function Documentation

void xbString::addBackSlash ( char  c  ) 

Short description.

Parameters:
c 
xbString & xbString::assign ( char *  str,
int  n 
)

Short description.

Parameters:
str 
n 
xbString & xbString::assign ( const xbString str,
size_t  pos = 0,
int  n = npos 
)

Short description.

Parameters:
str 
pos 
n 
const char * xbString::c_str (  )  const

Short description.

xbString xbString::copy (  )  const

Short description.

int xbString::countChar ( char  c  )  const

Short description.

Parameters:
c 
void xbString::ctor ( const char *  s,
size_t  maxlen 
) [protected]

Short description.

Parameters:
s 
maxlen 
void xbString::ctor ( const char *  s  )  [protected]

Short description.

Parameters:
s 
int xbString::cvtHexChar ( char &  out  ) 

Short description.

Parameters:
out 
int xbString::cvtHexString ( xbString out  ) 

Short description.

Parameters:
out 
char xbString::getCharacter ( int  n  )  const [inline]
const char * xbString::getData (  )  const

Short description.

xbBool xbString::hasAlphaChars (  )  const

Short description.

xbBool xbString::isEmpty (  )  const

Short description.

xbBool xbString::isNull (  )  const

Short description.

size_t xbString::len (  )  const

Short description.

size_t xbString::length (  )  const

Short description.

void xbString::lTrunc ( size_t  cnt  ) 

Short description.

Parameters:
cnt 
xbString xbString::mid ( size_t  pos = 0,
int  n = npos 
) const

Short description.

Parameters:
pos 
n 
xbString::operator const char * (  )  const

Short description.

xbBool xbString::operator!= ( const xbString s2  )  const

Short description.

NULL != !NULL

xbString & xbString::operator+= ( char  c  ) 

Short description.

xbString & xbString::operator+= ( const char *  s  ) 

Short description.

xbString & xbString::operator-= ( const char *  s  ) 

Short description.

xbBool xbString::operator< ( const xbString s2  )  const

Short description.

NULL < !NULL

xbBool xbString::operator<= ( const xbString s2  )  const

Short description.

NULL <= !NULL

xbString & xbString::operator= ( char  c  ) 

Short description.

xbString & xbString::operator= ( const char *  s  ) 

Short description.

xbString & xbString::operator= ( const xbString s  ) 

Short description.

xbBool xbString::operator== ( const xbString s2  )  const

Short description.

NULL == !NULL

xbBool xbString::operator> ( const xbString s2  )  const

Short description.

NULL > !NULL

xbBool xbString::operator>= ( const xbString s2  )  const

Short description.

NULL >= !NULL

char xbString::operator[] ( int  n  )  [inline]
int xbString::pos ( const char *  s  ) 

Short description.

Parameters:
s 
int xbString::pos ( char  c  ) 

Short description.

Parameters:
c 
void xbString::putAt ( size_t  pos,
char  c 
)

Short description.

Parameters:
pos 
c 
xbString & xbString::remove ( size_t  pos = 0,
int  n = npos 
)

Short description.

Parameters:
pos 
n 
void xbString::resize ( size_t  size  ) 

Short description.

Parameters:
size 
int xbString::setFromDelimitedInput ( const char *  src,
char  delim,
int  skipcnt,
int  opt 
)

Short description.

Parameters:
src 
delim 
skipcnt 
opt 
void xbString::setNum ( char *  fmt,
double  num 
)

Short description.

Parameters:
fmt 
num 
void xbString::setNum ( long  num  ) 

Short description.

Parameters:
num 
xbString & xbString::sprintf ( const char *  format,
  ... 
)

Short description.

Parameters:
format 
void xbString::swapChars ( char  from,
char  to 
)

Short description.

Parameters:
from 
to 
void xbString::toLowerCase (  ) 

Short description.

void xbString::toUpperCase (  ) 

Short description.

void xbString::trim (  ) 

Short description.

void xbString::zapChar ( char  c  ) 

Short description.

Parameters:
c 
void xbString::zapLeadingChar ( char  c  ) 

Short description.

Parameters:
c 

Friends And Related Function Documentation

XBDLLEXPORT std::ostream& operator<< ( std::ostream &  ,
const xbString  
) [friend]

Member Data Documentation

char* xbString::data [protected]
const char * xbString::NullString = "" [static, protected]
size_t xbString::size [protected]

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

Generated on 28 Dec 2009 for Xbase64 Class Library by  doxygen 1.6.1