Searched refs:nNewLength (Results 1 – 2 of 2) sorted by relevance
215 void CFX_WideString::ReallocBeforeWrite(FX_STRSIZE nNewLength) { in ReallocBeforeWrite() argument216 if (m_pData && m_pData->CanOperateInPlace(nNewLength)) in ReallocBeforeWrite()219 if (nNewLength <= 0) { in ReallocBeforeWrite()224 CFX_RetainPtr<StringData> pNewData(StringData::Create(nNewLength)); in ReallocBeforeWrite()226 FX_STRSIZE nCopyLength = std::min(m_pData->m_nDataLength, nNewLength); in ReallocBeforeWrite()236 void CFX_WideString::AllocBeforeWrite(FX_STRSIZE nNewLength) { in AllocBeforeWrite() argument237 if (m_pData && m_pData->CanOperateInPlace(nNewLength)) in AllocBeforeWrite()240 if (nNewLength <= 0) { in AllocBeforeWrite()245 m_pData.Reset(StringData::Create(nNewLength)); in AllocBeforeWrite()248 void CFX_WideString::ReleaseBuffer(FX_STRSIZE nNewLength) { in ReleaseBuffer() argument[all …]
266 void CFX_ByteString::ReallocBeforeWrite(FX_STRSIZE nNewLength) { in ReallocBeforeWrite() argument267 if (m_pData && m_pData->CanOperateInPlace(nNewLength)) in ReallocBeforeWrite()270 if (nNewLength <= 0) { in ReallocBeforeWrite()275 CFX_RetainPtr<StringData> pNewData(StringData::Create(nNewLength)); in ReallocBeforeWrite()277 FX_STRSIZE nCopyLength = std::min(m_pData->m_nDataLength, nNewLength); in ReallocBeforeWrite()287 void CFX_ByteString::AllocBeforeWrite(FX_STRSIZE nNewLength) { in AllocBeforeWrite() argument288 if (m_pData && m_pData->CanOperateInPlace(nNewLength)) in AllocBeforeWrite()291 if (nNewLength <= 0) { in AllocBeforeWrite()296 m_pData.Reset(StringData::Create(nNewLength)); in AllocBeforeWrite()299 void CFX_ByteString::ReleaseBuffer(FX_STRSIZE nNewLength) { in ReleaseBuffer() argument[all …]