71 xbString(
const char *s,
size_t maxlen);
75 operator const char *()
const;
94 void addBackSlash(
char c );
98 const char *c_str()
const;
99 int countChar(
char c )
const;
100 int cvtHexChar(
char & out );
103 const char *getData()
const;
104 xbBool hasAlphaChars()
const;
108 size_t length()
const;
109 xbString mid(
size_t pos = 0,
int n = npos)
const;
110 void lTrunc(
size_t cnt );
112 int pos(
const char* s);
113 void putAt(
size_t pos,
char c);
114 xbString &remove(
size_t pos = 0,
int n = npos);
115 void resize(
size_t size);
116 void setNum(
long num);
117 void setNum(
char * fmt,
double num);
118 xbString &sprintf(
const char *format, ...);
119 void swapChars(
char from,
char to );
123 void zapChar(
char c );
124 void zapLeadingChar(
char c );
125 int setFromDelimitedInput(
const char *,
char,
int,
int );
128 void ctor(
const char *s);
129 void ctor(
const char *s,
size_t maxlen);
xbString class
Definition xbstring.h:63
char operator[](int n)
Definition xbstring.h:76
char getCharacter(int n) const
Definition xbstring.h:102
xbString()
Short description.
Definition xbstring.cpp:85
size_t size
Definition xbstring.h:131
@ npos
Definition xbstring.h:65
char * data
Definition xbstring.h:130
static const char * NullString
Definition xbstring.h:132
#define XBDLLEXPORT
Definition xbase64.h:87
XBDLLEXPORT std::ostream & operator<<(std::ostream &os, const xbString &xbs)
Short description.
Definition xbstring.cpp:592
XBDLLEXPORT xbBool operator==(const xbString &s1, const char *s2)
Short description.
Definition xbstring.cpp:476
XBDLLEXPORT xbBool operator!=(const xbString &s1, const char *s2)
Short description.
Definition xbstring.cpp:495
XBDLLEXPORT xbBool operator==(const xbString &s1, const char *s2)
Short description.
Definition xbstring.cpp:476
XBDLLEXPORT xbString operator-(const xbString &s1, const xbString &s2)
Short description.
Definition xbstring.cpp:600
XBDLLEXPORT xbString operator+(const xbString &s1, const xbString &s2)
Short description.
Definition xbstring.cpp:609
XBDLLEXPORT xbBool operator!=(const xbString &s1, const char *s2)
Short description.
Definition xbstring.cpp:495
short int xbBool
xbBool type
Definition xbtypes.h:78