xbString class
More...
#include <xbstring.h>
|
| 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) |
|
xbString & | operator= (const xbString &s) |
| Short description.
|
|
xbString & | operator= (const char *s) |
| Short description.
|
|
xbString & | operator= (char c) |
| Short description.
|
|
xbString & | operator+= (const char *s) |
| Short description.
|
|
xbString & | operator+= (char c) |
| Short description.
|
|
xbString & | operator-= (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.
|
|
xbString & | assign (const xbString &str, size_t pos=0, int n=npos) |
| Short description.
|
|
xbString & | assign (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.
|
|
xbString & | remove (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.
|
|
xbString & | sprintf (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.
|
|
|
void | ctor (const char *s) |
| Short description.
|
|
void | ctor (const char *s, size_t maxlen) |
| Short description.
|
|
◆ anonymous enum
◆ xbString() [1/6]
◆ xbString() [2/6]
xbString::xbString |
( |
size_t | size | ) |
|
Short description.
- Parameters
-
◆ xbString() [3/6]
xbString::xbString |
( |
char | c | ) |
|
Short description.
- Parameters
-
◆ xbString() [4/6]
xbString::xbString |
( |
const char * | s | ) |
|
Short description.
- Parameters
-
◆ xbString() [5/6]
xbString::xbString |
( |
const char * | s, |
|
|
size_t | maxlen ) |
Short description.
- Parameters
-
◆ xbString() [6/6]
xbString::xbString |
( |
const xbString & | s | ) |
|
Short description.
- Parameters
-
◆ ~xbString()
◆ addBackSlash()
void xbString::addBackSlash |
( |
char | c | ) |
|
Short description.
- Parameters
-
◆ assign() [1/2]
xbString & xbString::assign |
( |
char * | str, |
|
|
int | n ) |
Short description.
- Parameters
-
◆ assign() [2/2]
Short description.
- Parameters
-
◆ c_str()
const char * xbString::c_str |
( |
| ) |
const |
◆ copy()
◆ countChar()
int xbString::countChar |
( |
char | c | ) |
const |
Short description.
- Parameters
-
◆ ctor() [1/2]
void xbString::ctor |
( |
const char * | s | ) |
|
|
protected |
Short description.
- Parameters
-
◆ ctor() [2/2]
void xbString::ctor |
( |
const char * | s, |
|
|
size_t | maxlen ) |
|
protected |
Short description.
- Parameters
-
◆ cvtHexChar()
int xbString::cvtHexChar |
( |
char & | out | ) |
|
Short description.
- Parameters
-
◆ cvtHexString()
int xbString::cvtHexString |
( |
xbString & | out | ) |
|
Short description.
- Parameters
-
◆ getCharacter()
char xbString::getCharacter |
( |
int | n | ) |
const |
|
inline |
◆ getData()
const char * xbString::getData |
( |
| ) |
const |
◆ hasAlphaChars()
xbBool xbString::hasAlphaChars |
( |
| ) |
const |
◆ isEmpty()
xbBool xbString::isEmpty |
( |
| ) |
const |
◆ isNull()
xbBool xbString::isNull |
( |
| ) |
const |
◆ len()
size_t xbString::len |
( |
| ) |
const |
◆ length()
size_t xbString::length |
( |
| ) |
const |
◆ lTrunc()
void xbString::lTrunc |
( |
size_t | cnt | ) |
|
Short description.
- Parameters
-
◆ mid()
xbString xbString::mid |
( |
size_t | pos = 0, |
|
|
int | n = npos ) const |
Short description.
- Parameters
-
◆ operator const char *()
xbString::operator const char * |
( |
| ) |
const |
◆ operator!=()
Short description.
NULL != !NULL
◆ operator+=() [1/2]
xbString & xbString::operator+= |
( |
char | c | ) |
|
◆ operator+=() [2/2]
xbString & xbString::operator+= |
( |
const char * | s | ) |
|
◆ operator-=()
xbString & xbString::operator-= |
( |
const char * | s | ) |
|
◆ operator<()
Short description.
NULL < !NULL
◆ operator<=()
Short description.
NULL <= !NULL
◆ operator=() [1/3]
xbString & xbString::operator= |
( |
char | c | ) |
|
◆ operator=() [2/3]
xbString & xbString::operator= |
( |
const char * | s | ) |
|
◆ operator=() [3/3]
◆ operator==()
Short description.
NULL == !NULL
◆ operator>()
Short description.
NULL > !NULL
◆ operator>=()
Short description.
NULL >= !NULL
◆ operator[]()
char xbString::operator[] |
( |
int | n | ) |
|
|
inline |
◆ pos() [1/2]
int xbString::pos |
( |
char | c | ) |
|
Short description.
- Parameters
-
◆ pos() [2/2]
int xbString::pos |
( |
const char * | s | ) |
|
Short description.
- Parameters
-
◆ putAt()
void xbString::putAt |
( |
size_t | pos, |
|
|
char | c ) |
Short description.
- Parameters
-
◆ remove()
xbString & xbString::remove |
( |
size_t | pos = 0, |
|
|
int | n = npos ) |
Short description.
- Parameters
-
◆ resize()
void xbString::resize |
( |
size_t | size | ) |
|
Short description.
- Parameters
-
◆ setFromDelimitedInput()
int xbString::setFromDelimitedInput |
( |
const char * | src, |
|
|
char | delim, |
|
|
int | skipcnt, |
|
|
int | opt ) |
Short description.
- Parameters
-
◆ setNum() [1/2]
void xbString::setNum |
( |
char * | fmt, |
|
|
double | num ) |
Short description.
- Parameters
-
◆ setNum() [2/2]
void xbString::setNum |
( |
long | num | ) |
|
Short description.
- Parameters
-
◆ sprintf()
xbString & xbString::sprintf |
( |
const char * | format, |
|
|
| ... ) |
Short description.
- Parameters
-
◆ swapChars()
void xbString::swapChars |
( |
char | from, |
|
|
char | to ) |
Short description.
- Parameters
-
◆ toLowerCase()
void xbString::toLowerCase |
( |
| ) |
|
◆ toUpperCase()
void xbString::toUpperCase |
( |
| ) |
|
◆ trim()
◆ zapChar()
void xbString::zapChar |
( |
char | c | ) |
|
Short description.
- Parameters
-
◆ zapLeadingChar()
void xbString::zapLeadingChar |
( |
char | c | ) |
|
Short description.
- Parameters
-
◆ operator<<
◆ data
◆ NullString
const char * xbString::NullString = "" |
|
staticprotected |
◆ size
The documentation for this class was generated from the following files: