| 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 "core/dom/SpaceSplitString.h" | 21 #include "core/dom/SpaceSplitString.h" |
| 22 | 22 |
| 23 #include "core/html/parser/HTMLParserIdioms.h" | 23 #include "core/html/parser/HTMLParserIdioms.h" |
| 24 #include "wtf/ASCIICType.h" | 24 #include "platform/wtf/ASCIICType.h" |
| 25 #include "wtf/HashMap.h" | 25 #include "platform/wtf/HashMap.h" |
| 26 #include "wtf/text/AtomicStringHash.h" | 26 #include "platform/wtf/text/AtomicStringHash.h" |
| 27 | 27 |
| 28 namespace blink { | 28 namespace blink { |
| 29 | 29 |
| 30 template <typename CharacterType> | 30 template <typename CharacterType> |
| 31 static inline bool HasNonASCIIOrUpper(const CharacterType* characters, | 31 static inline bool HasNonASCIIOrUpper(const CharacterType* characters, |
| 32 unsigned length) { | 32 unsigned length) { |
| 33 bool has_upper = false; | 33 bool has_upper = false; |
| 34 CharacterType ored = 0; | 34 CharacterType ored = 0; |
| 35 for (unsigned i = 0; i < length; i++) { | 35 for (unsigned i = 0; i < length; i++) { |
| 36 CharacterType c = characters[i]; | 36 CharacterType c = characters[i]; |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 CreateVector(string); | 183 CreateVector(string); |
| 184 } | 184 } |
| 185 | 185 |
| 186 SpaceSplitString::Data::Data(const SpaceSplitString::Data& other) | 186 SpaceSplitString::Data::Data(const SpaceSplitString::Data& other) |
| 187 : RefCounted<Data>(), vector_(other.vector_) { | 187 : RefCounted<Data>(), vector_(other.vector_) { |
| 188 // Note that we don't copy m_keyString to indicate to the destructor that | 188 // Note that we don't copy m_keyString to indicate to the destructor that |
| 189 // there's nothing to be removed from the sharedDataMap(). | 189 // there's nothing to be removed from the sharedDataMap(). |
| 190 } | 190 } |
| 191 | 191 |
| 192 } // namespace blink | 192 } // namespace blink |
| OLD | NEW |