Home | History | Annotate | Download | only in text

Lines Matching refs:m_length

44         ASSERT(m_string.length() == m_length);
48 if (!m_length) {
53 ASSERT(m_buffer && m_length <= m_buffer->length());
54 if (m_length == m_buffer->length()) {
60 m_buffer->truncateAssumingIsolated(m_length);
65 m_string = m_buffer->substring(0, m_length);
72 unsigned substringLength = std::min(length, m_length);
78 // Check newSize < m_length, hence m_length > 0.
79 ASSERT(newSize <= m_length);
80 if (newSize == m_length)
82 ASSERT(m_length);
93 m_length = newSize;
97 // Since m_length && !m_buffer, the string must be valid in m_string, and m_string.length() > 0.
99 ASSERT(m_length == m_string.length());
101 m_length = newSize;
110 m_buffer = string->substring(0, m_length);
121 memcpy(m_bufferCharacters8, currentCharacters, static_cast<size_t>(m_length) * sizeof(LChar)); // This can't overflow.
135 memcpy(m_bufferCharacters16, currentCharacters, static_cast<size_t>(m_length) * sizeof(UChar)); // This can't overflow.
149 for (unsigned i = 0; i < m_length; ++i)
202 if (newCapacity > m_length) {
203 if (!m_length) {
214 // Make 'length' additional capacity be available in m_buffer, update m_string & m_length,
222 unsigned requiredLength = length + m_length;
227 ASSERT(m_buffer->length() >= m_length);
228 unsigned currentLength = m_length;
230 m_length = requiredLength;
237 // Make 'length' additional capacity be available in m_buffer, update m_string & m_length,
246 ASSERT(m_buffer->length() >= m_length);
250 ASSERT(m_string.length() == m_length);
251 allocateBuffer(m_length ? m_string.getCharacters<CharType>() : 0, expandedCapacity(capacity(), requiredLength));
254 CharType* result = getBufferCharacters<CharType>() + m_length;
255 m_length = requiredLength;
275 unsigned requiredLength = length + m_length;
280 ASSERT(m_buffer->length() >= m_length);
284 ASSERT(m_string.length() == m_length);
288 memcpy(m_bufferCharacters16 + m_length, characters, static_cast<size_t>(length) * sizeof(UChar));
289 m_length = requiredLength;
350 return m_buffer && m_buffer->length() > (m_length + (m_length >> 2));
358 reallocateBuffer<LChar>(m_length);
360 reallocateBuffer<UChar>(m_length);