Home | History | Annotate | Download | only in text

Lines Matching refs:m_impl

110     String(StringImpl* impl) : m_impl(impl) { }
111 String(PassRefPtr<StringImpl> impl) : m_impl(impl) { }
112 String(RefPtr<StringImpl> impl) : m_impl(impl) { }
117 void swap(String& o) { m_impl.swap(o.m_impl); }
123 bool isNull() const { return !m_impl; }
124 bool isEmpty() const { return !m_impl || !m_impl->length(); }
126 StringImpl* impl() const { return m_impl.get(); }
130 if (!m_impl)
132 return m_impl->length();
137 if (!m_impl)
139 return m_impl->characters();
148 if (!m_impl || index >= m_impl->length())
150 return m_impl->characters()[index];
165 { return m_impl ? m_impl->find(c, start) : notFound; }
167 { return m_impl ? m_impl->find(str.impl(), start) : notFound; }
169 { return m_impl ? m_impl->find(matchFunction, start) : notFound; }
171 { return m_impl ? m_impl->find(str, start) : notFound; }
175 { return m_impl ? m_impl->reverseFind(c, start) : notFound; }
177 { return m_impl ? m_impl->reverseFind(str.impl(), start) : notFound; }
181 { return m_impl ? m_impl->findIgnoringCase(str, start) : notFound; }
183 { return m_impl ? m_impl->findIgnoringCase(str.impl(), start) : notFound; }
185 { return m_impl ? m_impl->reverseFindIgnoringCase(str.impl(), start) : notFound; }
204 { return m_impl ? m_impl->startsWith(s.impl(), caseSensitive) : s.isEmpty(); }
206 { return m_impl ? m_impl->endsWith(s.impl(), caseSensitive) : s.isEmpty(); }
215 String& replace(UChar a, UChar b) { if (m_impl) m_impl = m_impl->replace(a, b); return *this; }
216 String& replace(UChar a, const String& b) { if (m_impl) m_impl = m_impl->replace(a, b.impl()); return *this; }
217 String& replace(const String& a, const String& b) { if (m_impl) m_impl = m_impl->replace(a.impl(), b.impl()); return *this; }
218 String& replace(unsigned index, unsigned len, const String& b) { if (m_impl) m_impl = m_impl->replace(index, len, b.impl()); return *this; }
220 void makeLower() { if (m_impl) m_impl = m_impl->lower(); }
221 void makeUpper() { if (m_impl) m_impl = m_impl->upper(); }
222 void makeSecure(UChar aChar) { if (m_impl) m_impl = m_impl->secure(aChar); }
302 operator NSString*() const { if (!m_impl) return @""; return *m_impl; }
336 if (m_impl)
337 return m_impl->defaultWritingDirection(hasStrongDirectionality);
347 String(WTF::HashTableDeletedValueType) : m_impl(WTF::HashTableDeletedValue) { }
348 bool isHashTableDeletedValue() const { return m_impl.isHashTableDeletedValue(); }
351 RefPtr<StringImpl> m_impl;
395 : m_impl(vector.size() ? StringImpl::create(vector.data(), vector.size()) : 0)