Source Code (Use browser search to find items of interest.)
Class Index
khexedit'CStringCollectControl (./kdeutils/khexedit/hexbuffer.h:227)
class CStringCollectControl
{
public:
CStringCollectControl( void )
{
mList.setAutoDelete( true );
}
int add( uint offset, const QByteArray &a )
{
QString *s = new QString();
if( s == 0 )
{
return( Err_NoMemory );
}
if( decimalOffset == true )
{
s->sprintf( "%010u", offset );
}
else
{
s->sprintf( "%04x:%04x", offset>>16, offset&0x0000FFFF );
}
*s += QString( a );
mList.append( s );
return( Err_Success );
}
uint offsetLen( void )
{
return( decimalOffset ? 10 : 9 );
}
void clear( void )
{
mList.clear();
}
const QString *get( uint index )
{
return( mList.at( index ) );
}
int count( void )
{
return( mList.count() );
}
QList<QString> &list( void )
{
return( mList );
}
public:
uint minLength;
bool decimalOffset;
bool allow8bit;
private:
QList<QString> mList;
};