22 #define ROUND_SIZE(x) ((x)+BLOCK_SIZE-1)&~(BLOCK_SIZE-1) 24 #define DBG_STR(x) do { } while(0) 28 : m_data(0), m_len(0), m_memSize(0)
48 DBG_STR((
"%p: QGString::QGString(uint size=%d) %d:%s\n",
177 DBG_STR((
"%p: QGString::operator=(const QGString &%p) %d:%s\n",
209 assert(memSize>=len1+len2+1);
215 memcpy(
m_data + len1, s, len2 + 1 );
224 if (!str)
return *
this;
228 assert(memSize>=len1+len2+1);
234 memcpy(
m_data + len1, str, len2 + 1 );
245 assert(memSize>=len+2);
QGString & operator+=(const QGString &s)
Q_EXPORT uint qstrlen(const char *str)
Q_EXPORT char * qstrcpy(char *dst, const char *src)
bool enlarge(uint newlen)
QGString & operator=(const QGString &s)