unused methods
This commit is contained in:
@@ -193,42 +193,6 @@ sal_Char* createName( sal_Char* dst, const sal_Char* meth, sal_uInt32 cnt )
|
||||
return( pdst );
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------
|
||||
// testing the method compareTo( const OString & aStr )
|
||||
//------------------------------------------------------------------------
|
||||
void makeComment( char *com, const char *str1, const char *str2,
|
||||
sal_Int32 sgn )
|
||||
{
|
||||
cpystr(com, str1);
|
||||
int str1Length = AStringLen( str1 );
|
||||
const char *sign = (sgn == 0) ? " == " : (sgn > 0) ? " > " : " < " ;
|
||||
cpystr(com + str1Length, sign);
|
||||
int signLength = AStringLen(sign);
|
||||
cpystr(com + str1Length + signLength, str2);
|
||||
com[str1Length + signLength + AStringLen(str2)] = 0;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------
|
||||
|
||||
sal_uInt32 UStringLen( const sal_Unicode *pUStr )
|
||||
{
|
||||
sal_uInt32 nUStrLen = 0;
|
||||
|
||||
if ( pUStr != NULL )
|
||||
{
|
||||
const sal_Unicode *pTempUStr = pUStr;
|
||||
|
||||
while( *pTempUStr )
|
||||
{
|
||||
pTempUStr++;
|
||||
} // while
|
||||
|
||||
nUStrLen = (sal_uInt32)( pTempUStr - pUStr );
|
||||
} // if
|
||||
|
||||
return nUStrLen;
|
||||
} // UStringLen
|
||||
|
||||
//------------------------------------------------------------------------
|
||||
|
||||
static inline sal_Int32 ACharToUCharCompare( const sal_Unicode *pUStr,
|
||||
|
@@ -55,13 +55,10 @@ sal_Bool cmpustr( const sal_Unicode* str1, const sal_Unicode* str2, sal_uInt32 l
|
||||
sal_Bool cmpustr( const sal_Unicode* str1, const sal_Unicode* str2 );
|
||||
|
||||
sal_Char* createName( sal_Char* dst, const sal_Char* src, sal_uInt32 cnt );
|
||||
void makeComment(char *com, const char *str1, const char *str2, sal_Int32 sgn);
|
||||
|
||||
|
||||
sal_uInt32 AStringLen( const sal_Char *pAStr );
|
||||
|
||||
sal_uInt32 UStringLen( const sal_Unicode *pUStr );
|
||||
|
||||
//------------------------------------------------------------------------
|
||||
|
||||
sal_Bool AStringNIsValid( const sal_Char *pAStr,
|
||||
|
@@ -170,40 +170,6 @@ sal_Char* createName( sal_Char* dst, const sal_Char* meth, sal_uInt32 cnt )
|
||||
return( pdst );
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------
|
||||
// testing the method compareTo( const OString & aStr )
|
||||
//------------------------------------------------------------------------
|
||||
void makeComment( char *com, const char *str1, const char *str2,
|
||||
sal_Int32 sgn )
|
||||
{
|
||||
cpystr(com, str1);
|
||||
int str1Length = AStringLen( str1 );
|
||||
const char *sign = (sgn == 0) ? " == " : (sgn > 0) ? " > " : " < " ;
|
||||
cpystr(com + str1Length, sign);
|
||||
int signLength = AStringLen(sign);
|
||||
cpystr(com + str1Length + signLength, str2);
|
||||
com[str1Length + signLength + AStringLen(str2)] = 0;
|
||||
}
|
||||
|
||||
sal_uInt32 UStringLen( const sal_Unicode *pUStr )
|
||||
{
|
||||
sal_uInt32 nUStrLen = 0;
|
||||
|
||||
if ( pUStr != NULL )
|
||||
{
|
||||
const sal_Unicode *pTempUStr = pUStr;
|
||||
|
||||
while( *pTempUStr )
|
||||
{
|
||||
pTempUStr++;
|
||||
} // while
|
||||
|
||||
nUStrLen = (sal_uInt32)( pTempUStr - pUStr );
|
||||
} // if
|
||||
|
||||
return nUStrLen;
|
||||
} // UStringLen
|
||||
|
||||
//------------------------------------------------------------------------
|
||||
|
||||
static inline sal_Int32 ACharToUCharCompare( const sal_Unicode *pUStr,
|
||||
|
@@ -54,13 +54,10 @@ sal_Bool cmpustr( const sal_Unicode* str1, const sal_Unicode* str2, sal_uInt32 l
|
||||
sal_Bool cmpustr( const sal_Unicode* str1, const sal_Unicode* str2 );
|
||||
|
||||
sal_Char* createName( sal_Char* dst, const sal_Char* src, sal_uInt32 cnt );
|
||||
void makeComment(char *com, const char *str1, const char *str2, sal_Int32 sgn);
|
||||
|
||||
|
||||
sal_uInt32 AStringLen( const sal_Char *pAStr );
|
||||
|
||||
sal_uInt32 UStringLen( const sal_Unicode *pUStr );
|
||||
|
||||
//------------------------------------------------------------------------
|
||||
|
||||
sal_Bool AStringNIsValid( const sal_Char *pAStr,
|
||||
|
Reference in New Issue
Block a user