Lines Matching refs:m_impl
43 : m_impl(characters ? StringImpl::create(characters, length) : 0)
60 m_impl = StringImpl::create(str, len);
65 : m_impl(characters ? StringImpl::create(characters, length) : 0)
71 : m_impl(characters ? StringImpl::create(characters) : 0)
84 if (str.m_impl) {
85 if (m_impl) {
87 if (str.length() > numeric_limits<unsigned>::max() - m_impl->length())
89 RefPtr<StringImpl> newImpl = StringImpl::createUninitialized(m_impl->length() + str.length(), data);
90 memcpy(data, m_impl->characters(), m_impl->length() * sizeof(UChar));
91 memcpy(data + m_impl->length(), str.characters(), str.length() * sizeof(UChar));
92 m_impl = newImpl.release();
94 m_impl = str.m_impl;
104 if (m_impl) {
106 if (m_impl->length() >= numeric_limits<unsigned>::max())
108 RefPtr<StringImpl> newImpl = StringImpl::createUninitialized(m_impl->length() + 1, data);
109 memcpy(data, m_impl->characters(), m_impl->length() * sizeof(UChar));
110 data[m_impl->length()] = c;
111 m_impl = newImpl.release();
113 m_impl = StringImpl::create(&c, 1);
122 if (m_impl) {
124 if (m_impl->length() >= numeric_limits<unsigned>::max())
126 RefPtr<StringImpl> newImpl = StringImpl::createUninitialized(m_impl->length() + 1, data);
127 memcpy(data, m_impl->characters(), m_impl->length() * sizeof(UChar));
128 data[m_impl->length()] = c;
129 m_impl = newImpl.release();
131 m_impl = StringImpl::create(&c, 1);
166 m_impl = str.impl();
174 if (!m_impl) {
177 m_impl = StringImpl::create(charactersToAppend, lengthToAppend);
191 m_impl = newImpl.release();
201 ASSERT(m_impl);
214 m_impl = newImpl.release();
219 if (!m_impl || i >= m_impl->length())
221 return m_impl->characterStartingAt(i);
231 m_impl = newImpl.release();
247 m_impl = newImpl.release();
252 if (!m_impl)
254 return m_impl->substring(pos, len);
267 return String(StringImpl::create(m_impl, offset, length));
272 if (!m_impl)
274 return m_impl->lower();
279 if (!m_impl)
281 return m_impl->upper();
286 if (!m_impl)
288 return m_impl->stripWhiteSpace();
293 if (!m_impl)
295 return m_impl->simplifyWhiteSpace();
300 if (!m_impl)
302 return m_impl->removeCharacters(findMatch);
307 if (!m_impl)
309 return m_impl->foldCase();
314 if (!m_impl || !m_impl->length())
317 if ((*m_impl)[m_impl->length() - 1] != '%')
320 result = charactersToIntStrict(m_impl->characters(), m_impl->length() - 1);
326 if (!m_impl)
328 if (m_impl->hasTerminatingNullCharacter())
329 return m_impl->characters();
330 m_impl = StringImpl::createWithTerminatingNullCharacter(*m_impl);
331 return m_impl->characters();
465 if (!m_impl) {
470 return m_impl->toIntStrict(ok, base);
475 if (!m_impl) {
480 return m_impl->toUIntStrict(ok, base);
485 if (!m_impl) {
490 return m_impl->toInt64Strict(ok, base);
495 if (!m_impl) {
500 return m_impl->toUInt64Strict(ok, base);
505 if (!m_impl) {
510 return m_impl->toIntPtrStrict(ok, base);
516 if (!m_impl) {
521 return m_impl->toInt(ok);
526 if (!m_impl) {
531 return m_impl->toUInt(ok);
536 if (!m_impl) {
541 return m_impl->toInt64(ok);
546 if (!m_impl) {
551 return m_impl->toUInt64(ok);
556 if (!m_impl) {
561 return m_impl->toIntPtr(ok);
566 if (!m_impl) {
573 return m_impl->toDouble(ok, didReadNumber);
578 if (!m_impl) {
585 return m_impl->toFloat(ok, didReadNumber);
590 if (!m_impl)
592 return m_impl->threadsafeCopy();
597 if (!m_impl)
599 return m_impl->crossThreadString();