| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007 David Smith (catfish.man@gmail.com) | 2 * Copyright (C) 2007 David Smith (catfish.man@gmail.com) |
| 3 * Copyright (C) 2007, 2008, 2011, 2012 Apple Inc. All rights reserved. | 3 * Copyright (C) 2007, 2008, 2011, 2012 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
| 14 * | 14 * |
| 15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
| 16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
| 17 * the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 17 * the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
| 18 * Boston, MA 02111-1307, USA. | 18 * Boston, MA 02111-1307, USA. |
| 19 */ | 19 */ |
| 20 | 20 |
| 21 #include "config.h" | 21 #include "config.h" |
| 22 #include "core/dom/SpaceSplitString.h" | 22 #include "core/dom/SpaceSplitString.h" |
| 23 | 23 |
| 24 #include "core/html/parser/HTMLParserIdioms.h" | 24 #include "core/html/parser/HTMLParserIdioms.h" |
| 25 #include <wtf/ASCIICType.h> | 25 #include "wtf/ASCIICType.h" |
| 26 #include <wtf/HashMap.h> | 26 #include "wtf/HashMap.h" |
| 27 #include <wtf/text/AtomicStringHash.h> | 27 #include "wtf/text/AtomicStringHash.h" |
| 28 #include <wtf/text/StringBuilder.h> | |
| 29 | 28 |
| 30 using namespace WTF; | 29 using namespace WTF; |
| 31 | 30 |
| 32 namespace WebCore { | 31 namespace WebCore { |
| 33 | 32 |
| 34 template <typename CharacterType> | 33 template <typename CharacterType> |
| 35 static inline bool hasNonASCIIOrUpper(const CharacterType* characters, unsigned
length) | 34 static inline bool hasNonASCIIOrUpper(const CharacterType* characters, unsigned
length) |
| 36 { | 35 { |
| 37 bool hasUpper = false; | 36 bool hasUpper = false; |
| 38 CharacterType ored = 0; | 37 CharacterType ored = 0; |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 | 197 |
| 199 SpaceSplitStringData::SpaceSplitStringData(const SpaceSplitStringData& other) | 198 SpaceSplitStringData::SpaceSplitStringData(const SpaceSplitStringData& other) |
| 200 : RefCounted<SpaceSplitStringData>() | 199 : RefCounted<SpaceSplitStringData>() |
| 201 , m_vector(other.m_vector) | 200 , m_vector(other.m_vector) |
| 202 { | 201 { |
| 203 // Note that we don't copy m_keyString to indicate to the destructor that th
ere's nothing | 202 // Note that we don't copy m_keyString to indicate to the destructor that th
ere's nothing |
| 204 // to be removed from the sharedDataMap(). | 203 // to be removed from the sharedDataMap(). |
| 205 } | 204 } |
| 206 | 205 |
| 207 } // namespace WebCore | 206 } // namespace WebCore |
| OLD | NEW |