| OLD | NEW |
| 1 /* | 1 /* |
| 2 * (C) 1999 Lars Knoll (knoll@kde.org) | 2 * (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. |
| 4 * All rights reserved. | 4 * All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 String(const char* characters, unsigned length); | 92 String(const char* characters, unsigned length); |
| 93 | 93 |
| 94 // Construct a string with latin1 data, from a null-terminated source. | 94 // Construct a string with latin1 data, from a null-terminated source. |
| 95 String(const LChar* characters); | 95 String(const LChar* characters); |
| 96 String(const char* characters); | 96 String(const char* characters); |
| 97 | 97 |
| 98 // Construct a string referencing an existing StringImpl. | 98 // Construct a string referencing an existing StringImpl. |
| 99 String(StringImpl* impl) : m_impl(impl) {} | 99 String(StringImpl* impl) : m_impl(impl) {} |
| 100 String(PassRefPtr<StringImpl> impl) : m_impl(impl) {} | 100 String(PassRefPtr<StringImpl> impl) : m_impl(impl) {} |
| 101 | 101 |
| 102 String(const String&); |
| 103 String& operator=(const String&); |
| 104 |
| 105 String(String&&); |
| 106 String& operator=(String&&); |
| 107 |
| 108 ~String(); |
| 109 |
| 102 void swap(String& o) { m_impl.swap(o.m_impl); } | 110 void swap(String& o) { m_impl.swap(o.m_impl); } |
| 103 | 111 |
| 104 template <typename CharType> | 112 template <typename CharType> |
| 105 static String adopt(StringBuffer<CharType>& buffer) { | 113 static String adopt(StringBuffer<CharType>& buffer) { |
| 106 if (!buffer.length()) | 114 if (!buffer.length()) |
| 107 return StringImpl::empty(); | 115 return StringImpl::empty(); |
| 108 return String(buffer.release()); | 116 return String(buffer.release()); |
| 109 } | 117 } |
| 110 | 118 |
| 111 bool isNull() const { return !m_impl; } | 119 bool isNull() const { return !m_impl; } |
| (...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 652 using WTF::emptyString; | 660 using WTF::emptyString; |
| 653 using WTF::emptyString16Bit; | 661 using WTF::emptyString16Bit; |
| 654 using WTF::charactersAreAllASCII; | 662 using WTF::charactersAreAllASCII; |
| 655 using WTF::equal; | 663 using WTF::equal; |
| 656 using WTF::find; | 664 using WTF::find; |
| 657 using WTF::isAllSpecialCharacters; | 665 using WTF::isAllSpecialCharacters; |
| 658 using WTF::isSpaceOrNewline; | 666 using WTF::isSpaceOrNewline; |
| 659 | 667 |
| 660 #include "wtf/text/AtomicString.h" | 668 #include "wtf/text/AtomicString.h" |
| 661 #endif // WTFString_h | 669 #endif // WTFString_h |
| OLD | NEW |