| 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 AtomicString(CFStringRef s) : m_string(add(s)) { } | 149 AtomicString(CFStringRef s) : m_string(add(s)) { } |
| 150 #endif | 150 #endif |
| 151 #ifdef __OBJC__ | 151 #ifdef __OBJC__ |
| 152 AtomicString(NSString* s) : m_string(add((CFStringRef)s)) { } | 152 AtomicString(NSString* s) : m_string(add((CFStringRef)s)) { } |
| 153 operator NSString*() const { return m_string; } | 153 operator NSString*() const { return m_string; } |
| 154 #endif | 154 #endif |
| 155 #if PLATFORM(QT) | 155 #if PLATFORM(QT) |
| 156 AtomicString(const QString& s) : m_string(add(String(s).impl())) { } | 156 AtomicString(const QString& s) : m_string(add(String(s).impl())) { } |
| 157 operator QString() const { return m_string; } | 157 operator QString() const { return m_string; } |
| 158 #endif | 158 #endif |
| 159 #if PLATFORM(BLACKBERRY) | |
| 160 AtomicString(const BlackBerry::Platform::String& s) : m_string(add(String(s)
.impl())) { } | |
| 161 operator BlackBerry::Platform::String() const { return m_string; } | |
| 162 #endif | |
| 163 | 159 |
| 164 // AtomicString::fromUTF8 will return a null string if | 160 // AtomicString::fromUTF8 will return a null string if |
| 165 // the input data contains invalid UTF-8 sequences. | 161 // the input data contains invalid UTF-8 sequences. |
| 166 static AtomicString fromUTF8(const char*, size_t); | 162 static AtomicString fromUTF8(const char*, size_t); |
| 167 static AtomicString fromUTF8(const char*); | 163 static AtomicString fromUTF8(const char*); |
| 168 | 164 |
| 169 #ifndef NDEBUG | 165 #ifndef NDEBUG |
| 170 void show() const; | 166 void show() const; |
| 171 #endif | 167 #endif |
| 172 | 168 |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 using WTF::textAtom; | 267 using WTF::textAtom; |
| 272 using WTF::commentAtom; | 268 using WTF::commentAtom; |
| 273 using WTF::starAtom; | 269 using WTF::starAtom; |
| 274 using WTF::xmlAtom; | 270 using WTF::xmlAtom; |
| 275 using WTF::xmlnsAtom; | 271 using WTF::xmlnsAtom; |
| 276 using WTF::xlinkAtom; | 272 using WTF::xlinkAtom; |
| 277 #endif | 273 #endif |
| 278 | 274 |
| 279 #include <wtf/text/StringConcatenate.h> | 275 #include <wtf/text/StringConcatenate.h> |
| 280 #endif // AtomicString_h | 276 #endif // AtomicString_h |
| OLD | NEW |