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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 // This is needed because we malloc() space for a StringImpl plus an | 105 // This is needed because we malloc() space for a StringImpl plus an |
106 // immediately following buffer, as a performance tweak. | 106 // immediately following buffer, as a performance tweak. |
107 NEW_DELETE_SAME_AS_MALLOC_FREE; | 107 NEW_DELETE_SAME_AS_MALLOC_FREE; |
108 friend struct WTF::CStringTranslator; | 108 friend struct WTF::CStringTranslator; |
109 template<typename CharacterType> friend struct WTF::HashAndCharactersTransla
tor; | 109 template<typename CharacterType> friend struct WTF::HashAndCharactersTransla
tor; |
110 friend struct WTF::HashAndUTF8CharactersTranslator; | 110 friend struct WTF::HashAndUTF8CharactersTranslator; |
111 friend struct WTF::CharBufferFromLiteralDataTranslator; | 111 friend struct WTF::CharBufferFromLiteralDataTranslator; |
112 friend struct WTF::LCharBufferTranslator; | 112 friend struct WTF::LCharBufferTranslator; |
113 friend struct WTF::SubstringTranslator; | 113 friend struct WTF::SubstringTranslator; |
114 friend struct WTF::UCharBufferTranslator; | 114 friend struct WTF::UCharBufferTranslator; |
115 friend class AtomicStringImpl; | |
116 | 115 |
117 private: | 116 private: |
118 enum BufferOwnership { | 117 enum BufferOwnership { |
119 BufferInternal, | 118 BufferInternal, |
120 BufferOwned, | 119 BufferOwned, |
121 // NOTE: Adding more ownership types needs to extend m_hashAndFlags as w
e're at capacity | 120 // NOTE: Adding more ownership types needs to extend m_hashAndFlags as w
e're at capacity |
122 }; | 121 }; |
123 | 122 |
124 // Used to construct static strings, which have an special refCount that can
never hit zero. | 123 // Used to construct static strings, which have an special refCount that can
never hit zero. |
125 // This means that the static string will never be destroyed, which is impor
tant because | 124 // This means that the static string will never be destroyed, which is impor
tant because |
(...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
935 } | 934 } |
936 | 935 |
937 using WTF::StringImpl; | 936 using WTF::StringImpl; |
938 using WTF::equal; | 937 using WTF::equal; |
939 using WTF::equalNonNull; | 938 using WTF::equalNonNull; |
940 using WTF::TextCaseSensitivity; | 939 using WTF::TextCaseSensitivity; |
941 using WTF::TextCaseSensitive; | 940 using WTF::TextCaseSensitive; |
942 using WTF::TextCaseInsensitive; | 941 using WTF::TextCaseInsensitive; |
943 | 942 |
944 #endif | 943 #endif |
OLD | NEW |