Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(529)

Side by Side Diff: Source/wtf/text/WTFString.h

Issue 23819029: String vector's comparison works wrong (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/wtf/tests/WTFString.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/wtf/tests/WTFString.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698