8 static unsigned int ZERO = 0;
18 unsigned int m_Length;
19 unsigned int m_Allocated;
20 unsigned int m_Increment;
44 void append( std::string str );
77 void convertFromString( std::string * str,
unsigned int & = ZERO,
const char =
'\0' );
87 if(m_Allocated < m_Length +
sizeof( T ) + 2)
91 append( getType(par) );
92 memcpy( m_String + m_Length, &par,
sizeof( T ) );
93 m_Length +=
sizeof( T );
94 append( getType(par) );
101 void append(
const char ch );
109 void append(
const char * data,
int length);
131 char * pPos = m_String + pos + 1;
135 while(((pPos - m_String) < static_cast<int>(m_Length) ) && (*pPos == getType(pParams)))
138 memcpy(pParams + paramsCnt, ++pPos,
sizeof(T));
144 pos = pPos - m_String - 1;
162 char *
getData(
unsigned int & pos,
unsigned int &
length,
char delimiter);
180 int matchRight(
char ch,
int pos,
const std::string * ignore = NULL,
const std::string * consider = NULL );
191 int matchLeft(
char ch,
int pos,
const std::string * ignore = NULL,
const std::string * consider = NULL );
240 #endif // LONGSTRING_H