diff options
Diffstat (limited to 'JavaScriptCore/wtf/text/WTFString.cpp')
-rw-r--r-- | JavaScriptCore/wtf/text/WTFString.cpp | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/JavaScriptCore/wtf/text/WTFString.cpp b/JavaScriptCore/wtf/text/WTFString.cpp index a683e3d..842d755 100644 --- a/JavaScriptCore/wtf/text/WTFString.cpp +++ b/JavaScriptCore/wtf/text/WTFString.cpp @@ -37,13 +37,6 @@ using namespace WTF::Unicode; namespace WebCore { -String::String(const UChar* str, unsigned len) -{ - if (!str) - return; - m_impl = StringImpl::create(str, len); -} - String::String(const UChar* str) { if (!str) @@ -56,20 +49,6 @@ String::String(const UChar* str) m_impl = StringImpl::create(str, len); } -String::String(const char* str) -{ - if (!str) - return; - m_impl = StringImpl::create(str); -} - -String::String(const char* str, unsigned length) -{ - if (!str) - return; - m_impl = StringImpl::create(str, length); -} - void String::append(const String& str) { if (str.isEmpty()) @@ -202,13 +181,6 @@ void String::insert(const UChar* charactersToInsert, unsigned lengthToInsert, un m_impl = newImpl.release(); } -UChar String::operator[](unsigned i) const -{ - if (!m_impl || i >= m_impl->length()) - return 0; - return m_impl->characters()[i]; -} - UChar32 String::characterStartingAt(unsigned i) const { if (!m_impl || i >= m_impl->length()) @@ -216,13 +188,6 @@ UChar32 String::characterStartingAt(unsigned i) const return m_impl->characterStartingAt(i); } -unsigned String::length() const -{ - if (!m_impl) - return 0; - return m_impl->length(); -} - void String::truncate(unsigned position) { if (position >= length()) @@ -311,13 +276,6 @@ bool String::percentage(int& result) const return true; } -const UChar* String::characters() const -{ - if (!m_impl) - return 0; - return m_impl->characters(); -} - const UChar* String::charactersWithNullTermination() { if (!m_impl) @@ -591,11 +549,6 @@ String String::crossThreadString() const return m_impl->crossThreadString(); } -bool String::isEmpty() const -{ - return !m_impl || !m_impl->length(); -} - void String::split(const String& separator, bool allowEmptyEntries, Vector<String>& result) const { result.clear(); |