Lines Matching refs:mnLen
189 pData->mnLen = nLen; in ImplAllocData()
198 unsigned int nSize = sizeof(STRINGDATA)+(pData->mnLen*sizeof( STRCODE )); in _ImplCopyData()
224 ((pStr-mpData->maStr) < mpData->mnLen), in ImplCopyStringData()
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()
424 if ( (nLen == mpData->mnLen) && (mpData->mnRefCount == 1) ) in Assign()
470 if ( (nLen == mpData->mnLen) && (mpData->mnRefCount == 1) ) in Assign()
508 sal_Int32 nLen = mpData->mnLen; in Append()
518 sal_Int32 nCopyLen = ImplGetCopyLen( nLen, rStr.mpData->mnLen ); in Append()
547 sal_Int32 nLen = mpData->mnLen; in Append()
595 sal_Int32 nLen = mpData->mnLen; in Append()
623 sal_Int32 nLen = mpData->mnLen; in Append()
646 DBG_ASSERT( nIndex < mpData->mnLen, "String::SetChar() - nIndex > String.Len()" ); in SetChar()
661 sal_Int32 nCopyLen = ImplGetCopyLen( mpData->mnLen, rStr.mpData->mnLen ); in Insert()
668 if ( nIndex > mpData->mnLen ) in Insert()
669 nIndex = static_cast< xub_StrLen >(mpData->mnLen); in Insert()
672 STRINGDATA* pNewData = ImplAllocData( mpData->mnLen+nCopyLen ); in Insert()
678 (mpData->mnLen-nIndex)*sizeof( STRCODE ) ); in Insert()
696 if ( nPos > rStr.mpData->mnLen ) in Insert()
701 sal_Int32 nMaxLen = rStr.mpData->mnLen-nPos; in Insert()
707 sal_Int32 nCopyLen = ImplGetCopyLen( mpData->mnLen, nLen ); in Insert()
714 if ( nIndex > mpData->mnLen ) in Insert()
715 nIndex = static_cast< xub_StrLen >(mpData->mnLen); in Insert()
718 STRINGDATA* pNewData = ImplAllocData( mpData->mnLen+nCopyLen ); in Insert()
724 (mpData->mnLen-nIndex)*sizeof( STRCODE ) ); in Insert()
744 nCopyLen = ImplGetCopyLen( mpData->mnLen, nCopyLen ); in Insert()
751 if ( nIndex > mpData->mnLen ) in Insert()
752 nIndex = static_cast< xub_StrLen >(mpData->mnLen); in Insert()
755 STRINGDATA* pNewData = ImplAllocData( mpData->mnLen+nCopyLen ); in Insert()
761 (mpData->mnLen-nIndex)*sizeof( STRCODE ) ); in Insert()
777 if ( !c || (mpData->mnLen == STRING_MAXLEN) ) in Insert()
781 if ( nIndex > mpData->mnLen ) in Insert()
782 nIndex = static_cast< xub_StrLen >(mpData->mnLen); in Insert()
785 STRINGDATA* pNewData = ImplAllocData( mpData->mnLen+1 ); in Insert()
791 (mpData->mnLen-nIndex)*sizeof( STRCODE ) ); in Insert()
808 if ( nIndex >= mpData->mnLen ) in Replace()
815 if ( (nIndex == 0) && (nCount >= mpData->mnLen) ) in Replace()
822 sal_Int32 nStrLen = rStr.mpData->mnLen; in Replace()
827 if ( nCount > mpData->mnLen - nIndex ) in Replace()
828 nCount = static_cast< xub_StrLen >(mpData->mnLen-nIndex); in Replace()
843 nStrLen = ImplGetCopyLen( mpData->mnLen-nCount, nStrLen ); in Replace()
846 STRINGDATA* pNewData = ImplAllocData( mpData->mnLen-nCount+nStrLen ); in Replace()
852 (mpData->mnLen-nIndex-nCount+1)*sizeof( STRCODE ) ); in Replace()
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()
884 (mpData->mnLen-nIndex-nCount+1)*sizeof( STRCODE ) ); in Erase()
908 if ( nCount > mpData->mnLen ) in Fill()
937 sal_Int32 nLen = mpData->mnLen; in Expand()
983 sal_Int32 nEnd = mpData->mnLen; in EraseTrailingChars()
987 if ( nEnd != mpData->mnLen ) in EraseTrailingChars()
1005 sal_Int32 nEnd = mpData->mnLen; in EraseLeadingAndTrailingChars()
1008 if ( nEnd != mpData->mnLen ) in EraseLeadingAndTrailingChars()
1021 for (sal_Int32 i = 0; i < mpData->mnLen; ++i) { in EraseAllChars()
1028 if ( nCount == mpData->mnLen ) in EraseAllChars()
1035 STRINGDATA* pNewData = ImplAllocData( mpData->mnLen-nCount ); in EraseAllChars()
1039 for( xub_StrLen j = 0; j < mpData->mnLen; ++j ) in EraseAllChars()
1063 if ( !mpData->mnLen ) in Reverse()
1070 sal_Int32 nCount = mpData->mnLen / 2; in Reverse()
1074 mpData->maStr[i] = mpData->maStr[mpData->mnLen-i-1]; in Reverse()
1075 mpData->maStr[mpData->mnLen-i-1] = cTemp; in Reverse()
1088 sal_Int32 nLen = mpData->mnLen; in ToLowerAscii()
1114 sal_Int32 nLen = mpData->mnLen; in ToUpperAscii()
1146 while ( i < mpData->mnLen ) in ConvertLineEnd()
1193 while ( i < mpData->mnLen ) in ConvertLineEnd()
1246 if ( mpData->mnLen < nLen ) in CompareTo()
1247 nLen = static_cast< xub_StrLen >(mpData->mnLen+1); in CompareTo()
1248 if ( rStr.mpData->mnLen < nLen ) in CompareTo()
1249 nLen = static_cast< xub_StrLen >(rStr.mpData->mnLen+1); in CompareTo()
1294 if ( mpData->mnLen < nLen ) in CompareIgnoreCaseToAscii()
1295 nLen = static_cast< xub_StrLen >(mpData->mnLen+1); in CompareIgnoreCaseToAscii()
1296 if ( rStr.mpData->mnLen < nLen ) in CompareIgnoreCaseToAscii()
1297 nLen = static_cast< xub_StrLen >(rStr.mpData->mnLen+1); in CompareIgnoreCaseToAscii()
1342 if ( mpData->mnLen != rStr.mpData->mnLen ) in Equals()
1346 return (ImplStringCompareWithoutZero( mpData->maStr, rStr.mpData->maStr, mpData->mnLen ) == 0); in Equals()
1370 if ( mpData->mnLen != rStr.mpData->mnLen ) in EqualsIgnoreCaseAscii()
1374 return (ImplStringICompareWithoutZero( mpData->maStr, rStr.mpData->maStr, mpData->mnLen ) == 0); in EqualsIgnoreCaseAscii()
1394 if ( nIndex > mpData->mnLen ) in Equals()
1395 return (rStr.mpData->mnLen == 0); in Equals()
1396 sal_Int32 nMaxLen = mpData->mnLen-nIndex; in Equals()
1399 if ( rStr.mpData->mnLen != nMaxLen ) in Equals()
1415 if ( nIndex > mpData->mnLen ) in Equals()
1429 if ( nIndex > mpData->mnLen ) in EqualsIgnoreCaseAscii()
1430 return (rStr.mpData->mnLen == 0); in EqualsIgnoreCaseAscii()
1431 sal_Int32 nMaxLen = mpData->mnLen-nIndex; in EqualsIgnoreCaseAscii()
1434 if ( rStr.mpData->mnLen != nMaxLen ) in EqualsIgnoreCaseAscii()
1450 if ( nIndex > mpData->mnLen ) in EqualsIgnoreCaseAscii()
1464 if ( !mpData->mnLen ) in Match()
1471 while ( i < mpData->mnLen ) in Match()
1491 if ( !mpData->mnLen ) in Match()
1497 while ( i < mpData->mnLen ) in Match()
1516 sal_Int32 nLen = mpData->mnLen; in Search()
1537 sal_Int32 nLen = mpData->mnLen; in Search()
1538 sal_Int32 nStrLen = rStr.mpData->mnLen; in Search()
1583 sal_Int32 nLen = mpData->mnLen; in Search()
1627 if ( nIndex > mpData->mnLen ) in SearchBackward()
1628 nIndex = (xub_StrLen)mpData->mnLen; in SearchBackward()
1650 sal_Int32 nLen = mpData->mnLen; in SearchChar()
1676 if ( nIndex > mpData->mnLen ) in SearchCharBackward()
1677 nIndex = (xub_StrLen)mpData->mnLen; in SearchCharBackward()
1706 sal_Int32 nLen = mpData->mnLen; in SearchAndReplace()
1761 sal_Int32 nLen = mpData->mnLen; in SearchAndReplaceAll()
1817 if ( !mpData->mnLen ) in GetTokenCount()
1821 sal_Int32 nLen = mpData->mnLen; in GetTokenCount()
1845 xub_StrLen nLen = (xub_StrLen)mpData->mnLen; in SetToken()
1883 xub_StrLen nLen = (xub_StrLen)mpData->mnLen; in GetToken()
1935 if ( !mpData->mnLen ) in GetQuotedTokenCount()
1939 sal_Int32 nLen = mpData->mnLen; in GetQuotedTokenCount()
1995 xub_StrLen nLen = (xub_StrLen)mpData->mnLen; in GetQuotedToken()
2067 if ( mpData->mnLen ) in GetBufferAccess()
2082 if ( nLen > mpData->mnLen ) in ReleaseBufferAccess()
2084 OSL_ASSERT(nLen <= mpData->mnLen); in ReleaseBufferAccess()
2090 else if ( mpData->mnLen - nLen > 8 ) in ReleaseBufferAccess()
2098 mpData->mnLen = nLen; in ReleaseBufferAccess()