Lines Matching refs:nNewLength
531 void WideString::ReallocBeforeWrite(size_t nNewLength) { in ReallocBeforeWrite() argument
532 if (m_pData && m_pData->CanOperateInPlace(nNewLength)) in ReallocBeforeWrite()
535 if (nNewLength == 0) { in ReallocBeforeWrite()
540 RetainPtr<StringData> pNewData(StringData::Create(nNewLength)); in ReallocBeforeWrite()
542 size_t nCopyLength = std::min(m_pData->m_nDataLength, nNewLength); in ReallocBeforeWrite()
552 void WideString::AllocBeforeWrite(size_t nNewLength) { in AllocBeforeWrite() argument
553 if (m_pData && m_pData->CanOperateInPlace(nNewLength)) in AllocBeforeWrite()
556 if (nNewLength == 0) { in AllocBeforeWrite()
561 m_pData.Reset(StringData::Create(nNewLength)); in AllocBeforeWrite()
564 void WideString::ReleaseBuffer(size_t nNewLength) { in ReleaseBuffer() argument
568 nNewLength = std::min(nNewLength, m_pData->m_nAllocLength); in ReleaseBuffer()
569 if (nNewLength == 0) { in ReleaseBuffer()
575 m_pData->m_nDataLength = nNewLength; in ReleaseBuffer()
576 m_pData->m_String[nNewLength] = 0; in ReleaseBuffer()
577 if (m_pData->m_nAllocLength - nNewLength >= 32) { in ReleaseBuffer()
581 ReallocBeforeWrite(nNewLength); in ReleaseBuffer()
837 size_t nNewLength = in Replace() local
840 if (nNewLength == 0) { in Replace()
845 RetainPtr<StringData> pNewData(StringData::Create(nNewLength)); in Replace()