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

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

Issue 1135003004: Make small-caps work correctly with tr locale (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add back TestExpectations change 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
« no previous file with comments | « Source/platform/fonts/FontDescription.cpp ('k') | 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
759 struct StringHash; 763 struct StringHash;
760 764
761 // StringHash is the default hash for StringImpl* and RefPtr<StringImpl> 765 // StringHash is the default hash for StringImpl* and RefPtr<StringImpl>
762 template<typename T> struct DefaultHash; 766 template<typename T> struct DefaultHash;
763 template<> struct DefaultHash<StringImpl*> { 767 template<> struct DefaultHash<StringImpl*> {
764 typedef StringHash Hash; 768 typedef StringHash Hash;
765 }; 769 };
766 template<> struct DefaultHash<RefPtr<StringImpl>> { 770 template<> struct DefaultHash<RefPtr<StringImpl>> {
767 typedef StringHash Hash; 771 typedef StringHash Hash;
768 }; 772 };
769 773
770 } 774 }
771 775
772 using WTF::StringImpl; 776 using WTF::StringImpl;
773 using WTF::equal; 777 using WTF::equal;
774 using WTF::equalNonNull; 778 using WTF::equalNonNull;
775 using WTF::TextCaseSensitivity; 779 using WTF::TextCaseSensitivity;
776 using WTF::TextCaseSensitive; 780 using WTF::TextCaseSensitive;
777 using WTF::TextCaseInsensitive; 781 using WTF::TextCaseInsensitive;
778 782
779 #endif 783 #endif
OLDNEW
« no previous file with comments | « Source/platform/fonts/FontDescription.cpp ('k') | Source/wtf/text/StringImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698