Lines Matching refs:nCopyLen
235 inline sal_Int32 ImplGetCopyLen( sal_Int32 nStrLen, sal_Int32 nCopyLen ) in ImplGetCopyLen() argument
237 OSL_ASSERT(nStrLen <= STRING_MAXLEN && nCopyLen <= STRING_MAXLEN); in ImplGetCopyLen()
238 if ( nCopyLen > STRING_MAXLEN-nStrLen ) in ImplGetCopyLen()
239 nCopyLen = STRING_MAXLEN-nStrLen; in ImplGetCopyLen()
240 return nCopyLen; in ImplGetCopyLen()
518 sal_Int32 nCopyLen = ImplGetCopyLen( nLen, rStr.mpData->mnLen ); in Append() local
521 if ( nCopyLen ) in Append()
524 STRINGDATA* pNewData = ImplAllocData( nLen+nCopyLen ); in Append()
528 memcpy( pNewData->maStr+nLen, rStr.mpData->maStr, nCopyLen*sizeof( STRCODE ) ); in Append()
548 sal_Int32 nCopyLen = ImplStringLen( pCharStr ); in Append() local
551 nCopyLen = ImplGetCopyLen( nLen, nCopyLen ); in Append()
554 if ( nCopyLen ) in Append()
557 STRINGDATA* pNewData = ImplAllocData( nLen+nCopyLen ); in Append()
561 memcpy( pNewData->maStr+nLen, pCharStr, nCopyLen*sizeof( STRCODE ) ); in Append()
596 sal_Int32 nCopyLen = ImplGetCopyLen( nLen, nCharLen ); in Append() local
599 if ( nCopyLen ) in Append()
602 STRINGDATA* pNewData = ImplAllocData( nLen+nCopyLen ); in Append()
606 memcpy( pNewData->maStr+nLen, pCharStr, nCopyLen*sizeof( STRCODE ) ); in Append()
661 sal_Int32 nCopyLen = ImplGetCopyLen( mpData->mnLen, rStr.mpData->mnLen ); in Insert() local
664 if ( !nCopyLen ) in Insert()
672 STRINGDATA* pNewData = ImplAllocData( mpData->mnLen+nCopyLen ); in Insert()
676 memcpy( pNewData->maStr+nIndex, rStr.mpData->maStr, nCopyLen*sizeof( STRCODE ) ); in Insert()
677 memcpy( pNewData->maStr+nIndex+nCopyLen, mpData->maStr+nIndex, in Insert()
707 sal_Int32 nCopyLen = ImplGetCopyLen( mpData->mnLen, nLen ); in Insert() local
710 if ( !nCopyLen ) in Insert()
718 STRINGDATA* pNewData = ImplAllocData( mpData->mnLen+nCopyLen ); in Insert()
722 memcpy( pNewData->maStr+nIndex, rStr.mpData->maStr+nPos, nCopyLen*sizeof( STRCODE ) ); in Insert()
723 memcpy( pNewData->maStr+nIndex+nCopyLen, mpData->maStr+nIndex, in Insert()
741 sal_Int32 nCopyLen = ImplStringLen( pCharStr ); in Insert() local
744 nCopyLen = ImplGetCopyLen( mpData->mnLen, nCopyLen ); in Insert()
747 if ( !nCopyLen ) in Insert()
755 STRINGDATA* pNewData = ImplAllocData( mpData->mnLen+nCopyLen ); in Insert()
759 memcpy( pNewData->maStr+nIndex, pCharStr, nCopyLen*sizeof( STRCODE ) ); in Insert()
760 memcpy( pNewData->maStr+nIndex+nCopyLen, mpData->maStr+nIndex, in Insert()