Xbase Class Library
2.0.0
|
#include <xbstring.h>
Public Types | |
enum | { npos = -1 } |
Public Member Functions | |
xbString () | |
Short description. More... | |
xbString (size_t size) | |
Short description. More... | |
xbString (char c) | |
Short description. More... | |
xbString (const char *s) | |
Short description. More... | |
xbString (const char *s, size_t maxlen) | |
Short description. More... | |
xbString (const xbString &s) | |
Short description. More... | |
~xbString () | |
Short description. More... | |
xbString & | operator= (const xbString &s) |
Short description. More... | |
xbString & | operator= (const char *s) |
Short description. More... | |
xbString & | operator= (char c) |
Short description. More... | |
bool | isNull () const |
Short description. More... | |
bool | isEmpty () const |
Short description. More... | |
size_t | len () const |
Short description. More... | |
size_t | length () const |
Short description. More... | |
void | resize (size_t size) |
Short description. More... | |
xbString | copy () const |
Short description. More... | |
xbString & | sprintf (const char *format,...) |
Short description. More... | |
void | setNum (long num) |
Short description. More... | |
xbString & | assign (const xbString &str, size_t pos=0, int n=npos) |
Short description. More... | |
xbString & | assign (char *str, int n) |
Short description. More... | |
char | operator[] (int n) |
char | getCharacter (int n) const |
operator const char * () const | |
Short description. More... | |
xbString & | operator+= (const char *s) |
Short description. More... | |
xbString & | operator+= (char c) |
Short description. More... | |
xbString & | operator-= (const char *s) |
Short description. More... | |
void | putAt (size_t pos, char c) |
Short description. More... | |
const char * | getData () const |
Short description. More... | |
const char * | c_str () const |
Short description. More... | |
void | toLowerCase () |
Short description. More... | |
int | pos (char c) |
Short description. More... | |
int | pos (const char *s) |
Short description. More... | |
void | trim () |
Short description. More... | |
bool | compare (char s) |
bool | compare (const char *s) |
bool | operator== (const xbString &) const |
Short description. More... | |
bool | operator!= (const xbString &) const |
Short description. More... | |
bool | operator< (const xbString &) const |
Short description. More... | |
bool | operator> (const xbString &) const |
Short description. More... | |
bool | operator<= (const xbString &) const |
Short description. More... | |
bool | operator>= (const xbString &) const |
Short description. More... | |
xbString & | remove (size_t pos=0, int n=npos) |
Short description. More... | |
xbString | mid (size_t pos=0, int n=npos) const |
Short description. More... | |
Protected Member Functions | |
void | ctor (const char *s) |
Short description. More... | |
void | ctor (const char *s, size_t maxlen) |
Short description. More... | |
Protected Attributes | |
char * | data |
size_t | size |
Static Protected Attributes | |
static const char * | NullString = "" |
Friends | |
ostream & | operator<< (ostream &, const xbString &) |
Short description. More... | |
xbString class
xbString::xbString | ( | ) |
Short description.
xbString::xbString | ( | size_t | size | ) |
Short description.
size |
xbString::xbString | ( | char | c | ) |
Short description.
c |
xbString::xbString | ( | const char * | s | ) |
Short description.
s |
xbString::xbString | ( | const char * | s, |
size_t | maxlen | ||
) |
Short description.
s | |
maxlen |
xbString::xbString | ( | const xbString & | s | ) |
Short description.
s |
xbString::~xbString | ( | ) |
Short description.
Short description.
str | |
pos | |
n |
xbString & xbString::assign | ( | char * | str, |
int | n | ||
) |
Short description.
str | |
pos | |
n |
const char * xbString::c_str | ( | ) | const |
Short description.
bool xbString::compare | ( | char | s | ) |
bool xbString::compare | ( | const char * | s | ) |
xbString xbString::copy | ( | ) | const |
Short description.
|
protected |
Short description.
s |
|
protected |
Short description.
s | |
maxlen |
|
inline |
const char * xbString::getData | ( | ) | const |
Short description.
bool xbString::isEmpty | ( | ) | const |
Short description.
bool xbString::isNull | ( | ) | const |
Short description.
size_t xbString::len | ( | ) | const |
Short description.
size_t xbString::length | ( | ) | const |
Short description.
xbString::operator const char * | ( | ) | const |
Short description.
bool xbString::operator!= | ( | const xbString & | s2 | ) | const |
Short description.
NULL != !NULL
xbString & xbString::operator+= | ( | const char * | s | ) |
Short description.
xbString & xbString::operator+= | ( | char | c | ) |
Short description.
xbString & xbString::operator-= | ( | const char * | s | ) |
Short description.
bool xbString::operator< | ( | const xbString & | s2 | ) | const |
Short description.
NULL < !NULL
bool xbString::operator<= | ( | const xbString & | s2 | ) | const |
Short description.
NULL <= !NULL
xbString & xbString::operator= | ( | const char * | s | ) |
Short description.
xbString & xbString::operator= | ( | char | c | ) |
Short description.
bool xbString::operator== | ( | const xbString & | s2 | ) | const |
Short description.
NULL == !NULL
bool xbString::operator> | ( | const xbString & | s2 | ) | const |
Short description.
NULL > !NULL
bool xbString::operator>= | ( | const xbString & | s2 | ) | const |
Short description.
NULL >= !NULL
|
inline |
int xbString::pos | ( | char | c | ) |
Short description.
c |
int xbString::pos | ( | const char * | s | ) |
Short description.
s |
void xbString::putAt | ( | size_t | pos, |
char | c | ||
) |
Short description.
pos | |
c |
void xbString::resize | ( | size_t | size | ) |
Short description.
size |
void xbString::setNum | ( | long | num | ) |
Short description.
num |
xbString & xbString::sprintf | ( | const char * | format, |
... | |||
) |
Short description.
format |
void xbString::toLowerCase | ( | ) |
Short description.
void xbString::trim | ( | ) |
Short description.
|
friend |
Short description.
|
protected |
|
staticprotected |
|
protected |