45 #ifndef __XBSTRING_H__
46 #define __XBSTRING_H__
77 xbString(
const char *s,
size_t maxlen);
89 size_t length()
const;
91 void resize(
size_t size);
94 xbString &sprintf(
const char *format, ...);
95 void setNum(
long num);
101 operator const char *()
const;
102 xbString &operator+=(
const char *s);
104 xbString &operator-=(
const char *s);
105 void putAt(
size_t pos,
char c);
107 const char *getData()
const;
108 const char *c_str()
const;
111 int pos(
const char* s);
113 bool compare(
char s);
114 bool compare(
const char *s);
118 bool operator < (
const xbString& )
const;
119 bool operator > (
const xbString& )
const;
120 bool operator <= (
const xbString& )
const;
121 bool operator >= (
const xbString& )
const;
125 xbString &
remove(
size_t pos = 0,
int n = npos);
126 xbString mid(
size_t pos = 0,
int n = npos)
const;
129 void ctor(
const char *s);
130 void ctor(
const char *s,
size_t maxlen);
char getCharacter(int n) const
Definition: xbstring.h:100
static const char * NullString
Definition: xbstring.h:134
xbString operator-(const xbString &s1, const xbString &s2)
Short description.
Definition: xbstring.cpp:592
#define XBDLLEXPORT
Definition: xbase.h:101
xbString operator+(const xbString &s1, const xbString &s2)
Short description.
Definition: xbstring.cpp:601
xbString class
Definition: xbstring.h:69
XBDLLEXPORT ostream & operator<<(ostream &os, const xbString &xbs)
Short description.
Definition: xbstring.cpp:585
char operator[](int n)
Definition: xbstring.h:99
bool operator!=(const xbString &s1, const char *s2)
Short description.
Definition: xbstring.cpp:488
char * data
Definition: xbstring.h:132
bool operator==(const xbString &s1, const char *s2)
Short description.
Definition: xbstring.cpp:469
size_t size
Definition: xbstring.h:133