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.
|
| ~xbString () |
| Short description.
|
xbString & | operator= (const xbString &s) |
| Short description.
|
xbString & | operator= (const char *s) |
| Short description.
|
xbString & | operator= (char c) |
| Short description.
|
bool | isNull () const |
| Short description.
|
bool | isEmpty () const |
| Short description.
|
size_t | len () const |
| Short description.
|
size_t | length () const |
| Short description.
|
void | resize (size_t size) |
| Short description.
|
xbString | copy () const |
| Short description.
|
xbString & | sprintf (const char *format,...) |
| Short description.
|
void | setNum (long num) |
| Short description.
|
xbString & | assign (const xbString &str, size_t pos=0, int n=npos) |
| Short description.
|
xbString & | assign (char *str, int n) |
| Short description.
|
char | operator[] (int n) |
char | getCharacter (int n) const |
| operator const char * () const |
| Short description.
|
xbString & | operator+= (const char *s) |
| Short description.
|
xbString & | operator+= (char c) |
| Short description.
|
xbString & | operator-= (const char *s) |
| Short description.
|
void | putAt (size_t pos, char c) |
| Short description.
|
const char * | getData () const |
| Short description.
|
const char * | c_str () const |
| Short description.
|
void | toLowerCase () |
| Short description.
|
int | pos (char c) |
| Short description.
|
int | pos (const char *s) |
| Short description.
|
void | trim () |
| Short description.
|
bool | compare (char s) |
bool | compare (const char *s) |
bool | operator== (const xbString &) const |
| Short description.
|
bool | operator!= (const xbString &) const |
| Short description.
|
bool | operator< (const xbString &) const |
| Short description.
|
bool | operator> (const xbString &) const |
| Short description.
|
bool | operator<= (const xbString &) const |
| Short description.
|
bool | operator>= (const xbString &) const |
| Short description.
|
xbString & | remove (size_t pos=0, int n=npos) |
| Short description.
|
xbString | mid (size_t pos=0, int n=npos) const |
| 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 |
ostream & | operator<< (ostream &, const xbString &) |
| Short description.
|
Detailed Description
xbString class
Member Enumeration Documentation
Constructor & Destructor Documentation
xbString::xbString |
( |
size_t |
size |
) |
|
Short description.
- Parameters:
-
xbString::xbString |
( |
char |
c |
) |
|
Short description.
- Parameters:
-
xbString::xbString |
( |
const char * |
s |
) |
|
Short description.
- Parameters:
-
xbString::xbString |
( |
const char * |
s, |
|
|
size_t |
maxlen | |
|
) |
| | |
Short description.
- Parameters:
-
xbString::xbString |
( |
const xbString & |
s |
) |
|
Short description.
- Parameters:
-
Member Function Documentation
xbString & xbString::assign |
( |
char * |
str, |
|
|
int |
n | |
|
) |
| | |
Short description.
- Parameters:
-
xbString & xbString::assign |
( |
const xbString & |
str, |
|
|
size_t |
pos = 0 , |
|
|
int |
n = npos | |
|
) |
| | |
Short description.
- Parameters:
-
const char * xbString::c_str |
( |
|
) |
const |
bool xbString::compare |
( |
const char * |
s |
) |
|
bool xbString::compare |
( |
char |
s |
) |
|
void xbString::ctor |
( |
const char * |
s, |
|
|
size_t |
maxlen | |
|
) |
| | [protected] |
Short description.
- Parameters:
-
void xbString::ctor |
( |
const char * |
s |
) |
[protected] |
Short description.
- Parameters:
-
char xbString::getCharacter |
( |
int |
n |
) |
const [inline] |
const char * xbString::getData |
( |
|
) |
const |
bool xbString::isEmpty |
( |
|
) |
const |
bool xbString::isNull |
( |
|
) |
const |
size_t xbString::len |
( |
|
) |
const |
size_t xbString::length |
( |
|
) |
const |
xbString xbString::mid |
( |
size_t |
pos = 0 , |
|
|
int |
n = npos | |
|
) |
| | const |
Short description.
- Parameters:
-
xbString::operator const char * |
( |
|
) |
const |
Short description.
NULL != !NULL
xbString & xbString::operator+= |
( |
char |
c |
) |
|
xbString & xbString::operator+= |
( |
const char * |
s |
) |
|
xbString & xbString::operator-= |
( |
const char * |
s |
) |
|
Short description.
NULL < !NULL
Short description.
NULL <= !NULL
xbString & xbString::operator= |
( |
char |
c |
) |
|
xbString & xbString::operator= |
( |
const char * |
s |
) |
|
Short description.
NULL == !NULL
Short description.
NULL > !NULL
Short description.
NULL >= !NULL
char xbString::operator[] |
( |
int |
n |
) |
[inline] |
int xbString::pos |
( |
const char * |
s |
) |
|
Short description.
- Parameters:
-
int xbString::pos |
( |
char |
c |
) |
|
Short description.
- Parameters:
-
void xbString::putAt |
( |
size_t |
pos, |
|
|
char |
c | |
|
) |
| | |
Short description.
- Parameters:
-
xbString & xbString::remove |
( |
size_t |
pos = 0 , |
|
|
int |
n = npos | |
|
) |
| | |
Short description.
- Parameters:
-
void xbString::resize |
( |
size_t |
size |
) |
|
Short description.
- Parameters:
-
void xbString::setNum |
( |
long |
num |
) |
|
Short description.
- Parameters:
-
xbString & xbString::sprintf |
( |
const char * |
format, |
|
|
|
... | |
|
) |
| | |
Short description.
- Parameters:
-
void xbString::toLowerCase |
( |
|
) |
|
Friends And Related Function Documentation
ostream& operator<< |
( |
ostream & |
os, |
|
|
const xbString & |
xbs | |
|
) |
| | [friend] |
Member Data Documentation
The documentation for this class was generated from the following files: