Lines Matching refs:rStr
255 STRING::STRING( const STRING& rStr ) in STRING() argument
258 DBG_CHKOBJ( &rStr, STRING, DBGCHECKSTRING ); in STRING()
262 STRING_ACQUIRE((STRING_TYPE *)rStr.mpData); in STRING()
263 mpData = rStr.mpData; in STRING()
268 STRING::STRING( const STRING& rStr, xub_StrLen nPos, xub_StrLen nLen ) in STRING() argument
272 DBG_CHKOBJ( &rStr, STRING, DBGCHECKSTRING ); in STRING()
275 if ( nPos > rStr.mpData->mnLen ) in STRING()
280 sal_Int32 nMaxLen = rStr.mpData->mnLen-nPos; in STRING()
289 if ( (nPos == 0) && (nLen == rStr.mpData->mnLen) ) in STRING()
291 STRING_ACQUIRE((STRING_TYPE *)rStr.mpData); in STRING()
292 mpData = rStr.mpData; in STRING()
298 memcpy( mpData->maStr, rStr.mpData->maStr+nPos, nLen*sizeof( STRCODE ) ); in STRING()
396 STRING& STRING::Assign( const STRING& rStr ) in Assign() argument
399 DBG_CHKOBJ( &rStr, STRING, DBGCHECKSTRING ); in Assign()
401 STRING_ACQUIRE((STRING_TYPE *)rStr.mpData); in Assign()
403 mpData = rStr.mpData; in Assign()
502 STRING& STRING::Append( const STRING& rStr ) in Append() argument
505 DBG_CHKOBJ( &rStr, STRING, DBGCHECKSTRING ); in Append()
511 STRING_ACQUIRE((STRING_TYPE *)rStr.mpData); in Append()
513 mpData = rStr.mpData; in Append()
518 sal_Int32 nCopyLen = ImplGetCopyLen( nLen, rStr.mpData->mnLen ); in Append()
528 memcpy( pNewData->maStr+nLen, rStr.mpData->maStr, nCopyLen*sizeof( STRCODE ) ); in Append()
655 STRING& STRING::Insert( const STRING& rStr, xub_StrLen nIndex ) in Insert() argument
658 DBG_CHKOBJ( &rStr, STRING, DBGCHECKSTRING ); in Insert()
661 sal_Int32 nCopyLen = ImplGetCopyLen( mpData->mnLen, rStr.mpData->mnLen ); in Insert()
676 memcpy( pNewData->maStr+nIndex, rStr.mpData->maStr, nCopyLen*sizeof( STRCODE ) ); in Insert()
689 STRING& STRING::Insert( const STRING& rStr, xub_StrLen nPos, xub_StrLen nLen, in Insert() argument
693 DBG_CHKOBJ( &rStr, STRING, DBGCHECKSTRING ); in Insert()
696 if ( nPos > rStr.mpData->mnLen ) in Insert()
701 sal_Int32 nMaxLen = rStr.mpData->mnLen-nPos; in Insert()
722 memcpy( pNewData->maStr+nIndex, rStr.mpData->maStr+nPos, nCopyLen*sizeof( STRCODE ) ); in Insert()
802 STRING& STRING::Replace( xub_StrLen nIndex, xub_StrLen nCount, const STRING& rStr ) in Replace() argument
805 DBG_CHKOBJ( &rStr, STRING, DBGCHECKSTRING ); in Replace()
810 Append( rStr ); in Replace()
817 Assign( rStr ); in Replace()
822 sal_Int32 nStrLen = rStr.mpData->mnLen; in Replace()
832 return Insert( rStr, nIndex ); in Replace()
838 memcpy( mpData->maStr+nIndex, rStr.mpData->maStr, nCount*sizeof( STRCODE ) ); in Replace()
850 memcpy( pNewData->maStr+nIndex, rStr.mpData->maStr, nStrLen*sizeof( STRCODE ) ); in Replace()
1236 StringCompare STRING::CompareTo( const STRING& rStr, xub_StrLen nLen ) const in CompareTo() argument
1239 DBG_CHKOBJ( &rStr, STRING, DBGCHECKSTRING ); in CompareTo()
1242 if ( mpData == rStr.mpData ) in CompareTo()
1248 if ( rStr.mpData->mnLen < nLen ) in CompareTo()
1249 nLen = static_cast< xub_StrLen >(rStr.mpData->mnLen+1); in CompareTo()
1252 sal_Int32 nCompare = ImplStringCompareWithoutZero( mpData->maStr, rStr.mpData->maStr, nLen ); in CompareTo()
1283 StringCompare STRING::CompareIgnoreCaseToAscii( const STRING& rStr, in CompareIgnoreCaseToAscii() argument
1287 DBG_CHKOBJ( &rStr, STRING, DBGCHECKSTRING ); in CompareIgnoreCaseToAscii()
1290 if ( mpData == rStr.mpData ) in CompareIgnoreCaseToAscii()
1296 if ( rStr.mpData->mnLen < nLen ) in CompareIgnoreCaseToAscii()
1297 nLen = static_cast< xub_StrLen >(rStr.mpData->mnLen+1); in CompareIgnoreCaseToAscii()
1300 sal_Int32 nCompare = ImplStringICompareWithoutZero( mpData->maStr, rStr.mpData->maStr, nLen ); in CompareIgnoreCaseToAscii()
1332 sal_Bool STRING::Equals( const STRING& rStr ) const in Equals()
1335 DBG_CHKOBJ( &rStr, STRING, DBGCHECKSTRING ); in Equals()
1338 if ( mpData == rStr.mpData ) in Equals()
1342 if ( mpData->mnLen != rStr.mpData->mnLen ) in Equals()
1346 return (ImplStringCompareWithoutZero( mpData->maStr, rStr.mpData->maStr, mpData->mnLen ) == 0); in Equals()
1360 sal_Bool STRING::EqualsIgnoreCaseAscii( const STRING& rStr ) const in EqualsIgnoreCaseAscii()
1363 DBG_CHKOBJ( &rStr, STRING, DBGCHECKSTRING ); in EqualsIgnoreCaseAscii()
1366 if ( mpData == rStr.mpData ) in EqualsIgnoreCaseAscii()
1370 if ( mpData->mnLen != rStr.mpData->mnLen ) in EqualsIgnoreCaseAscii()
1374 return (ImplStringICompareWithoutZero( mpData->maStr, rStr.mpData->maStr, mpData->mnLen ) == 0); in EqualsIgnoreCaseAscii()
1388 sal_Bool STRING::Equals( const STRING& rStr, xub_StrLen nIndex, xub_StrLen nLen ) const in Equals() argument
1391 DBG_CHKOBJ( &rStr, STRING, DBGCHECKSTRING ); in Equals()
1395 return (rStr.mpData->mnLen == 0); in Equals()
1399 if ( rStr.mpData->mnLen != nMaxLen ) in Equals()
1405 return (ImplStringCompareWithoutZero( mpData->maStr+nIndex, rStr.mpData->maStr, nLen ) == 0); in Equals()
1423 sal_Bool STRING::EqualsIgnoreCaseAscii( const STRING& rStr, xub_StrLen nIndex, xub_StrLen nLen ) co… in EqualsIgnoreCaseAscii() argument
1426 DBG_CHKOBJ( &rStr, STRING, DBGCHECKSTRING ); in EqualsIgnoreCaseAscii()
1430 return (rStr.mpData->mnLen == 0); in EqualsIgnoreCaseAscii()
1434 if ( rStr.mpData->mnLen != nMaxLen ) in EqualsIgnoreCaseAscii()
1440 return (ImplStringICompareWithoutZero( mpData->maStr+nIndex, rStr.mpData->maStr, nLen ) == 0); in EqualsIgnoreCaseAscii()
1458 xub_StrLen STRING::Match( const STRING& rStr ) const in Match()
1461 DBG_CHKOBJ( &rStr, STRING, DBGCHECKSTRING ); in Match()
1469 const STRCODE* pStr2 = rStr.mpData->maStr; in Match()
1532 xub_StrLen STRING::Search( const STRING& rStr, xub_StrLen nIndex ) const in Search() argument
1535 DBG_CHKOBJ( &rStr, STRING, DBGCHECKSTRING ); in Search()
1538 sal_Int32 nStrLen = rStr.mpData->mnLen; in Search()
1550 STRCODE cSearch = rStr.mpData->maStr[0]; in Search()
1561 const STRCODE* pStr2 = rStr.mpData->maStr; in Search()
1726 xub_StrLen STRING::SearchAndReplace( const STRING& rStr, const STRING& rRepStr, in SearchAndReplace() argument
1730 DBG_CHKOBJ( &rStr, STRING, DBGCHECKSTRING ); in SearchAndReplace()
1733 xub_StrLen nSPos = Search( rStr, nIndex ); in SearchAndReplace()
1735 Replace( nSPos, rStr.Len(), rRepStr ); in SearchAndReplace()
1795 void STRING::SearchAndReplaceAll( const STRING& rStr, const STRING& rRepStr ) in SearchAndReplaceAll() argument
1798 DBG_CHKOBJ( &rStr, STRING, DBGCHECKSTRING ); in SearchAndReplaceAll()
1801 xub_StrLen nSPos = Search( rStr, 0 ); in SearchAndReplaceAll()
1804 Replace( nSPos, rStr.Len(), rRepStr ); in SearchAndReplaceAll()
1806 nSPos = Search( rStr, nSPos ); in SearchAndReplaceAll()
1838 void STRING::SetToken( xub_StrLen nToken, STRCODE cTok, const STRING& rStr, in SetToken() argument
1842 DBG_CHKOBJ( &rStr, STRING, DBGCHECKSTRING ); in SetToken()
1873 Replace( nFirstChar, i-nFirstChar, rStr ); in SetToken()