| 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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 inline bool equalIgnoringCase(const AtomicString& a, const String& b) { return e
qualIgnoringCase(a.impl(), b.impl()); } | 218 inline bool equalIgnoringCase(const AtomicString& a, const String& b) { return e
qualIgnoringCase(a.impl(), b.impl()); } |
| 219 inline bool equalIgnoringCase(const LChar* a, const AtomicString& b) { return eq
ualIgnoringCase(a, b.impl()); } | 219 inline bool equalIgnoringCase(const LChar* a, const AtomicString& b) { return eq
ualIgnoringCase(a, b.impl()); } |
| 220 inline bool equalIgnoringCase(const char* a, const AtomicString& b) { return equ
alIgnoringCase(reinterpret_cast<const LChar*>(a), b.impl()); } | 220 inline bool equalIgnoringCase(const char* a, const AtomicString& b) { return equ
alIgnoringCase(reinterpret_cast<const LChar*>(a), b.impl()); } |
| 221 inline bool equalIgnoringCase(const String& a, const AtomicString& b) { return e
qualIgnoringCase(a.impl(), b.impl()); } | 221 inline bool equalIgnoringCase(const String& a, const AtomicString& b) { return e
qualIgnoringCase(a.impl(), b.impl()); } |
| 222 | 222 |
| 223 // Define external global variables for the commonly used atomic strings. | 223 // Define external global variables for the commonly used atomic strings. |
| 224 // These are only usable from the main thread. | 224 // These are only usable from the main thread. |
| 225 #ifndef ATOMICSTRING_HIDE_GLOBALS | 225 #ifndef ATOMICSTRING_HIDE_GLOBALS |
| 226 WTF_EXPORT extern const AtomicString nullAtom; | 226 WTF_EXPORT extern const AtomicString nullAtom; |
| 227 WTF_EXPORT extern const AtomicString emptyAtom; | 227 WTF_EXPORT extern const AtomicString emptyAtom; |
| 228 WTF_EXPORT extern const AtomicString textAtom; | |
| 229 WTF_EXPORT extern const AtomicString commentAtom; | |
| 230 WTF_EXPORT extern const AtomicString starAtom; | 228 WTF_EXPORT extern const AtomicString starAtom; |
| 231 WTF_EXPORT extern const AtomicString xmlAtom; | 229 WTF_EXPORT extern const AtomicString xmlAtom; |
| 232 WTF_EXPORT extern const AtomicString xmlnsAtom; | 230 WTF_EXPORT extern const AtomicString xmlnsAtom; |
| 233 WTF_EXPORT extern const AtomicString xlinkAtom; | 231 WTF_EXPORT extern const AtomicString xlinkAtom; |
| 234 | 232 |
| 235 inline AtomicString AtomicString::fromUTF8(const char* characters, size_t length
) | 233 inline AtomicString AtomicString::fromUTF8(const char* characters, size_t length
) |
| 236 { | 234 { |
| 237 if (!characters) | 235 if (!characters) |
| 238 return nullAtom; | 236 return nullAtom; |
| 239 if (!length) | 237 if (!length) |
| (...skipping 16 matching lines...) Expand all Loading... |
| 256 template<> struct DefaultHash<AtomicString> { | 254 template<> struct DefaultHash<AtomicString> { |
| 257 typedef AtomicStringHash Hash; | 255 typedef AtomicStringHash Hash; |
| 258 }; | 256 }; |
| 259 | 257 |
| 260 } // namespace WTF | 258 } // namespace WTF |
| 261 | 259 |
| 262 #ifndef ATOMICSTRING_HIDE_GLOBALS | 260 #ifndef ATOMICSTRING_HIDE_GLOBALS |
| 263 using WTF::AtomicString; | 261 using WTF::AtomicString; |
| 264 using WTF::nullAtom; | 262 using WTF::nullAtom; |
| 265 using WTF::emptyAtom; | 263 using WTF::emptyAtom; |
| 266 using WTF::textAtom; | |
| 267 using WTF::commentAtom; | |
| 268 using WTF::starAtom; | 264 using WTF::starAtom; |
| 269 using WTF::xmlAtom; | 265 using WTF::xmlAtom; |
| 270 using WTF::xmlnsAtom; | 266 using WTF::xmlnsAtom; |
| 271 using WTF::xlinkAtom; | 267 using WTF::xlinkAtom; |
| 272 #endif | 268 #endif |
| 273 | 269 |
| 274 #include "wtf/text/StringConcatenate.h" | 270 #include "wtf/text/StringConcatenate.h" |
| 275 #endif // AtomicString_h | 271 #endif // AtomicString_h |
| OLD | NEW |