Lines Matching refs:mpData
221 STRING_NEW((STRING_TYPE **)&mpData); in AssignAscii()
226 if ( (nLen == mpData->mnLen) && (mpData->mnRefCount == 1) ) in AssignAscii()
227 ImplCopyAsciiStr( mpData->maStr, pAsciiStr, nLen ); in AssignAscii()
231 STRING_RELEASE((STRING_TYPE *)mpData); in AssignAscii()
234 mpData = ImplAllocData( nLen ); in AssignAscii()
235 ImplCopyAsciiStr( mpData->maStr, pAsciiStr, nLen ); in AssignAscii()
267 STRING_NEW((STRING_TYPE **)&mpData); in AssignAscii()
272 if ( (nLen == mpData->mnLen) && (mpData->mnRefCount == 1) ) in AssignAscii()
273 ImplCopyAsciiStr( mpData->maStr, pAsciiStr, nLen ); in AssignAscii()
277 STRING_RELEASE((STRING_TYPE *)mpData); in AssignAscii()
280 mpData = ImplAllocData( nLen ); in AssignAscii()
281 ImplCopyAsciiStr( mpData->maStr, pAsciiStr, nLen ); in AssignAscii()
299 nCopyLen = ImplGetCopyLen( mpData->mnLen, nCopyLen ); in AppendAscii()
305 UniStringData* pNewData = ImplAllocData( mpData->mnLen+nCopyLen ); in AppendAscii()
308 memcpy( pNewData->maStr, mpData->maStr, mpData->mnLen*sizeof( sal_Unicode ) ); in AppendAscii()
309 ImplCopyAsciiStr( pNewData->maStr+mpData->mnLen, pAsciiStr, nCopyLen ); in AppendAscii()
312 STRING_RELEASE((STRING_TYPE *)mpData); in AppendAscii()
313 mpData = pNewData; in AppendAscii()
343 sal_Int32 nCopyLen = ImplGetCopyLen( mpData->mnLen, nLen ); in AppendAscii()
349 UniStringData* pNewData = ImplAllocData( mpData->mnLen+nCopyLen ); in AppendAscii()
352 memcpy( pNewData->maStr, mpData->maStr, mpData->mnLen*sizeof( sal_Unicode ) ); in AppendAscii()
353 ImplCopyAsciiStr( pNewData->maStr+mpData->mnLen, pAsciiStr, nCopyLen ); in AppendAscii()
356 STRING_RELEASE((STRING_TYPE *)mpData); in AppendAscii()
357 mpData = pNewData; in AppendAscii()
374 nCopyLen = ImplGetCopyLen( mpData->mnLen, nCopyLen ); in InsertAscii()
381 if ( nIndex > mpData->mnLen ) in InsertAscii()
382 nIndex = static_cast< xub_StrLen >(mpData->mnLen); in InsertAscii()
385 UniStringData* pNewData = ImplAllocData( mpData->mnLen+nCopyLen ); in InsertAscii()
388 memcpy( pNewData->maStr, mpData->maStr, nIndex*sizeof( sal_Unicode ) ); in InsertAscii()
390 memcpy( pNewData->maStr+nIndex+nCopyLen, mpData->maStr+nIndex, in InsertAscii()
391 (mpData->mnLen-nIndex)*sizeof( sal_Unicode ) ); in InsertAscii()
394 STRING_RELEASE((STRING_TYPE *)mpData); in InsertAscii()
395 mpData = pNewData; in InsertAscii()
409 if ( nIndex >= mpData->mnLen ) in ReplaceAscii()
416 if ( (nIndex == 0) && (nCount >= mpData->mnLen) ) in ReplaceAscii()
429 if ( nCount > mpData->mnLen - nIndex ) in ReplaceAscii()
430 nCount = static_cast< xub_StrLen >(mpData->mnLen-nIndex); in ReplaceAscii()
436 ImplCopyAsciiStr( mpData->maStr+nIndex, pAsciiStr, nStrLen ); in ReplaceAscii()
441 sal_Int32 n = ImplGetCopyLen( mpData->mnLen-nCount, nStrLen ); in ReplaceAscii()
444 STRINGDATA* pNewData = ImplAllocData( mpData->mnLen-nCount+n ); in ReplaceAscii()
447 memcpy( pNewData->maStr, mpData->maStr, nIndex*sizeof( STRCODE ) ); in ReplaceAscii()
449 memcpy( pNewData->maStr+nIndex+n, mpData->maStr+nIndex+nCount, in ReplaceAscii()
450 (mpData->mnLen-nIndex-nCount+1)*sizeof( STRCODE ) ); in ReplaceAscii()
453 STRING_RELEASE((STRING_TYPE *)mpData); in ReplaceAscii()
454 mpData = pNewData; in ReplaceAscii()
469 sal_Int32 nCompare = ImplStringCompareAscii( mpData->maStr, pAsciiStr, nLen ); in CompareToAscii()
490 sal_Int32 nCompare = ImplStringICompareAscii( mpData->maStr, pAsciiStr, nLen ); in CompareIgnoreCaseToAscii()
509 return (ImplStringCompareAscii( mpData->maStr, pAsciiStr ) == 0); in EqualsAscii()
520 return (ImplStringICompareAscii( mpData->maStr, pAsciiStr ) == 0); in EqualsIgnoreCaseAscii()
533 if ( nIndex > mpData->mnLen ) in EqualsAscii()
536 return (ImplStringCompareAscii( mpData->maStr+nIndex, pAsciiStr, nLen ) == 0); in EqualsAscii()
549 if ( nIndex > mpData->mnLen ) in EqualsIgnoreCaseAscii()
552 return (ImplStringICompareAscii( mpData->maStr+nIndex, pAsciiStr, nLen ) == 0); in EqualsIgnoreCaseAscii()
563 sal_Int32 nLen = mpData->mnLen; in SearchAscii()
571 const sal_Unicode* pStr = mpData->maStr; in SearchAscii()