| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
| 6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
| 7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
| 8 * | 8 * |
| 9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 static_assert((charactersCount - 1 <= ((unsigned(~0) - sizeof(StringImpl
)) / sizeof(LChar))), "AtomicString FromLiteralData cannot overflow"); | 73 static_assert((charactersCount - 1 <= ((unsigned(~0) - sizeof(StringImpl
)) / sizeof(LChar))), "AtomicString FromLiteralData cannot overflow"); |
| 74 } | 74 } |
| 75 | 75 |
| 76 // Hash table deleted values, which are only constructed and never copied or
destroyed. | 76 // Hash table deleted values, which are only constructed and never copied or
destroyed. |
| 77 AtomicString(WTF::HashTableDeletedValueType) : m_string(WTF::HashTableDelete
dValue) { } | 77 AtomicString(WTF::HashTableDeletedValueType) : m_string(WTF::HashTableDelete
dValue) { } |
| 78 bool isHashTableDeletedValue() const { return m_string.isHashTableDeletedVal
ue(); } | 78 bool isHashTableDeletedValue() const { return m_string.isHashTableDeletedVal
ue(); } |
| 79 | 79 |
| 80 static StringImpl* find(const StringImpl*); | 80 static StringImpl* find(const StringImpl*); |
| 81 | 81 |
| 82 operator const String&() const { return m_string; } | 82 operator const String&() const { return m_string; } |
| 83 const String& string() const { return m_string; } | 83 const String& getString() const { return m_string; } |
| 84 | 84 |
| 85 StringImpl* impl() const { return m_string.impl(); } | 85 StringImpl* impl() const { return m_string.impl(); } |
| 86 | 86 |
| 87 bool is8Bit() const { return m_string.is8Bit(); } | 87 bool is8Bit() const { return m_string.is8Bit(); } |
| 88 const LChar* characters8() const { return m_string.characters8(); } | 88 const LChar* characters8() const { return m_string.characters8(); } |
| 89 const UChar* characters16() const { return m_string.characters16(); } | 89 const UChar* characters16() const { return m_string.characters16(); } |
| 90 unsigned length() const { return m_string.length(); } | 90 unsigned length() const { return m_string.length(); } |
| 91 | 91 |
| 92 UChar operator[](unsigned i) const { return m_string[i]; } | 92 UChar operator[](unsigned i) const { return m_string[i]; } |
| 93 | 93 |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 using WTF::AtomicString; | 258 using WTF::AtomicString; |
| 259 using WTF::nullAtom; | 259 using WTF::nullAtom; |
| 260 using WTF::emptyAtom; | 260 using WTF::emptyAtom; |
| 261 using WTF::starAtom; | 261 using WTF::starAtom; |
| 262 using WTF::xmlAtom; | 262 using WTF::xmlAtom; |
| 263 using WTF::xmlnsAtom; | 263 using WTF::xmlnsAtom; |
| 264 using WTF::xlinkAtom; | 264 using WTF::xlinkAtom; |
| 265 | 265 |
| 266 #include "wtf/text/StringConcatenate.h" | 266 #include "wtf/text/StringConcatenate.h" |
| 267 #endif // AtomicString_h | 267 #endif // AtomicString_h |
| OLD | NEW |