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 );
98 xbString &Assign(
const xbString &s, xbUInt32 ulStartPos, xbUInt32 lCopyLen );
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(
xbString &s,
char delim, xbUInt32 iCnt, xbInt16 iOpt = 0 );
116 xbString &ExtractElement(
const char *src,
char delim, xbUInt32 iCnt, xbInt16 iOpt = 0 );
118 char GetCharacter( xbUInt32 lPos )
const;
119 xbUInt32 GetLastPos(
char c)
const;
120 xbUInt32 GetLastPos(
const char *s)
const;
121 char GetPathSeparator()
const;
122 xbUInt32 GetSize()
const;
124 xbBool HasAlphaChars()
const;
129 xbUInt32 Len()
const;
133 xbString &Mid(xbUInt32 ulPos, xbUInt32 lLen );
134 xbString &PadLeft(
char c, xbUInt32 ulLen );
135 xbString &PadRight(
char c, xbUInt32 ulLen );
137 xbUInt32 Pos(
char c, xbUInt32 ulStartPos )
const;
138 xbUInt32 Pos(
char c)
const;
139 xbUInt32 Pos(
const char *s)
const;
140 xbString &PutAt(xbUInt32 ulPos,
char c);
142 xbString &Remove( xbUInt32 ulPos, xbUInt32 ulN );
143 xbString &Replace(
const char *sReplace,
const char *sReplaceWith, xbInt16 iOpt = 0 );
149 xbString &Set(
const char *s, xbUInt32 ulSize );
151 xbString &Sprintf(
const char *format, ...);
153 const char *Str()
const;
154 char *strncpy(
char * cDest, xbUInt32 n )
const;
155 xbString &SwapChars(
char from,
char to );
161 xbBool ValidLogicalValue()
const;
162 xbBool ValidNumericValue()
const;
165 xbString &ZapTrailingChar(
char c );
171 static const char * NullString;
172 static char cJunkBuf;
177 void ctor(
const char *s);
183 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