OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights
reserved. | 3 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights
reserved. |
4 * Copyright (C) 2009 Google Inc. All rights reserved. | 4 * Copyright (C) 2009 Google Inc. 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 // This is needed because we malloc() space for a StringImpl plus an | 122 // This is needed because we malloc() space for a StringImpl plus an |
123 // immediately following buffer, as a performance tweak. | 123 // immediately following buffer, as a performance tweak. |
124 NEW_DELETE_SAME_AS_MALLOC_FREE; | 124 NEW_DELETE_SAME_AS_MALLOC_FREE; |
125 friend struct WTF::CStringTranslator; | 125 friend struct WTF::CStringTranslator; |
126 template<typename CharacterType> friend struct WTF::HashAndCharactersTransla
tor; | 126 template<typename CharacterType> friend struct WTF::HashAndCharactersTransla
tor; |
127 friend struct WTF::HashAndUTF8CharactersTranslator; | 127 friend struct WTF::HashAndUTF8CharactersTranslator; |
128 friend struct WTF::CharBufferFromLiteralDataTranslator; | 128 friend struct WTF::CharBufferFromLiteralDataTranslator; |
129 friend struct WTF::LCharBufferTranslator; | 129 friend struct WTF::LCharBufferTranslator; |
130 friend struct WTF::SubstringTranslator; | 130 friend struct WTF::SubstringTranslator; |
131 friend struct WTF::UCharBufferTranslator; | 131 friend struct WTF::UCharBufferTranslator; |
132 friend class AtomicStringImpl; | |
133 | 132 |
134 private: | 133 private: |
135 enum BufferOwnership { | 134 enum BufferOwnership { |
136 BufferInternal, | 135 BufferInternal, |
137 BufferOwned, | 136 BufferOwned, |
138 BufferSubstring, | 137 BufferSubstring, |
139 // NOTE: Adding more ownership types needs to extend m_hashAndFlags as w
e're at capacity | 138 // NOTE: Adding more ownership types needs to extend m_hashAndFlags as w
e're at capacity |
140 }; | 139 }; |
141 | 140 |
142 // Used to construct static strings, which have an special refCount that can
never hit zero. | 141 // Used to construct static strings, which have an special refCount that can
never hit zero. |
(...skipping 1047 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1190 } | 1189 } |
1191 | 1190 |
1192 using WTF::StringImpl; | 1191 using WTF::StringImpl; |
1193 using WTF::equal; | 1192 using WTF::equal; |
1194 using WTF::equalNonNull; | 1193 using WTF::equalNonNull; |
1195 using WTF::TextCaseSensitivity; | 1194 using WTF::TextCaseSensitivity; |
1196 using WTF::TextCaseSensitive; | 1195 using WTF::TextCaseSensitive; |
1197 using WTF::TextCaseInsensitive; | 1196 using WTF::TextCaseInsensitive; |
1198 | 1197 |
1199 #endif | 1198 #endif |
OLD | NEW |