Lines Matching refs:nNewLength
508 void WideString::ReallocBeforeWrite(size_t nNewLength) { in ReallocBeforeWrite() argument
509 if (m_pData && m_pData->CanOperateInPlace(nNewLength)) in ReallocBeforeWrite()
512 if (nNewLength == 0) { in ReallocBeforeWrite()
517 RetainPtr<StringData> pNewData(StringData::Create(nNewLength)); in ReallocBeforeWrite()
519 size_t nCopyLength = std::min(m_pData->m_nDataLength, nNewLength); in ReallocBeforeWrite()
529 void WideString::AllocBeforeWrite(size_t nNewLength) { in AllocBeforeWrite() argument
530 if (m_pData && m_pData->CanOperateInPlace(nNewLength)) in AllocBeforeWrite()
533 if (nNewLength == 0) { in AllocBeforeWrite()
538 m_pData.Reset(StringData::Create(nNewLength)); in AllocBeforeWrite()
541 void WideString::ReleaseBuffer(size_t nNewLength) { in ReleaseBuffer() argument
545 nNewLength = std::min(nNewLength, m_pData->m_nAllocLength); in ReleaseBuffer()
546 if (nNewLength == 0) { in ReleaseBuffer()
552 m_pData->m_nDataLength = nNewLength; in ReleaseBuffer()
553 m_pData->m_String[nNewLength] = 0; in ReleaseBuffer()
554 if (m_pData->m_nAllocLength - nNewLength >= 32) { in ReleaseBuffer()
558 ReallocBeforeWrite(nNewLength); in ReleaseBuffer()
866 size_t nNewLength = in Replace() local
869 if (nNewLength == 0) { in Replace()
874 RetainPtr<StringData> pNewData(StringData::Create(nNewLength)); in Replace()