OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 17 matching lines...) Expand all Loading... |
28 // to disallow (expensive) implicit String-->AtomicString conversions. | 28 // to disallow (expensive) implicit String-->AtomicString conversions. |
29 #ifdef NO_IMPLICIT_ATOMICSTRING | 29 #ifdef NO_IMPLICIT_ATOMICSTRING |
30 #define ATOMICSTRING_CONVERSION explicit | 30 #define ATOMICSTRING_CONVERSION explicit |
31 #else | 31 #else |
32 #define ATOMICSTRING_CONVERSION | 32 #define ATOMICSTRING_CONVERSION |
33 #endif | 33 #endif |
34 | 34 |
35 namespace WTF { | 35 namespace WTF { |
36 | 36 |
37 struct AtomicStringHash; | 37 struct AtomicStringHash; |
38 class MemoryObjectInfo; | |
39 | 38 |
40 class AtomicString { | 39 class AtomicString { |
41 public: | 40 public: |
42 WTF_EXPORT_PRIVATE static void init(); | 41 WTF_EXPORT_PRIVATE static void init(); |
43 | 42 |
44 AtomicString() { } | 43 AtomicString() { } |
45 AtomicString(const LChar* s) : m_string(add(s)) { } | 44 AtomicString(const LChar* s) : m_string(add(s)) { } |
46 AtomicString(const char* s) : m_string(add(s)) { } | 45 AtomicString(const char* s) : m_string(add(s)) { } |
47 AtomicString(const LChar* s, unsigned length) : m_string(add(s, length)) { } | 46 AtomicString(const LChar* s, unsigned length) : m_string(add(s, length)) { } |
48 AtomicString(const UChar* s, unsigned length) : m_string(add(s, length)) { } | 47 AtomicString(const UChar* s, unsigned length) : m_string(add(s, length)) { } |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 using WTF::textAtom; | 261 using WTF::textAtom; |
263 using WTF::commentAtom; | 262 using WTF::commentAtom; |
264 using WTF::starAtom; | 263 using WTF::starAtom; |
265 using WTF::xmlAtom; | 264 using WTF::xmlAtom; |
266 using WTF::xmlnsAtom; | 265 using WTF::xmlnsAtom; |
267 using WTF::xlinkAtom; | 266 using WTF::xlinkAtom; |
268 #endif | 267 #endif |
269 | 268 |
270 #include <wtf/text/StringConcatenate.h> | 269 #include <wtf/text/StringConcatenate.h> |
271 #endif // AtomicString_h | 270 #endif // AtomicString_h |
OLD | NEW |