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