Lines Matching refs:nCount

44 									xub_StrLen nCount )  in ImplStringCompare()  argument
47 while ( nCount && in ImplStringCompare()
53 --nCount; in ImplStringCompare()
62 sal_Int32 nCount ) in ImplStringCompareWithoutZero() argument
65 while ( nCount && in ImplStringCompareWithoutZero()
70 --nCount; in ImplStringCompareWithoutZero()
107 xub_StrLen nCount ) in ImplStringICompare() argument
114 if ( !nCount ) in ImplStringICompare()
130 --nCount; in ImplStringICompare()
140 sal_Int32 nCount ) in ImplStringICompareWithoutZero() argument
147 if ( !nCount ) in ImplStringICompareWithoutZero()
161 --nCount; in ImplStringICompareWithoutZero()
802 STRING& STRING::Replace( xub_StrLen nIndex, xub_StrLen nCount, const STRING& rStr ) in Replace() argument
815 if ( (nIndex == 0) && (nCount >= mpData->mnLen) ) in Replace()
824 return Erase( nIndex, nCount ); in Replace()
827 if ( nCount > mpData->mnLen - nIndex ) in Replace()
828 nCount = static_cast< xub_StrLen >(mpData->mnLen-nIndex); in Replace()
831 if ( !nCount ) in Replace()
835 if ( nCount == nStrLen ) in Replace()
838 memcpy( mpData->maStr+nIndex, rStr.mpData->maStr, nCount*sizeof( STRCODE ) ); in Replace()
843 nStrLen = ImplGetCopyLen( mpData->mnLen-nCount, nStrLen ); in Replace()
846 STRINGDATA* pNewData = ImplAllocData( mpData->mnLen-nCount+nStrLen ); in Replace()
851 memcpy( pNewData->maStr+nIndex+nStrLen, mpData->maStr+nIndex+nCount, in Replace()
852 (mpData->mnLen-nIndex-nCount+1)*sizeof( STRCODE ) ); in Replace()
863 STRING& STRING::Erase( xub_StrLen nIndex, xub_StrLen nCount ) in Erase() argument
868 if ( (nIndex >= mpData->mnLen) || !nCount ) in Erase()
872 if ( nCount > mpData->mnLen - nIndex ) in Erase()
873 nCount = static_cast< xub_StrLen >(mpData->mnLen-nIndex); in Erase()
876 if ( mpData->mnLen - nCount ) in Erase()
879 STRINGDATA* pNewData = ImplAllocData( mpData->mnLen-nCount ); in Erase()
883 memcpy( pNewData->maStr+nIndex, mpData->maStr+nIndex+nCount, in Erase()
884 (mpData->mnLen-nIndex-nCount+1)*sizeof( STRCODE ) ); in Erase()
900 STRING& STRING::Fill( xub_StrLen nCount, STRCODE cFillChar ) in Fill() argument
904 if ( !nCount ) in Fill()
908 if ( nCount > mpData->mnLen ) in Fill()
911 STRINGDATA* pNewData = ImplAllocData( nCount ); in Fill()
923 --nCount; in Fill()
925 while ( nCount ); in Fill()
932 STRING& STRING::Expand( xub_StrLen nCount, STRCODE cExpandChar ) in Expand() argument
938 if ( nCount <= nLen ) in Expand()
942 STRINGDATA* pNewData = ImplAllocData( nCount ); in Expand()
950 for (sal_Int32 i = nCount - nLen; i > 0; --i) { in Expand()
1020 sal_Int32 nCount = 0; in EraseAllChars() local
1023 ++nCount; in EraseAllChars()
1026 if ( nCount ) in EraseAllChars()
1028 if ( nCount == mpData->mnLen ) in EraseAllChars()
1035 STRINGDATA* pNewData = ImplAllocData( mpData->mnLen-nCount ); in EraseAllChars()
1038 nCount = 0; in EraseAllChars()
1043 pNewData->maStr[nCount] = mpData->maStr[j]; in EraseAllChars()
1044 ++nCount; in EraseAllChars()
1070 sal_Int32 nCount = mpData->mnLen / 2; in Reverse() local
1071 for ( sal_Int32 i = 0; i < nCount; ++i ) in Reverse()