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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 , m_isAtomic(false) | 188 , m_isAtomic(false) |
189 , m_is8Bit(true) | 189 , m_is8Bit(true) |
190 , m_isStatic(true) | 190 , m_isStatic(true) |
191 { | 191 { |
192 } | 192 } |
193 | 193 |
194 public: | 194 public: |
195 ~StringImpl(); | 195 ~StringImpl(); |
196 | 196 |
197 static StringImpl* createStatic(const char* string, unsigned length, unsigne
d hash); | 197 static StringImpl* createStatic(const char* string, unsigned length, unsigne
d hash); |
| 198 static void reserveStaticStringsCapacityForSize(unsigned size); |
198 static void freezeStaticStrings(); | 199 static void freezeStaticStrings(); |
199 static const StaticStringsTable& allStaticStrings(); | 200 static const StaticStringsTable& allStaticStrings(); |
200 static unsigned highestStaticStringLength() { return m_highestStaticStringLe
ngth; } | 201 static unsigned highestStaticStringLength() { return m_highestStaticStringLe
ngth; } |
201 | 202 |
202 static PassRefPtr<StringImpl> create(const UChar*, unsigned length); | 203 static PassRefPtr<StringImpl> create(const UChar*, unsigned length); |
203 static PassRefPtr<StringImpl> create(const LChar*, unsigned length); | 204 static PassRefPtr<StringImpl> create(const LChar*, unsigned length); |
204 static PassRefPtr<StringImpl> create8BitIfPossible(const UChar*, unsigned le
ngth); | 205 static PassRefPtr<StringImpl> create8BitIfPossible(const UChar*, unsigned le
ngth); |
205 template<size_t inlineCapacity> | 206 template<size_t inlineCapacity> |
206 static PassRefPtr<StringImpl> create8BitIfPossible(const Vector<UChar, inlin
eCapacity>& vector) | 207 static PassRefPtr<StringImpl> create8BitIfPossible(const Vector<UChar, inlin
eCapacity>& vector) |
207 { | 208 { |
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
775 } | 776 } |
776 | 777 |
777 using WTF::StringImpl; | 778 using WTF::StringImpl; |
778 using WTF::equal; | 779 using WTF::equal; |
779 using WTF::equalNonNull; | 780 using WTF::equalNonNull; |
780 using WTF::TextCaseSensitivity; | 781 using WTF::TextCaseSensitivity; |
781 using WTF::TextCaseSensitive; | 782 using WTF::TextCaseSensitive; |
782 using WTF::TextCaseInsensitive; | 783 using WTF::TextCaseInsensitive; |
783 | 784 |
784 #endif | 785 #endif |
OLD | NEW |