41 #ifndef __XBSTRING_H__ 42 #define __XBSTRING_H__ 44 #ifdef __GNU_LesserG__ 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);
XBDLLEXPORT xbBool operator==(const xbString &s1, const char *s2)
Short description.
Definition: xbstring.cpp:476
short int xbBool
xbBool type
Definition: xbtypes.h:78
static const char * NullString
Definition: xbstring.h:132
#define XBDLLEXPORT
Definition: xbase64.h:87
XBDLLEXPORT xbString operator+(const xbString &s1, const xbString &s2)
Short description.
Definition: xbstring.cpp:609
XBDLLEXPORT std::ostream & operator<<(std::ostream &os, const xbString &xbs)
Short description.
Definition: xbstring.cpp:592
xbString class
Definition: xbstring.h:63
XBDLLEXPORT xbBool operator!=(const xbString &s1, const char *s2)
Short description.
Definition: xbstring.cpp:495
char operator[](int n)
Definition: xbstring.h:76
XBDLLEXPORT xbString operator-(const xbString &s1, const xbString &s2)
Short description.
Definition: xbstring.cpp:600
char * data
Definition: xbstring.h:130
size_t size
Definition: xbstring.h:131
char getCharacter(int n) const
Definition: xbstring.h:102