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

Side by Side Diff: trunk/Source/wtf/text/StringImpl.h

Issue 1155543007: Revert 196325 "Make small-caps work correctly with tr locale" (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: Created 5 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « trunk/Source/platform/fonts/FontDescription.cpp ('k') | trunk/Source/wtf/text/StringImpl.cpp » ('j') | 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 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights reserved.
4 * Copyright (C) 2009 Google Inc. All rights reserved. 4 * Copyright (C) 2009 Google Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 738 matching lines...) Expand 10 before | Expand all | Expand 10 after
749 return c <= 0x7F ? WTF::isASCIISpace(c) : WTF::Unicode::direction(c) == WTF: :Unicode::WhiteSpaceNeutral; 749 return c <= 0x7F ? WTF::isASCIISpace(c) : WTF::Unicode::direction(c) == WTF: :Unicode::WhiteSpaceNeutral;
750 } 750 }
751 751
752 inline PassRefPtr<StringImpl> StringImpl::isolatedCopy() const 752 inline PassRefPtr<StringImpl> StringImpl::isolatedCopy() const
753 { 753 {
754 if (is8Bit()) 754 if (is8Bit())
755 return create(characters8(), m_length); 755 return create(characters8(), m_length);
756 return create(characters16(), m_length); 756 return create(characters16(), m_length);
757 } 757 }
758 758
759 // TODO(rob.buis) possibly find a better place for this method.
760 // Turns a UChar32 to uppercase based on localeIdentifier.
761 WTF_EXPORT UChar32 toUpper(UChar32, const AtomicString& localeIdentifier);
762
763 struct StringHash; 759 struct StringHash;
764 760
765 // StringHash is the default hash for StringImpl* and RefPtr<StringImpl> 761 // StringHash is the default hash for StringImpl* and RefPtr<StringImpl>
766 template<typename T> struct DefaultHash; 762 template<typename T> struct DefaultHash;
767 template<> struct DefaultHash<StringImpl*> { 763 template<> struct DefaultHash<StringImpl*> {
768 typedef StringHash Hash; 764 typedef StringHash Hash;
769 }; 765 };
770 template<> struct DefaultHash<RefPtr<StringImpl>> { 766 template<> struct DefaultHash<RefPtr<StringImpl>> {
771 typedef StringHash Hash; 767 typedef StringHash Hash;
772 }; 768 };
773 769
774 } 770 }
775 771
776 using WTF::StringImpl; 772 using WTF::StringImpl;
777 using WTF::equal; 773 using WTF::equal;
778 using WTF::equalNonNull; 774 using WTF::equalNonNull;
779 using WTF::TextCaseSensitivity; 775 using WTF::TextCaseSensitivity;
780 using WTF::TextCaseSensitive; 776 using WTF::TextCaseSensitive;
781 using WTF::TextCaseInsensitive; 777 using WTF::TextCaseInsensitive;
782 778
783 #endif 779 #endif
OLDNEW
« no previous file with comments | « trunk/Source/platform/fonts/FontDescription.cpp ('k') | trunk/Source/wtf/text/StringImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698