Home
last modified time | relevance | path

Searched refs:nNewLength (Results 1 – 2 of 2) sorted by relevance

/external/pdfium/core/fxcrt/
Dfx_basic_wstring.cpp215 void CFX_WideString::ReallocBeforeWrite(FX_STRSIZE nNewLength) { in ReallocBeforeWrite() argument
216 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() argument
237 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 …]
Dfx_basic_bstring.cpp266 void CFX_ByteString::ReallocBeforeWrite(FX_STRSIZE nNewLength) { in ReallocBeforeWrite() argument
267 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() argument
288 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 …]