Remove SvStringISort
This commit is contained in:
parent
4497c499d2
commit
9556b3847e
2 changed files with 0 additions and 53 deletions
|
@ -50,11 +50,6 @@ SV_DECL_PTRARR_DEL_VISIBILITY( SvStringsDtor, StringPtr, 1, 1, SVL_DLLPUBLIC )
|
|||
#define _SVSTDARR_STRINGSDTOR_DECL
|
||||
#endif
|
||||
|
||||
#ifndef _SVSTDARR_STRINGSISORT_DECL
|
||||
SV_DECL_PTRARR_SORT_VISIBILITY( SvStringsISort, StringPtr, 1, 1, SVL_DLLPUBLIC )
|
||||
#define _SVSTDARR_STRINGSISORT_DECL
|
||||
#endif
|
||||
|
||||
#ifndef _SVSTDARR_STRINGSISORTDTOR_DECL
|
||||
SV_DECL_PTRARR_SORT_DEL_VISIBILITY( SvStringsISortDtor, StringPtr, 1, 1, SVL_DLLPUBLIC )
|
||||
#define _SVSTDARR_STRINGSISORTDTOR_DECL
|
||||
|
|
|
@ -28,7 +28,6 @@
|
|||
|
||||
#define _SVSTDARR_STRINGSDTOR
|
||||
#define _SVSTDARR_STRINGSSORTDTOR
|
||||
#define _SVSTDARR_STRINGSISORT
|
||||
|
||||
#include <svl/svstdarr.hxx>
|
||||
#include <tools/debug.hxx>
|
||||
|
@ -45,53 +44,6 @@ SV_IMPL_PTRARR( SvStringsDtor, StringPtr )
|
|||
|
||||
// ---------------- strings -------------------------------------
|
||||
|
||||
// Array with different Seek method
|
||||
_SV_IMPL_SORTAR_ALG( SvStringsISort, StringPtr )
|
||||
void SvStringsISort::DeleteAndDestroy( sal_uInt16 nP, sal_uInt16 nL )
|
||||
{
|
||||
if( nL )
|
||||
{
|
||||
DBG_ASSERT( nP < nA && nP + nL <= nA, "ERR_VAR_DEL" );
|
||||
for( sal_uInt16 n=nP; n < nP + nL; n++ )
|
||||
delete *((StringPtr*)pData+n);
|
||||
SvPtrarr::Remove( nP, nL );
|
||||
}
|
||||
}
|
||||
sal_Bool SvStringsISort::Seek_Entry( const StringPtr aE, sal_uInt16* pP ) const
|
||||
{
|
||||
register sal_uInt16 nO = SvStringsISort_SAR::Count(),
|
||||
nM,
|
||||
nU = 0;
|
||||
if( nO > 0 )
|
||||
{
|
||||
nO--;
|
||||
while( nU <= nO )
|
||||
{
|
||||
nM = nU + ( nO - nU ) / 2;
|
||||
StringCompare eCmp = (*((StringPtr*)pData + nM))->
|
||||
CompareIgnoreCaseToAscii( *(aE) );
|
||||
if( COMPARE_EQUAL == eCmp )
|
||||
{
|
||||
if( pP ) *pP = nM;
|
||||
return sal_True;
|
||||
}
|
||||
else if( COMPARE_LESS == eCmp )
|
||||
nU = nM + 1;
|
||||
else if( nM == 0 )
|
||||
{
|
||||
if( pP ) *pP = nU;
|
||||
return sal_False;
|
||||
}
|
||||
else
|
||||
nO = nM - 1;
|
||||
}
|
||||
}
|
||||
if( pP ) *pP = nU;
|
||||
return sal_False;
|
||||
}
|
||||
|
||||
// ---------------- strings -------------------------------------
|
||||
|
||||
// Array with different Seek method
|
||||
_SV_IMPL_SORTAR_ALG( SvStringsISortDtor, StringPtr )
|
||||
void SvStringsISortDtor::DeleteAndDestroy( sal_uInt16 nP, sal_uInt16 nL )
|
||||
|
|
Loading…
Reference in a new issue