OLD | NEW |
1 /* | 1 /* |
2 * (C) 1999 Lars Knoll (knoll@kde.org) | 2 * (C) 1999 Lars Knoll (knoll@kde.org) |
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 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, |
(...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
675 result.prepend(m_impl->characters16() + pos, numberOfCharactersToCopy); | 675 result.prepend(m_impl->characters16() + pos, numberOfCharactersToCopy); |
676 } | 676 } |
677 } | 677 } |
678 | 678 |
679 // StringHash is the default hash for String | 679 // StringHash is the default hash for String |
680 template<typename T> struct DefaultHash; | 680 template<typename T> struct DefaultHash; |
681 template<> struct DefaultHash<String> { | 681 template<> struct DefaultHash<String> { |
682 typedef StringHash Hash; | 682 typedef StringHash Hash; |
683 }; | 683 }; |
684 | 684 |
685 template <> struct VectorTraits<String> : SimpleClassVectorTraits { }; | 685 template <> struct VectorTraits<String> : SimpleClassVectorTraits { |
| 686 static const bool canCompareWithMemcmp = false; |
| 687 }; |
686 | 688 |
687 // Shared global empty string. | 689 // Shared global empty string. |
688 WTF_EXPORT const String& emptyString(); | 690 WTF_EXPORT const String& emptyString(); |
689 | 691 |
690 } | 692 } |
691 | 693 |
692 using WTF::CString; | 694 using WTF::CString; |
693 using WTF::KeepTrailingZeros; | 695 using WTF::KeepTrailingZeros; |
694 using WTF::String; | 696 using WTF::String; |
695 using WTF::emptyString; | 697 using WTF::emptyString; |
(...skipping 14 matching lines...) Expand all Loading... |
710 using WTF::charactersToFloat; | 712 using WTF::charactersToFloat; |
711 using WTF::equal; | 713 using WTF::equal; |
712 using WTF::equalIgnoringCase; | 714 using WTF::equalIgnoringCase; |
713 using WTF::find; | 715 using WTF::find; |
714 using WTF::isAllSpecialCharacters; | 716 using WTF::isAllSpecialCharacters; |
715 using WTF::isSpaceOrNewline; | 717 using WTF::isSpaceOrNewline; |
716 using WTF::reverseFind; | 718 using WTF::reverseFind; |
717 | 719 |
718 #include "wtf/text/AtomicString.h" | 720 #include "wtf/text/AtomicString.h" |
719 #endif | 721 #endif |
OLD | NEW |