19#ifdef CMAKE_COMPILER_IS_GNUCC
56 xbString(
const char *s, xbUInt32 lMaxLen);
65 operator const char *()
const;
66 char &operator[](xbUInt32 n)
const;
67 char &operator[](xbInt32 n)
const;
77 xbBool operator == (
const char * )
const;
79 xbBool operator != (
const char * )
const;
94 xbString &Append(
const char *s, xbUInt32 iByteCount );
96 xbString &Assign(
const char *srcStr, xbUInt32 lStartPos, xbUInt32 lCopyLen );
97 xbString &Assign(
const char *srcStr, xbUInt32 lStartPos );
102 xbUInt32 CountChar(
char c )
const;
103 xbUInt32 CountChar(
char c, xbInt16 iOpt )
const;
104 xbInt16 CvtHexChar(
char &cOut );
105 xbInt16 CvtHexString(
xbString &sOut );
106 xbInt16 CvtULongLong( xbUInt64 &ullOut );
107 xbInt16 CvtLongLong( xbInt64 &llOut );
109 #ifdef XB_DEBUG_SUPPORT
110 void Dump(
const char *title )
const;
111 void Dump(
const char *title, xbInt16 iOption )
const;
112 void DumpHex(
const char *title )
const;
115 xbString &ExtractElement(
const char *src,
char delim, xbUInt32 iCnt, xbInt16 iOpt = 0 );
116 char GetCharacter( xbUInt32 lPos )
const;
117 xbUInt32 GetLastPos(
char c)
const;
118 xbUInt32 GetLastPos(
const char *s)
const;
119 char GetPathSeparator()
const;
120 xbUInt32 GetSize()
const;
122 xbBool HasAlphaChars()
const;
127 xbUInt32 Len()
const;
131 xbString &Mid(xbUInt32 ulPos, xbUInt32 lLen );
132 xbString &PadLeft(
char c, xbUInt32 ulLen );
133 xbString &PadRight(
char c, xbUInt32 ulLen );
134 xbUInt32 Pos(
char c)
const;
135 xbUInt32 Pos(
const char *s)
const;
136 xbString &PutAt(xbUInt32 ulPos,
char c);
138 xbString &Remove( xbUInt32 ulPos, xbUInt32 ulN );
139 xbString &Replace(
const char *sReplace,
const char *sReplaceWith, xbInt16 iOpt = 0 );
145 xbString &Set(
const char *s, xbUInt32 ulSize );
147 xbString &Sprintf(
const char *format, ...);
149 const char *Str()
const;
150 char *strncpy(
char * cDest, xbUInt32 n )
const;
151 xbString &SwapChars(
char from,
char to );
157 xbBool ValidLogicalValue()
const;
158 xbBool ValidNumericValue()
const;
161 xbString &ZapTrailingChar(
char c );
167 static const char * NullString;
168 static char cJunkBuf;
173 void ctor(
const char *s);
179 char * xb_strcpy (
char *target,
const char *source);
Class for handling string data.
Definition: xbstring.h:50
Definition: xbdate.cpp:19
double xbDouble
Definition: xbtypes.h:23
short int xbBool
Definition: xbtypes.h:24
std::ostream & operator<<(std::ostream &os, const xbString &s)
Stream insertion operator <<.
Definition: xbstring.cpp:148