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; |
132 | 133 |
133 private: | 134 private: |
134 enum BufferOwnership { | 135 enum BufferOwnership { |
135 BufferInternal, | 136 BufferInternal, |
136 BufferOwned, | 137 BufferOwned, |
137 BufferSubstring, | 138 BufferSubstring, |
138 // NOTE: Adding more ownership types needs to extend m_hashAndFlags as w
e're at capacity | 139 // NOTE: Adding more ownership types needs to extend m_hashAndFlags as w
e're at capacity |
139 }; | 140 }; |
140 | 141 |
141 // Used to construct static strings, which have an special refCount that can
never hit zero. | 142 // Used to construct static strings, which have an special refCount that can
never hit zero. |
(...skipping 1034 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1176 } | 1177 } |
1177 | 1178 |
1178 using WTF::StringImpl; | 1179 using WTF::StringImpl; |
1179 using WTF::equal; | 1180 using WTF::equal; |
1180 using WTF::equalNonNull; | 1181 using WTF::equalNonNull; |
1181 using WTF::TextCaseSensitivity; | 1182 using WTF::TextCaseSensitivity; |
1182 using WTF::TextCaseSensitive; | 1183 using WTF::TextCaseSensitive; |
1183 using WTF::TextCaseInsensitive; | 1184 using WTF::TextCaseInsensitive; |
1184 | 1185 |
1185 #endif | 1186 #endif |
OLD | NEW |